Generate images of a consistent character with Ideogram 3.0
Generate one or more images featuring a consistent character with Ideogram 3.0. Supply the character as a saved character (character_reference_collection_id), as character_reference_asset_identifiers references (an image already stored with Ideogram), or as raw character_reference_images bytes (multipart requests only, with an optional character_reference_mask marking where the character is in the reference). If more than one form is supplied, the collection wins over the identifiers, and the identifiers win over the bytes.
Style references may be combined with the character on accounts with access; otherwise the combination returns a 400. Supply them as a saved style (style_reference_collection_id), as style_reference_asset_identifiers references, or as raw style_reference_images bytes, with the same precedence as the character forms.
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
{
"character_reference_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"seed": 12345,
"resolution": "1280x800",
"magic_prompt": "ON",
"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"
}Changes
Changed in 3 of the 16 revisions of this API.7
- ○
added the new optional request property
webhook_url(media type: multipart/form-data)new-optional-request-property
- ○
added the new optional request property
webhook_url(media type: application/json)new-optional-request-property
- ○
- ○
added the new optional request property
private(media type: multipart/form-data)new-optional-request-property
- ○
added the new optional request property
private(media type: application/json)new-optional-request-property
- ○
added the new optional request property
target_collection_id(media type: multipart/form-data)new-optional-request-property
- ○
added the new optional request property
target_collection_id(media type: application/json)new-optional-request-property
- ○
- ○
endpoint added
endpoint-added
- ○