"async": true to get a 202 right away & fetch the result later. It suits long generations & clients that can’t hold a connection open, such as behind a proxy or in a short-timeout serverless function. Every thumbnail & title endpoint accepts it.
Send the Request
cURL
Response (202)
202, so errors such as VALIDATION_ERROR, INSUFFICIENT_CREDITS or INVALID_IMAGE come back on this call as usual.
Poll the Status
GET the status_url every few seconds (Get request status).
The body matches the
202 above, plus an error when the request failed:
COMPLETED with error (200)
Fetch the Result
Once the status isCOMPLETED, GET the response_url (Get request result). It returns exactly what the request returns without async: the endpoint’s response, or its error body with the HTTP status it failed with.
Fetching it earlier returns 400 REQUEST_IN_PROGRESS.
Full Example
Good to Know
- A request still unfinished an hour after submit fails with
GENERATION_TIMEOUT. - There are no webhooks.
- Both
GETendpoints also work for requests sent withoutasync, which are alwaysCOMPLETED. - The result of a request sent before October 25, 2026 returns
404NOT_FOUND.
