Skip to navigation

Remix with automatic model selection

Remix an image guided by a text prompt, with Ideogram choosing the model. Upload the source image as image using multipart/form-data. Returns results directly by default; set async or supply a webhook_url to get a generation_id and poll GET /v2/generations/{generation_id}.

Authentication

Api-Keystring

API key for access control. Use in the header with the name "Api-Key"

Query parameters

dry_runbooleanOptionalDefaults to false

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

A request to remix one image with an automatically selected model. Send it as multipart/form-data with the source image.

promptstringRequired1-10000 characters
The prompt that guides the remix.
imagefileRequired

The image to remix (max 50MB; JPEG, PNG, or WEBP). Multipart requests only. The image is used only for this request and is not saved to your account.

image_weightintegerOptional1-100

Optional. How closely the result should follow the source image, from 1 to 100. When omitted the selected model chooses its usual strength. Combining a weight with a resolution or aspect_ratio that changes the source's aspect ratio crops the source to the new shape; this is only available at the 1K tier and is rejected at 2K.

negative_promptstringOptional<=10000 characters
Description of what to exclude from the images. The prompt takes precedence over the negative prompt. Not every model uses it.
resolutionstringOptionalformat: "^[1-9][0-9]{1,4}x[1-9][0-9]{1,4}$"

The requested output resolution, formatted as "WIDTHxHEIGHT" (for example "1280x800"). The output uses the closest supported resolution in the matching 1K or 2K tier. Omit aspect_ratio when supplying a resolution. If resolution_tier is also supplied, it must match the tier these dimensions fall in. Combining a shape-changing value with image_weight requires the 1K tier.

aspect_ratioenumOptionalDefaults to auto

The requested output aspect ratio. Omit it to keep the source image's shape. auto also keeps the source shape. Omit resolution when supplying a concrete value. Combining a shape-changing value with image_weight requires the 1K tier.

resolution_tierenumOptional

The output resolution tier. When omitted, the tier is inferred from resolution, or defaults to 1k. A color palette, style codes, style preset, or non-auto style type are only supported at 1k.

Allowed values:
magic_promptenumOptionalDefaults to auto

Controls magic prompt (automatic prompt rewriting). Defaults to auto. The selected model decides how to interpret it.

Allowed values:
seedintegerOptional0-2147483647

Optional. Only honored when the request uses a model that supports reproducible remixes; results from the default model are not reproducible. The response reports the seed used.

style_presetenumOptional
A predefined style preset to apply. Limits the request to a model that supports it and requires the 1K resolution tier. Cannot be combined with style codes.
color_paletteobjectOptional
A color palette to apply. Limits the request to a model that supports palettes and requires the 1K resolution tier.
style_codeslist of stringsOptional

A list of 8-character hexadecimal codes representing the style of the image. Refer to each endpoint for supported combinations with style types, presets, and reference images.

style_typeenumOptionalDefaults to general

The style type to generate with. A value other than auto limits the request to a model that supports it and requires the 1K resolution tier.

num_imagesintegerOptional1-8Defaults to 1
The number of images to generate.
asyncbooleanOptionalDefaults to false

When false (the default), the request waits until the images are ready and returns them in data. When true, the request returns as soon as it is accepted; poll GET /v2/generations/{generation_id} with the returned generation_id for the result.

webhook_urlstringOptionalformat: "uri"<=2048 characters

HTTPS URL that Ideogram delivers the generated result to. Ideogram sends a JSON POST to this URL once all images for the request have finished generating. The body mirrors the synchronous generate response: request_id, created, and a data array containing every generated image (url, prompt, resolution, seed, is_image_safe). Each delivery is signed with Ed25519 and verifiable against the public keys at https://api.ideogram.ai/v1/.well-known/jwks.json. Must be HTTPS; private and loopback hosts and the cloud metadata service are rejected.

Response

The remixed images (synchronous requests), or an acknowledgement to poll with GET /v2/generations/{generation_id} (async requests).

generation_idstring

URL-safe base64 ID of the generation. Use it to poll GET /v2/generations/{generation_id}.

seedinteger0-2147483647
The seed attached to the request. Reusing it does not guarantee a reproducible result, because the selected model may not honor seeds.
datalist of objectsOptional

The remixed images, in generation order. Present only for synchronous requests (async omitted or false).

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error