Generate images with Ideogram 3.0 from a text prompt
Generate one or more images from a text prompt with Ideogram 3.0, with optional style controls: style codes, a style preset, a color palette, or style reference images. Supply style references either as style_reference_asset_identifiers references (images already stored with Ideogram) or as raw style_reference_images bytes (multipart requests only). If both are supplied, the references win and the bytes are ignored.
By default the request blocks until the images are ready and returns them in data. Set async to true to return immediately after the request is accepted, then poll for completion and results with GET /v1/generations/{generation_id} using the returned generation_id.
Supplying a webhook_url makes the request asynchronous whatever async says: the response returns as soon as the request is accepted, and the finished result is POSTed to that URL.
Request body
Example request
{
"seed": 12345,
"resolution": "1280x800",
"magic_prompt": "ON",
"color_palette": {
"name": "PASTEL"
},
"style_codes": [
"AAFF5733",
"0133FF57",
"DE3357FF"
],
"style_type": "GENERAL",
"style_preset": "BRIGHT_ART",
"style_reference_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"webhook_url": "https://api.example.com/webhooks/ideogram"
}Response
The generated images (synchronous requests), or an acknowledgement to poll with GET /v1/generations/{generation_id} (async requests).
Example response
{
"data": [
{
"seed": 12345,
"prompt": "prompt",
"resolution": "1024x1024",
"url": "https://openapi-generator.tech",
"is_image_safe": true
},
{
"seed": 12345,
"prompt": "prompt",
"resolution": "1024x1024",
"url": "https://openapi-generator.tech",
"is_image_safe": true
}
],
"seed": 12345,
"generation_id": "generation_id"
}