Remix an existing image with Ideogram 3.0, guided by a prompt
Transform an existing image with Ideogram 3.0, guided by a text prompt. Supply the source either as an image_asset_identifier reference (an image already stored with Ideogram) or as raw image bytes (multipart requests only). Supplying both is rejected rather than one being ignored. image_weight controls how closely the result follows the source; when omitted the server picks a value from your prompt.
Omit resolution and aspect_ratio to keep the source image's shape. If you request a different shape, the source is center-cropped to fit it first, and whatever falls outside the new shape is discarded.
Optional style controls work as on the Ideogram 3.0 generate endpoint: style codes, a style preset, a color palette, or style reference images.
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
{
"image_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"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 remixed 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 2 of the 16 revisions of this API.3
- ○
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
- ○
- ○
endpoint added
endpoint-added
- ○