Ideogram 4.6 Edit API
ideogram/v4.6/editThe Ideogram 4.6 Edit API changes a photo from a written instruction: add signage and lettering, swap materials, restyle a scene or paint inside a mask, with up to 4 reference images guiding the result. The rest of the image stays in place. The Ideogram 4.6 Edit API starts at 1.6 credits ($0.008) per 2K image.
Get API KeyDrag and drop files, paste from clipboard, or provide a URL. Exactly one source image (public HTTP(S) URL).
1/1 files added
Drag and drop files, paste from clipboard, or provide a URL. Optional mask marking the area to change. Requires size auto.
Drag and drop files, paste from clipboard, or provide a URL. Up to 4 reference images, or 3 when a mask is set.
Estimated cost: 12 credits · $0.0600 · 4K
The 4K rate is reserved until the source size is read; the task settles to its final charge and returns the difference.
REST API
Quick Start
This flow submits one valid Ideogram 4.6 Edit request, captures its task_id, and reads result file URLs after the asynchronous task ends.
Connect to the Vidgo API
Create an API key, keep it on the server, and send it as Authorization: Bearer VIDGO_API_KEY.
- Endpoint
- POST
https://api.vidgo.ai/api/generate/submit - Authentication
- Authorization: Bearer VIDGO_API_KEY
Submit one task
Send the current model ID and an input object to the unified submit endpoint. input may only contain the fields listed for this endpoint; any other field returns 400.
curl --request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "ideogram/v4.6/edit",
"input": {
"prompt": "Write on the blank chalkboard sign in neat white chalk lettering: \"PASTÉIS DE NATA\" on the first line, \"1,40 €\" on the second line, and \"Fresh from 7am\" in smaller script at the bottom, with a small chalk sketch of a custard tart beside the price. Keep the street, the tiles, the sleeping cat and the morning light unchanged.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/ideogram/v4.6/edit/v1/01/input.jpg"
],
"quality": "low"
}
}'Wait for the result
Read data.task_id and poll only while status is not_started or running. Stop on both finished and failed.
Track status
GET https://api.vidgo.ai/api/generate/status/{task_id}Poll every 2–5 seconds and back off on 429/5xx. Or provide top-level callback_url to receive a terminal-state callback.
not_startedrunningfinishedfailed{
"code": 200,
"data": {
"task_id": "task-example",
"status": "not_started",
"created_time": "2026-11-03T08:00:00"
}
}{
"code": 200,
"data": {
"task_id": "task-example",
"status": "finished",
"created_time": "2026-11-03T08:00:00",
"progress": 100,
"files": [
{
"file_url": "https://example.com/result.png",
"file_type": "image"
}
]
}
}Complete runnable polling example
Expand for the same payload end to end, including business-code, missing-task-ID, failed-state, unexpected-state, and network-error handling.
set -euo pipefail
: "${VIDGO_API_KEY:?Set VIDGO_API_KEY in your environment}"
REQUEST_BODY=$(cat <<'JSON'
{
"model": "ideogram/v4.6/edit",
"input": {
"prompt": "Write on the blank chalkboard sign in neat white chalk lettering: \"PASTÉIS DE NATA\" on the first line, \"1,40 €\" on the second line, and \"Fresh from 7am\" in smaller script at the bottom, with a small chalk sketch of a custard tart beside the price. Keep the street, the tiles, the sleeping cat and the morning light unchanged.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/ideogram/v4.6/edit/v1/01/input.jpg"
],
"quality": "low"
}
}
JSON
)
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data "$REQUEST_BODY")
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | jq -r '.data.task_id // .task_id // empty')
if [ -z "$TASK_ID" ]; then
printf 'Submit response did not include task_id:
%s
' "$SUBMIT_RESPONSE" >&2
exit 1
fi
while true; do
STATUS_RESPONSE=$(curl --silent --show-error --fail-with-body \
--url "https://api.vidgo.ai/api/generate/status/$TASK_ID" \
--header "Authorization: Bearer $VIDGO_API_KEY")
STATUS=$(printf '%s' "$STATUS_RESPONSE" | jq -r '.data.status // .status // empty')
case "$STATUS" in
finished)
printf '%s' "$STATUS_RESPONSE" | jq -r '(.data.files // .files // [])[]?.file_url'
break
;;
failed)
printf '%s' "$STATUS_RESPONSE" | jq -r '.data.error_message // .error_message // "Generation failed"' >&2
exit 1
;;
not_started|running)
sleep 2
;;
*)
printf 'Unexpected task status: %s
' "$STATUS" >&2
exit 1
;;
esac
doneRequest Parameters
This table lists only public fields inside input. See Quick Start for top-level model and optional callback_url usage.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| input.prompt | string | Yes | – | Edit instruction, non-blank, up to 10,000 characters. Quote any lettering to add. |
| input.image_urls | string[] | Yes | – | Exactly one source image, as an array with one public HTTP(S) URL or image data URI. |
| input.mask_url | string | No | – | Mask image marking the area to change, as a URL or image data URI. Requires size auto. |
| input.reference_image_urls | string[] | No | – | Up to 4 reference images, or up to 3 when mask_url is set. They guide the result. |
| input.edit_precision | string | No | regular | regular or high. high requires size auto and leaves out background. |
| input.context_window | string | No | none | none or auto. auto bases the edit window on your mask and requires edit_precision high plus mask_url. |
| input.quality | string | No | medium | very_low, low, medium or high. very_low uses the 2K tier. |
| input.size | string | No | auto | auto follows the source image. A preset (1:1, 1:1 HD, 4:3, 3:4, 16:9, 9:16) or WIDTHxHEIGHT (sides 256–4096 in multiples of 32, ratio within 6:1) works with edit_precision regular and no mask. |
| input.n | integer | No | 1 | Number of edited images, 1–8. |
| input.background | string | No | – | transparent or opaque, with edit_precision regular. |
| input.seed | integer | No | – | Integer from 0 to 2147483647 for repeatable results. |
Response Fields
The submit response identifies the task. The status response supplies result files or failure details at a terminal state.
| Field | Type | Description |
|---|---|---|
| code | integer | Business response code; 0 or 200 indicates success. |
| message | string | Optional human-readable response message. |
| data.task_id | string | Unique task ID used for status queries after submission. |
| data.status | string | not_started, running, finished, or failed. |
| data.created_time | string | Task creation timestamp. |
| data.progress | integer | Progress from 0–100 in status responses. |
| data.files[] | array | Generated files in returned order when finished. |
| data.files[].file_url | string | Direct URL of the generated file (.png). |
| data.files[].file_type | string | Result files are identified as image. |
| data.error_message | string | null | Readable failure reason for failed tasks. |
Task Lifecycle
Only the first two states may be polled again. finished and failed are terminal.
not_startedAccepted and queued; wait before checking again.
runningGeneration is in progress; continue polling.
finishedSuccessful terminal state; validate files and read file URLs.
failedFailure terminal state; read error_message and stop. Reserved credits are refunded in full.
Polling and Errors
- AuthenticationKeep a valid VIDGO_API_KEY on the server and send requests with Bearer authentication.
- Validation400 indicates an invalid model ID, field, enum, length, count or size for this endpoint, including fields that belong to another endpoint.
- Polling intervalStart at 2–5 seconds, use exponential backoff for 429/5xx, and enforce an overall timeout.
- Terminal statesRead file URLs from files after finished, or error_message after failed. Both states end polling.
- Callback optionProvide a public top-level callback_url to receive the task object after finished or failed.
- Network errorsDistinguish request timeout, network failure, and task failure. Retry the same query only when safe.
Model Specifications
| Specification | Value | Details |
|---|---|---|
| Model | ideogram/v4.6/edit | Ideogram 4.6 Edit |
| Input | prompt + image_urls (1) | Optional mask_url and up to 4 reference_image_urls |
| Output | PNG image × n (1–8) | Image URLs in files[] |
| quality | very_low / low / medium / high | 2K: 1.6 / 6 / 12 / 44 credits; 4K: 12 / 40 / 120 credits per image |
| size | auto, 6 presets or WIDTHxHEIGHT | auto follows the source; area above 2048×2048 is 4K |
Related Models
Ideogram 4.6 Edit API FAQ
What is the Ideogram 4.6 Edit API?
The Ideogram 4.6 Edit API gives developers the editing side of Ideogram 4.6, Ideogram's model that makes images up to 4K and accepts up to five reference images. On Vidgo it edits one source image from a prompt, with an optional mask and up to 4 reference images, and returns one to eight results. You can call it programmatically or try it from the playground above.
How much does the Ideogram 4.6 Edit API cost?
At 2K an edited image costs 1.6, 6, 12 or 44 credits for very_low, low, medium or high. At 4K it costs 12, 40 or 120 credits for low, medium or high. The total is the rate times n.
How is the 2K or 4K tier chosen for an edit?
A preset or custom size sets the tier directly, and very_low is always 2K. With size auto, the source image decides: up to 2048×2048 pixels in area is 2K, larger is 4K. If the size cannot be read at submission, the 4K rate is reserved and the task settles to its final charge.
Can the Ideogram 4.6 Edit API add text to a photo?
Yes. Quote the words and describe the lettering style and surface, as in the Lisbon chalkboard example that writes a pastry name, a price and opening time onto a blank board.
How do masks work in the Ideogram 4.6 Edit API?
mask_url marks the area you want to change and requires size auto. With edit_precision high you can also set context_window auto, which bases the edit window on your mask. With a mask, reference_image_urls accepts up to 3 images.
How many images can one Ideogram 4.6 Edit API request use?
One source image in image_urls plus up to 4 in reference_image_urls, five in total, or up to 3 references when a mask is set.



