Generate or transform images, letting the server pick the best model
Generate one or more images without choosing a model. The server selects the model best suited to the request and may route different requests to different models.
Supplying source images turns the request into a transform: the server picks a model that can edit, and the prompt describes the change to apply. Provide the sources either as image_asset_identifiers references (images already stored with Ideogram) or as raw images bytes (multipart requests only) — if both are supplied, the references win and the bytes are ignored. negative_prompt and style_reference_asset_identifiers only apply without source images; combining them with sources is rejected with a 422 rather than silently 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.
Query parameters
When true, the request is validated and priced but not run: nothing is generated, stored, or billed, and no safety review is performed. The response is a PriceQuote object instead of the usual response for this endpoint. Send exactly the request you would send to generate, so the quote reflects the same options.
Request body
Example request
{
"image_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"style_reference_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"magic_prompt": "on",
"seed": 12345
}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 33 revisions of this API.8415
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ▲
added to the
request propertyallOflist (media type: multipart/form-data)request-property-all-of-added
- ▲
added to the
request propertyallOflist (media type: application/json)request-property-all-of-added
- ▲
removed the enum value
1Kof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
1Kof the request property(media type: application/json)request-property-enum-value-removed
- ▲
removed the enum value
2Kof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
2Kof the request property(media type: application/json)request-property-enum-value-removed
- ▲
removed the enum value
4Kof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
4Kof the request property(media type: application/json)request-property-enum-value-removed
- ●
removed from the
request propertyallOflist (media type: multipart/form-data)request-property-all-of-removed
- ●
removed from the
request propertyallOflist (media type: application/json)request-property-all-of-removed
- ●
changed the pattern of the request property
from^(AUTO|[1-9][0-9]{0,4}x[1-9][0-9]{0,4})$to^(auto|[1-9][0-9]{0,4}x[1-9][0-9]{0,4})$(media type: multipart/form-data)request-property-pattern-changed
- ●
changed the pattern of the request property
from^(AUTO|[1-9][0-9]{0,4}x[1-9][0-9]{0,4})$to^(auto|[1-9][0-9]{0,4}x[1-9][0-9]{0,4})$(media type: application/json)request-property-pattern-changed
- ○
the
request property default value changed fromAUTOtoauto(media type: multipart/form-data)request-property-default-value-changed
- ○
the
request property default value changed fromAUTOtoauto(media type: application/json)request-property-default-value-changed
- ○
the
request property default value changed fromAUTOtoauto(media type: multipart/form-data)request-property-default-value-changed
- ○
the
request property default value changed fromAUTOtoauto(media type: application/json)request-property-default-value-changed
- ○
added the new
1kenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
1kenum value to the request property(media type: application/json)request-property-enum-value-added
- ○
added the new
2kenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
2kenum value to the request property(media type: application/json)request-property-enum-value-added
- ○
added the new
4kenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
4kenum value to the request property(media type: application/json)request-property-enum-value-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○