Generate with P-Image Ideogram asynchronously
Accepts a P-Image Ideogram generation request for asynchronous processing and returns immediately with a generation_id. Poll GET /v1/generations/{generation_id} to retrieve the result. If a webhook_url is supplied, the generated images are additionally POSTed to it once ready, in a payload that mirrors the synchronous response with an added generation_id for correlation.
See Webhooks for the delivery payload and how to verify webhook signatures.
Query parameters
HTTPS URL that Ideogram delivers the generated result to. Ideogram sends a JSON POST to this URL once all images for the request have finished generating. The body mirrors the synchronous generate response: request_id, created, and a data array containing every generated image (url, prompt, resolution, seed, is_image_safe). Each delivery is signed with Ed25519 and verifiable against the public keys at https://api.ideogram.ai/v1/.well-known/jwks.json. Must be HTTPS; private and loopback hosts and the cloud metadata service are rejected.
Request body
Example request
{
"prompt_upsampling": "ON"
}Response
Request accepted for asynchronous delivery.
Example response
{
"generation_id": "generation_id"
}Changes
Changed in 2 of the 34 revisions of this API.3
- ○
added the new
VERY_HIGHenum value to the request property/(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
VERY_HIGHenum value to the request property/(media type: application/json)request-property-enum-value-added
- ○
- ○
endpoint added
endpoint-added
- ○