Ideogram Image Edit - Edit an image using inpainting
Edit an image using Ideogram AI’s inpainting capabilities. Provide an image and a mask to specify the areas to edit, along with a prompt describing the desired changes.
Key features:
- Inpainting: Edit specific areas of an image using a mask
- Multiple rendering speeds: TURBO, DEFAULT, or QUALITY
- MagicPrompt: Automatically enhance your prompt for better results
- Style customization: Use style codes, style types, and reference images
- Character reference: Use reference images to maintain character consistency
Supported formats: JPEG, WebP, PNG (max 10MB each)
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Body
The prompt describing the desired changes to the image.
"A beautiful sunset over the ocean"
The image to be edited. Supports HTTPS URLs or Base64 encoded string. Supported formats: JPEG, WebP, PNG (max 10MB)
"iVBORw0KGgoAAAANSUhEUgAA..."
A black and white image of the same size as the image being edited. Black regions indicate where to edit the image. Supports HTTPS URLs or Base64 encoded string. Supported formats: JPEG, WebP, PNG (max 10MB)
"iVBORw0KGgoAAAANSUhEUgAA..."
Optional seed for reproducibility
0 <= x <= 214748364712345
The rendering speed for image generation.
- TURBO: Fastest, lower quality
- DEFAULT: Balanced speed and quality
- QUALITY: Slower, higher quality
TURBO, DEFAULT, QUALITY "DEFAULT"
Determine if MagicPrompt should be used to enhance the prompt.
- AUTO: Automatically decide
- ON: Always use MagicPrompt
- OFF: Never use MagicPrompt
AUTO, ON, OFF "AUTO"
A color palette for generation. Specify either name (preset) or members (custom colors), not both.
A list of style codes to use for image generation
["style_code_1", "style_code_2"]The type of style to use. Must be specified if character_reference_images is provided.
- AUTO: Automatically select style
- GENERAL: General purpose style
- REALISTIC: Realistic style
- DESIGN: Design-oriented style
AUTO, GENERAL, REALISTIC, DESIGN "AUTO"
Images to use as style references. Provide as Base64 strings or URLs. Maximum total size: 10MB across all references. Supported formats: JPEG, PNG, WebP
["https://example.com/style-ref.jpg"]Images to use as character references for consistency. Provide as Base64 strings or URLs. Maximum total size: 10MB across all references. Supported formats: JPEG, PNG, WebP
["https://example.com/character-ref.jpg"]Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Response
OK - The task exists and the status is returned
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED",
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
]
}