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:
Supported formats: JPEG, WebP, PNG (max 10MB each)
Your Freepik API key. Required for authentication. Learn how to obtain an API key
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, DEFAULT, QUALITY "DEFAULT"
Determine if MagicPrompt should be used to enhance the prompt.
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, 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"
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"
]
}