Skip to content

Ideogram V3 Edit

Integrate

Model id ideogram/v3/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/v3/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "mask": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.06 60 API credits Run it on this page

Get API key
Ideogram · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Prompt describing the fill for the image's masked region.

•required image_url
Drop a file, or

Generation source supplied as an image URL, with both width and height required to equal the mask's corresponding dimensions exactly.

•required mask_url
Drop a file, or

Inpainting mask supplied by URL, with both width and height required to equal the input image's corresponding dimensions exactly.

rendering_speed default BALANCED

Speed setting for rendering.

num_images default 1

Count of images to produce.

Advanced images · style_preset · seed · expand_prompt · style_codes · color_palette
image_urls
Drop a file, or

Style reference images in JPEG, PNG or WebP format. Their combined size must not exceed 10 MB.

Style preset whose selection guides image generation.

Seed value for random number generation.

Image-style codes, supplied as hexadecimal strings of 8 characters each; omit both style_reference_images and style when using this list.

Color palette used during generation. Specify either a preset through name or explicit hexadecimal colors through members, optionally including weights.

POST /run/ideogram/v3/edit?wait=20 quote → $0.06
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/v3/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "mask": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Ideogram V3 Edit

Fills a masked area of an image according to a `prompt`. The image (`image_url`) and mask (`mask_url`) must have identical dimensions. Style can be steered with reference images, `style_codes`, a `color_palette` or a `style_preset`. Rendering speed is TURBO, BALANCED or QUALITY, and 1 to 8 images can be returned.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
image_urlsoptional images
Typeurl[] · image
Style reference images in JPEG, PNG or WebP format. Their combined size must not exceed 10 MB.
rendering_speedoptional
Typeenum
DefaultBALANCED
TURBOBALANCEDQUALITY
Speed setting for rendering.
color_paletteoptional
Typeobject
Color palette used during generation. Specify either a preset through name or explicit hexadecimal colors through members, optionally including weights.
color_palette.membersoptional
Typeobject[]
Palette member list defining the palette's colors.
color_palette.members[].rgbrequired
Typeobject
Palette member's color expressed as RGB.
color_palette.members[].color_weightoptional
Typenumber | null
Default0.5
0.05 – 1
Weight assigned to this color within the palette.
color_palette.nameoptional
Typeenum
EMBERFRESHJUNGLEMAGICMELONMOSAICPASTELULTRAMARINE
Preset selection for the color palette.
style_codesoptional
Typestring[]
Image-style codes, supplied as hexadecimal strings of 8 characters each; omit both style_reference_images and style when using this list.
expand_promptoptional
Typeboolean
Defaulttrue
MagicPrompt usage toggle for request generation.
num_imagesoptional num_outputs
Typeinteger
Default1
1 – 8
Count of images to produce.
seedoptional
Typeinteger | null
Seed value for random number generation.
style_presetoptional
Typeenum
80S_ILLUSTRATION90S_NOSTALGIAABSTRACT_ORGANICANALOG_NOSTALGIAART_BRUTART_DECOART_POSTERAURAAVANT_GARDEBAUHAUSBLUEPRINTBLURRY_MOTIONBRIGHT_ARTC4D_CARTOONCHILDRENS_BOOKCOLLAGE
+46 moreCOLORING_BOOK_ICOLORING_BOOK_IICUBISMDARK_AURADOODLEDOUBLE_EXPOSUREDRAMATIC_CINEMAEDITORIALEMOTIONAL_MINIMALETHEREAL_PARTYEXPIRED_FILMFLAT_ARTFLAT_VECTORFOREST_REVERIEGEO_MINIMALISTGLASS_PRISMGOLDEN_HOURGRAFFITI_IGRAFFITI_IIHALFTONE_PRINTHIGH_CONTRASTHIPPIE_ERAICONICJAPANDI_FUSIONJAZZYLONG_EXPOSUREMAGAZINE_EDITORIALMINIMAL_ILLUSTRATIONMIXED_MEDIAMONOCHROMENIGHTLIFEOIL_PAINTINGOLD_CARTOONSPAINT_GESTUREPOP_ARTRETRO_ETCHINGRIVIERA_POPSPOTLIGHT_80SSTYLIZED_REDSURREAL_COLLAGETRAVEL_POSTERVINTAGE_GEOVINTAGE_POSTERWATERCOLORWEIRDWOODBLOCK_PRINT
Style preset whose selection guides image generation.
promptrequired
Typestring
Prompt describing the fill for the image's masked region.
image_urlrequired image
Typeurl · image
Generation source supplied as an image URL, with both width and height required to equal the mask's corresponding dimensions exactly.
mask_urlrequired mask
Typeurl · image
Inpainting mask supplied by URL, with both width and height required to equal the input image's corresponding dimensions exactly.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/v3/edit",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 60,
    "usd": "0.06",
    "charged": 60,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "mask_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size}
seed
integerSeed value used for random number generation.

More models: Image Editing

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/ideogram/v3/edit.md. All models and guides: https://doitong.com/developers/llms.txt