Generates one image from a text prompt. If you still send model, it is ignored and does not return 400.
An image usually takes 1 to 2 minutes, so the call answers 202 with status: "queued" or "processing"; read the result with GET /v1/generations/{id} or receive it on webhookUrl. A job that finishes within about 20 seconds comes back 200. Send ?wait=false to always answer at once.
Pricing: A 1K image costs 45 credits (US$ 0.045). The price is held from the balance when the job is accepted (402 when the available balance cannot cover it and auto-recharge is off) and charged only when the image is delivered. Failed jobs cost nothing. Prompts blocked by content moderation are retried with new seeds up to 3 times; if every attempt is blocked the job ends in error with content_moderation: ... and nothing is charged.
PNG output. Images are kept for 7 days. GET /v1/generations/tiers lists sizes, pixel dimensions and prices.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
