Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
Ideogram 4.6 Edit changes one existing image from a written instruction. Restrict the edit to a masked area, guide it with up to four reference images, and choose high edit precision when the rest of the image must stay as it is. Typical uses are swapping products or signage text, retouching backgrounds and producing variants of a design at 2K or 4K. Ideogram 4.6 is Ideogram’s image model. Ideogram documents that it “makes images up to 4K” and offers Very low, Low, Medium and High quality. Vidgo exposes it as two model IDs: Text to Image and Edit.

Models

  • ideogram/v4.6/edit — Image edit with Ideogram 4.6: one source image, optional mask and references, 1–8 results per request.

Features

  • Image edit from a natural-language instruction, including replacing text in the image.
  • Optional mask to keep the edit inside one area.
  • Up to 4 reference images for style or content (3 when a mask is used).
  • edit_precision: high for precise edits, with context_window: auto for masked high-precision work.
  • Four quality tiers, 1–8 results per request, transparent backgrounds and a seed.

Input modes

  • Instruction edit: image_urls + prompt. The model decides which area to change.
  • Masked edit: add mask_url (black = edit, white = keep) and keep size: auto. Add edit_precision: high and, optionally, context_window: auto for precise masked edits.
  • Either mode can add reference_image_urls.

Required parameters

  • prompt (string): What to change and how, 1–10,000 characters, with at least one non-whitespace character.
  • image_urls (string[]): Exactly one image to edit. Public HTTP(S) URL or data:image/...;base64,... data URI.

Optional parameters

  • mask_url (string): Mask the same size as the source image, black for the area to edit and white for the area to keep. Public HTTP(S) URL or image data URI. Keeps size: auto.
  • reference_image_urls (string[]): Up to 4 reference images, or up to 3 with mask_url. They guide the result and stay unedited. URLs or image data URIs.
  • edit_precision (string): regular or high. Default regular. high keeps the rest of the image as it is and uses size: auto.
  • context_window (string): none or auto. Default none. auto requires edit_precision: high and mask_url.
  • quality (string): very_low, low, medium or high. Default medium. very_low is available at the 2K tier.
  • size (string): Output size. Default auto. See Size.
  • background (string): transparent or opaque, with edit_precision: regular. Omit it to let the model choose the background.
  • n (integer): Number of results, 1–8. Default 1.
  • seed (integer): 0–2147483647.

Size

  • auto (default) keeps the source image’s dimensions. It is the size for requests with mask_url or edit_precision: high.
  • With edit_precision: regular and no mask_url, you can also choose a preset (1:1, 1:1 HD, 4:3, 3:4, 16:9, 9:16) or a custom size.
  • Custom WIDTHxHEIGHT uses a lowercase x (for example 2048x1152): each side 256–4096 pixels and a multiple of 32, with the longer side at most 6 times the shorter one.
  • Tier: the presets and custom sizes up to 4,194,304 pixels (2048x2048) use the 2K tier; larger custom sizes use the 4K tier. With size: auto, very_low uses the 2K tier and the other qualities follow the source image’s pixel area.

Output

The finished task returns one file per generated image in the files array of Query Task Status and the callback payload.

Examples

  • Instruction-only edit: change the text on a bakery sign, size: auto, low quality.
  • Masked high-precision edit with a reference: a vase mask plus a teapot reference image, edit_precision: high, context_window: auto, quality: high, with a callback_url.
  • Square transparent variant: a mascot turned into a sticker, size: 1:1, background: transparent, n: 2.

Notes

  • input accepts the fields listed above; other fields return 400. Put model and callback_url at the request root, next to input. To create an image from a prompt alone, use Ideogram 4.6 Text to Image.
  • These combinations return 400: a size other than auto together with mask_url or edit_precision: high; background together with edit_precision: high; context_window: auto unless both edit_precision: high and mask_url are set; four reference images together with a mask; very_low with a custom size above 4,194,304 pixels.
  • Credits are billed per image by quality and output tier (2K or 4K), multiplied by n. An explicit size sets the tier directly. With size: auto, very_low is billed at the 2K tier; for the other qualities the tier is estimated from the source image’s pixel area at submission (the 4K tier is reserved when the image size cannot be read), and when the task finishes it settles to the final actual charge and refunds the difference, for example when a 2K result was reserved at 4K. A failed task is refunded in full. See the pricing page for current rates.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer VIDGO_API_KEY.

Body

application/json
model
string
required
Example:

"ideogram/v4.6/edit"

input
object
required
callback_url
string<uri>

Optional webhook URL for completion or failure notifications.

Example:

"https://your-domain.com/callback"

Response

Task submission result. A task ID identifies asynchronous work; generation may still be running.

code
integer
required
Example:

200

data
object
required