Skip to main content

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

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_INPAINTER
modelstringYesAI model identifier. Must be ideogram-3
promptObjectobjectYesConfiguration object containing all edit parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
promptstringYesDescription of what to generate in the masked region-
imageUrlstringYesAsset path to the source image to edit-
maskUrlstringYesAsset path to the mask image. WHITE = keep, BLACK = edit (inverse of most other providers). Dimensions must match the source image-
num_imagesnumberYesNumber of variations to generate (1–8)-
rendering_speedstringNoSpeed vs quality tradeoff. One of FLASH, TURBO, DEFAULT, QUALITYDEFAULT
magic_promptstringNoAutomatically enhance the prompt. One of AUTO, ON, OFFAUTO
style_typestringNoStyle to apply. One of AUTO, GENERAL, REALISTIC, DESIGN, FICTIONAUTO
style_presetstringNoPredefined artistic style. Mutually exclusive with style_reference_images. If style_type is provided, must be AUTO or GENERAL.-
style_reference_imagesstring[]NoUp 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_imagesstring[]No1 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_promptstringNoElements to exclude from the edit-
seednumberNoRandom 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 --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"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
What to generate in the masked region
Asset path to the source image
Asset path to mask (WHITE = keep, BLACK = edit)
Number of variations to generate (1–8)
Mutually exclusive with style_reference_images
Comma-separated asset paths for style references (up to 5, ≤10 MB each/total). Mutually exclusive with style_preset.
Single asset path for a character reference (≤10 MB, JPEG/PNG/WebP). Incompatible with rendering_speed: FLASH and transparent: true.
0–2147483647

Generated 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"
}
]
}
}
}
}