Ideogram 4.5 Edit API

ideogram/v4.5/edit
image_urls · mask_url · reference_image_urls

Ideogram 4.5 Edit turns one source image and a written instruction into a revised image, with optional masks, up to four reference images and high edit precision. It keeps the areas you did not ask to change, so repeated edits stay close to the original.

Get API Key
Input
Required169/10000
Required
Image Urls

Drag and drop files, paste from clipboard, or provide a URL. Exactly one source image (public HTTP(S) URL).

1/1 files added

Optional
Mask Url

Drag and drop files, paste from clipboard, or provide a URL. Optional mask, same size as the source: black = edit, white = keep. Requires size auto.

Optional
Reference Image Urls

Drag and drop files, paste from clipboard, or provide a URL. Up to 4 reference images, or 3 when a mask is set. They guide the result and are not edited.

Optional
Optional
Optional
Optional
OutputReady

Estimated cost: 12 credits · $0.0600

Credits are reserved when the task is submitted and refunded in full if it fails.

Continue using

Examples

output-01.png

Replace the masked sky with a clear late-afternoon sky with a few soft clouds. Keep the house, garden and shadows unchanged.

output-01.png

Place the ceramic mug from the source image on a linen tablecloth in the morning-light kitchen shown in the reference image. Keep the mug shape, glaze colour and handle exactly as in the source.

Ideogram 4.5 Edit

Ideogram 4.5 Edit is the editing endpoint of Ideogram 4.5, a model Ideogram positions as its most precise editor. It takes exactly one source image, an instruction of up to 10,000 characters, an optional black-and-white mask and up to four reference images that guide style or content without being edited. Four quality tiers start at 1.6 credits, and the default size auto keeps the source dimensions.

Why Choose Ideogram 4.5 Edit?

  • Precise, instruction-based editsDescribe the change in plain language; Ideogram says 4.5 is built to avoid pixel shifts and colour drift across repeated edits.

  • Masks for targeted regionsSupply mask_url to limit the edit: black marks the area to change, white the area to keep. Masked edits run at size auto.

  • Reference images that guide, not changeAdd up to four reference_image_urls (three when a mask is used) to steer style, objects or setting while only the source is edited.

  • High edit precisionSet edit_precision to high to restore untouched pixels from the source so only the requested change differs.

  • Four tiers from 1.6 creditsvery_low, low, medium and high cost 1.6, 6, 12 and 44 credits per image; masks, references and size never change the price.

Parameters

ParameterRequirementDescription
promptRequired

Edit instruction, non-blank, up to 10,000 characters.

image_urlsRequired

Exactly one source image as an array with one public HTTP(S) URL or image data URI.

mask_urlOptional

Optional mask the same size as the source: black = edit, white = keep. Requires size auto.

reference_image_urlsOptional

0–4 reference images (0–3 when mask_url is set). They guide the result and are not edited.

edit_precisionOptional

regular or high. high requires size auto.

Defaultregularhigh
qualityOptional

very_low, low, medium or high. Sets the price per image.

Defaultmediumvery_lowlowhigh
nOptional

Number of images, integer 1–8.

Default1
sizeOptional

auto keeps the source size. Otherwise a preset (1:1, 1:1 HD, 4:3, 3:4, 16:9, 9:16) or WIDTHxHEIGHT with sides ≥256 and multiples of 32, at most 4,194,304 pixels and 6:1. Must be auto with a mask or high precision.

Defaultauto

How to Use

  1. Prepare the sourceUse one public image URL. For a masked edit, also prepare a mask with the same width and height, black where the change goes.

  2. Write the instructionSay what to change and what must stay, and add reference images if a style, product or scene should guide the result.

  3. Pick precision, quality and sizeUse high edit precision for small surgical changes, keep size auto unless you need a new format, and choose a quality tier.

  4. Submit and collectSend model ideogram/v4.5/edit to the submit endpoint, then poll with the task_id or wait for callback_url to read the edited images.

Usage and Pricing

Billed per output image by quality. Total credits = rate × n. 1 credit = $0.005.

Credits are reserved when the task is submitted and refunded in full if it fails. Masks, reference images, edit precision and size do not change the price.

Usage and Pricing
OptionCredits / imageUSD / image
very_low1.6$0.008
low6$0.03
medium12$0.06
high44$0.22

Best Use Cases

  • Localising packaging and signageReplace the words on a label, menu board or sign while the material, lighting and perspective stay as photographed.

  • Product scene swapsKeep the product from the source and use a reference image to move it into a new setting for listings or ads.

  • Staged interior revisionsMask a sofa, wall or floor and restyle it while the rest of the room is preserved.

  • In-app edit featuresLet users brush a region in your app, send it as mask_url and return the edited image from one API call.

Pro Tips

  • Mask convention: the mask must match the source size and contain both black and white; black areas are edited, white areas are kept.
  • A mask uses one reference slot, so plan for at most three reference images when you send mask_url.
  • For successive edits, feed the finished output URL back as the next request's image_urls; each step is billed separately.
  • Use very_low to test an instruction quickly, then rerun the same request at medium or high.

Notes

  • image_urls must contain exactly one image. Additional pictures go in reference_image_urls.
  • Sending mask_url or edit_precision high with a size other than auto returns 400.
  • Custom sizes must use sides of at least 256 px in multiples of 32, at most 4,194,304 pixels in total and an aspect ratio no wider than 6:1.

Related Models

Ideogram 4.5 Edit API FAQ

What is the Ideogram 4.5 Edit API?

Ideogram 4.5 Edit is an Ideogram model for editing an existing image from a written instruction. It revises one source image with an optional mask, up to four reference images and regular or high edit precision, returning one to eight results at four quality tiers. Ideogram designed it to keep untouched areas stable so repeated edits do not accumulate drift. You can call it programmatically or try it from the playground above.

How does the mask work in Ideogram 4.5 Edit?

The mask must have the same width and height as the source and contain both black and white. Black marks the area to edit and white the area to keep. A masked request must use size auto.

How many reference images does Ideogram 4.5 Edit accept?

Up to four in reference_image_urls, or three when mask_url is set. They guide the result and are never edited themselves; the single image to edit goes in image_urls.

What does high edit precision do in Ideogram 4.5 Edit?

edit_precision high restores unchanged pixels from the source so that only the requested change differs. It requires size auto.

How much does Ideogram 4.5 Edit cost?

Per output image: very_low 1.6 credits ($0.008), low 6 ($0.03), medium 12 ($0.06) and high 44 ($0.22). Total = rate × n; masks, references, precision and size do not affect the price.

Can Ideogram 4.5 Edit change the output size?

Yes for regular unmasked edits: use a preset or a custom WIDTHxHEIGHT with sides ≥256 in multiples of 32, up to 4,194,304 pixels and 6:1. The default auto keeps the source size.

How do I chain multi-step edits with Ideogram 4.5 Edit?

Use the finished output URL as image_urls in the next request and describe only the next change. Each step is an independent task billed by quality × n.

Can Ideogram 4.5 Edit replace text inside a photo?

Yes. Quote the new wording in the instruction and say which sign or label it replaces; adding a mask over that area keeps the rest of the photo untouched.