curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "ideogram/v4.6/edit",
"input": {
"prompt": "Change the bakery sign text to \"MIGA & CO\" and keep everything else the same",
"image_urls": [
"https://example.com/bakery-front.jpg"
],
"quality": "low"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-25T10:30:00"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}Ideogram
Ideogram 4.6 Edit
The Ideogram 4.6 Edit API edits one image from a text instruction at 2K or 4K, with an optional mask, up to 4 reference images and regular or high precision.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "ideogram/v4.6/edit",
"input": {
"prompt": "Change the bakery sign text to \"MIGA & CO\" and keep everything else the same",
"image_urls": [
"https://example.com/bakery-front.jpg"
],
"quality": "low"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-25T10:30:00"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
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: highfor precise edits, withcontext_window: autofor 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 keepsize: auto. Addedit_precision: highand, optionally,context_window: autofor 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 ordata: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. Keepssize: auto.reference_image_urls(string[]): Up to 4 reference images, or up to 3 withmask_url. They guide the result and stay unedited. URLs or image data URIs.edit_precision(string):regularorhigh. Defaultregular.highkeeps the rest of the image as it is and usessize: auto.context_window(string):noneorauto. Defaultnone.autorequiresedit_precision: highandmask_url.quality(string):very_low,low,mediumorhigh. Defaultmedium.very_lowis available at the 2K tier.size(string): Output size. Defaultauto. See Size.background(string):transparentoropaque, withedit_precision: regular. Omit it to let the model choose the background.n(integer): Number of results,1–8. Default1.seed(integer):0–2147483647.
Size
auto(default) keeps the source image’s dimensions. It is the size for requests withmask_urloredit_precision: high.- With
edit_precision: regularand nomask_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
WIDTHxHEIGHTuses a lowercasex(for example2048x1152): 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_lowuses 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 thefiles array of Query Task Status and the callback payload.
Examples
- Instruction-only edit: change the text on a bakery sign,
size: auto,lowquality. - Masked high-precision edit with a reference: a vase mask plus a teapot reference image,
edit_precision: high,context_window: auto,quality: high, with acallback_url. - Square transparent variant: a mascot turned into a sticker,
size: 1:1,background: transparent,n: 2.
Notes
inputaccepts the fields listed above; other fields return 400. Putmodelandcallback_urlat the request root, next toinput. To create an image from a prompt alone, use Ideogram 4.6 Text to Image.- These combinations return 400: a
sizeother thanautotogether withmask_urloredit_precision: high;backgroundtogether withedit_precision: high;context_window: autounless bothedit_precision: highandmask_urlare set; four reference images together with a mask;very_lowwith a custom size above 4,194,304 pixels. - Credits are billed per image by
qualityand output tier (2K or 4K), multiplied byn. An explicitsizesets the tier directly. Withsize: auto,very_lowis 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.
Body
application/json