Edit images with a prompt
Edit one or more images using a text prompt. Provide images via file upload or Ideogram image URLs, and describe the desired edit in your prompt.
Supported image formats include JPEG, PNG, and WebP.
Images links are available for a limited period of time; if you would like to keep the image, you must download it.
Authentication
Api-Keystring
API key for access control. Use in the header with the name “Api-Key”
Request
A request to edit images.
prompt
The prompt describing the desired edit.
images
Images to edit (max 10 images, max size 10MB each); JPEG, WebP and PNG formats are supported.
image_urls
URLs to Ideogram images to use as references (max 10). Supports URLs from generation responses and image uploads. Alternative to uploading via the images field.
num_images
The number of images to generate.
seed
Random seed. Set for reproducible generation.
magic_prompt
Determine if MagicPrompt should be used in generating the request or not.
Allowed values:
resolution
The resolutions supported for Ideogram 3.0.
aspect_ratio
The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
transparent_background
Whether the output should have a transparent background. Default false.
Response
Image edits generated successfully.
created
The time the request was created.
data
A list of ImageObjects that contain the edited image(s).
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
422
Unprocessable Entity Error
429
Too Many Requests Error
503
Service Unavailable Error