Remix an existing image, letting the server pick the best model
Transform an existing image with a server-selected model, guided by a text prompt. Supply the source as image bytes (multipart requests only). image_weight controls how closely the result follows the source; when omitted the selected model chooses its usual strength.
The server chooses a model that supports the requested remix controls: style references (ad hoc or saved), a color palette, style codes, a style preset, and a non-auto style type each restrict the request to a compatible model and to the 1K tier; remixes without those controls use the default model. Omit resolution and aspect_ratio to keep the source image's shape. Supplying image_weight together with a resolution or aspect_ratio that changes the source's aspect ratio routes the request to a model that crops the source to the new shape; that combination is served only at the 1K tier and is rejected at 2K. (The model-pinned remix endpoints such as /v2/image/remix/ideogram-4 reject the combination outright.) seed is honored only on the compatible model; the default model synthesizes an unseeded instruction prompt, so results are not reproducible there.
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.
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_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"magic_prompt": "on",
"seed": 12345,
"style_reference_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"style_preset": "bright_art",
"color_palette": {
"name": "pastel"
},
"style_codes": [
"AAFF5733",
"0133FF57",
"DE3357FF"
],
"style_type": "general",
"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": "",
"generation_id": "generation_id"
}Changes
Changed in 2 of the 34 revisions of this API.14107
- ▲
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
- ▲
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
- ▲
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
- ▲
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
- ▲
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 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
- ●
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
- ●
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
- ●
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
- ●
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
- ○
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
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
- ○