Urgent.News

What's breaking now, across thousands of outlets.

Tech

A free image-generation API with no key and no account — and the three failures that look like success

A free image-generation API with no key and no account — and the three failures that look like success Every "free AI image API" tutorial starts the same way: create an account, verify a phone number, copy a key, put it in .env . This one skips all of that. There is nothing to apply for — you make up an identifier string yourself and send it as a header, and that string is your account. The…

A free image-generation API exists that requires no key or account registration. Users provide an identifier string and send it as a header in their requests. The API is provided by Kavel, an online image and video studio. The service offers three actions, each with a distinct cost in credits. The total available credits in the free tier are 15, and there is a daily ceiling of 30 credits per IP address.

The three actions are text-to-image (5 credits), photo edit (15 credits), and video (40 credits). The API returns a CDN URL upon successful completion. However, the API has three failure modes that resemble successful responses, leading to potential confusion. Running out of credits results in an HTTP 200 response with a "wall" field set to true.

An edit costing 15 credits depletes the wallet completely. Video generation is not possible due to its high cost of 40 credits. Rotating the unique identifier does not yield additional credits, and after exhausting all credits, further calls return an IP-specific refusal message. To avoid these pitfalls, developers should explicitly check the "wall" field in the API response before attempting further actions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Sunday 6 September →