img_ job that you poll until the images are ready. Use it for character sheets, first frames for video generation, thumbnails and marketing stills.
Parameters
Sendmultipart/form-data, even without reference images. A JSON or URL-encoded body is rejected with 400.
You can send up to 8 reference images in total, in any mix of files and URLs. Each can be up to 24 MiB with a long-to-short side ratio of at most 8, in JPEG, PNG, WebP, GIF, BMP, TIFF or HEIC. The model reads uploads first, then URLs, in the order you sent them. Every field is in the API reference.
Output sizes
aspect_ratio and resolution pick one fixed size. Reference images make 2K smaller, at the same price.
Price
You pay per image: 1 credit ($0.01) at `1K`, 2 credits ($0.02) at2K. aspect_ratio, seed and reference images don’t change it.
2K images cost 6 credits ($0.06). The whole amount is reserved when you create the job and refunded in full if the job fails.
If your balance cannot cover the job, the create call answers 402 INSUFFICIENT_CREDITS, its message states the cost, and nothing starts. A 429 RATE_LIMITED means the credit reservation gate was busy; retry with backoff.
Generate, wait and download
The script asks for two16:9 images at 1K (2 credits), polls every 3 seconds and saves image_0.png and image_1.png. It needs no input files.
Add reference images
Upload files withreference_image, pass URLs with reference_image_url, or mix both. Poll and download the same way.
Get the result
The create call answers with aqueued job:
GET /v1/images/{image_id} every 2–3 seconds. progress rises as each image finishes. When status is ready, images lists all n images in order, each with url, width, height and the seed it used. A job makes the full set or fails as a whole, and one that hasn’t finished within 15 minutes of starting to run fails.
Only the API key that created a job can read it; any other key gets 404 NOT_FOUND. A failed job carries error.code, error.message and error.retryable. When retryable is true, create a new job with the same parameters; otherwise change the prompt or reference images first. Failed jobs are refunded. Task lifecycle covers statuses and errors across the API.
Next steps
First frame to video
Animate an image with Viggle H3.
3D characters
Turn a character image into a rigged 3D character.
API reference
The full image job object and every error.