Ideogram - Image Mask Editor
Edit a region of an existing image using Ideogram 3.0. Provide the source image and a mask marking the region to regenerate, then describe the replacement with a prompt. Supports style presets, style references, and character references.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_INPAINTER |
model | string | Yes | AI model identifier. Must be ideogram-3 |
promptObject | object | Yes | Configuration object containing all edit parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
prompt | string | Yes | Description of what to generate in the masked region | - |
imageUrl | string | Yes | Asset path to the source image to edit | - |
maskUrl | string | Yes | Asset path to the mask image. WHITE = keep, BLACK = edit (inverse of most other providers). Dimensions must match the source image | - |
num_images | number | Yes | Number of variations to generate (1–8) | - |
rendering_speed | string | No | Speed vs quality tradeoff. One of FLASH, TURBO, DEFAULT, QUALITY | DEFAULT |
magic_prompt | string | No | Automatically enhance the prompt. One of AUTO, ON, OFF | AUTO |
style_type | string | No | Style to apply. One of AUTO, GENERAL, REALISTIC, DESIGN, FICTION | AUTO |
style_preset | string | No | Predefined artistic style. Mutually exclusive with style_reference_images. If style_type is provided, must be AUTO or GENERAL. | - |
style_reference_images | string[] | No | Up to 5 asset paths used as style references. Each image ≤ 10 MB; total across all references ≤ 10 MB. JPEG, PNG, or WebP. Mutually exclusive with style_preset. If style_type is provided, must be AUTO or GENERAL. | - |
character_reference_images | string[] | No | 1 asset path for a character reference. Image ≤ 10 MB; JPEG, PNG, or WebP. Incompatible with rendering_speed: FLASH and transparent: true. If style_type is provided, must be AUTO, REALISTIC, or FICTION. | - |
negative_prompt | string | No | Elements to exclude from the edit | - |
seed | number | No | Random seed for reproducibility (0–2147483647) | - |
Image Requirements
- Per-file maximum size: 10 MB
- Formats: JPEG, PNG, WebP
- Mask dimensions: must match the source image exactly
- Mask color scheme: WHITE regions are preserved, BLACK regions are edited
style_type values
AUTO, GENERAL, REALISTIC, DESIGN, FICTION
rendering_speed values
FLASH, TURBO, DEFAULT, QUALITY
magic_prompt values
AUTO, ON, OFF
style_preset values
80S_ILLUSTRATION, 90S_NOSTALGIA, ABSTRACT_ORGANIC, ANALOG_NOSTALGIA, ART_BRUT, ART_DECO, ART_POSTER, AURA, AVANT_GARDE, BAUHAUS, BLUEPRINT, BLURRY_MOTION, BRIGHT_ART, C4D_CARTOON, CHILDRENS_BOOK, COLLAGE, COLORING_BOOK_I, COLORING_BOOK_II, CUBISM, DARK_AURA, DOODLE, DOUBLE_EXPOSURE, DRAMATIC_CINEMA, EDITORIAL, EMOTIONAL_MINIMAL, ETHEREAL_PARTY, EXPIRED_FILM, FLAT_ART, FLAT_VECTOR, FOREST_REVERIE, GEO_MINIMALIST, GLASS_PRISM, GOLDEN_HOUR, GRAFFITI_I, GRAFFITI_II, HALFTONE_PRINT, HIGH_CONTRAST, HIPPIE_ERA, ICONIC, JAPANDI_FUSION, JAZZY, LONG_EXPOSURE, MAGAZINE_EDITORIAL, MINIMAL_ILLUSTRATION, MIXED_MEDIA, MONOCHROME, NIGHTLIFE, OIL_PAINTING, OLD_CARTOONS, PAINT_GESTURE, POP_ART, RETRO_ETCHING, RIVIERA_POP, SPOTLIGHT_80S, STYLIZED_RED, SURREAL_COLLAGE, TRAVEL_POSTER, VINTAGE_GEO, VINTAGE_POSTER, WATERCOLOR, WEIRD, WOODBLOCK_PRINT
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_INPAINTER",
"model": "ideogram-3",
"promptObject": {
"prompt": "A dog wearing a cowboy hat",
"imageUrl": "development/images/2026_04_15_dog.png",
"maskUrl": "development/images/2026_04_15_dog_mask.png",
"num_images": 1,
"rendering_speed": "DEFAULT",
"magic_prompt": "AUTO",
"style_type": "AUTO"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_INPAINTER',
model: 'ideogram-3',
promptObject: {
prompt: 'A dog wearing a cowboy hat',
imageUrl: 'development/images/2026_04_15_dog.png',
maskUrl: 'development/images/2026_04_15_dog_mask.png',
num_images: 1,
rendering_speed: 'DEFAULT',
magic_prompt: 'AUTO',
style_type: 'AUTO'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_INPAINTER",
"model": "ideogram-3",
"promptObject": {
"prompt": "A dog wearing a cowboy hat",
"imageUrl": "development/images/2026_04_15_dog.png",
"maskUrl": "development/images/2026_04_15_dog_mask.png",
"num_images": 1,
"rendering_speed": "DEFAULT",
"magic_prompt": "AUTO",
"style_type": "AUTO"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresGenerated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_INPAINTER",
"model": "ideogram-3",
"promptObject": {
"prompt": "A dog wearing a cowboy hat",
"imageUrl": "development/images/2026_04_15_dog.png",
"maskUrl": "development/images/2026_04_15_dog_mask.png",
"num_images": 1,
"rendering_speed": "DEFAULT",
"magic_prompt": "AUTO",
"style_type": "AUTO"
}
}'
Response Format
{
"aiRecord": {
"uuid": "e40dd9ef-0944-4ce5-bc90-1edd2548619a",
"model": "ideogram-3",
"type": "IMAGE_INPAINTER",
"status": "SUCCESS",
"aiRecordDetail": {
"promptObject": {
"prompt": "A dog wearing a cowboy hat",
"imageUrl": "development/images/2026_04_15_dog.png",
"maskUrl": "development/images/2026_04_15_dog_mask.png",
"num_images": 1,
"rendering_speed": "DEFAULT",
"style_type": "AUTO",
"magic_prompt": "AUTO"
},
"resultObject": [
"development/images/2026_04_15_edit_result.png"
],
"responseObject": {
"created": "2026-04-15T10:30:00Z",
"data": [
{
"url": "https://ideogram.ai/.../edit.png",
"prompt": "A dog wearing a cowboy hat",
"resolution": "1024x1024",
"is_image_safe": true,
"seed": 12345,
"style_type": "AUTO"
}
]
}
}
}
}