> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

> [!TIP]
>
> 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](https://docs.vidgo.ai/api-manual/task-management/status.md) 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](https://docs.vidgo.ai/api-manual/image-series/ideogram-v4-6-text-to-image.md) and [Edit](https://docs.vidgo.ai/api-manual/image-series/ideogram-v4-6-edit.md).

## 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](#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](https://docs.vidgo.ai/api-manual/task-management/status.md) 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](https://docs.vidgo.ai/api-manual/image-series/ideogram-v4-6-text-to-image.md).
* 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](https://vidgo.ai/apis/api-pricing) for current rates.


## OpenAPI

````yaml api-manual/image-series/ideogram-v4-6-edit.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Ideogram 4.6 Edit
  description: >-
    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.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Ideogram 4.6 Edit
      summary: Submit Ideogram 4.6 Edit Task
      operationId: submitIdeogram46EditTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              instruction:
                summary: Instruction-only edit
                value:
                  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
              masked-high:
                summary: Masked high-precision edit with a reference
                value:
                  model: ideogram/v4.6/edit
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      Replace the empty vase on the table with the ceramic
                      teapot from the reference image
                    image_urls:
                      - https://example.com/kitchen-table.jpg
                    mask_url: https://example.com/kitchen-table-mask.png
                    reference_image_urls:
                      - https://example.com/teapot.png
                    edit_precision: high
                    context_window: auto
                    quality: high
              resize-transparent:
                summary: Square transparent variant
                value:
                  model: ideogram/v4.6/edit
                  input:
                    prompt: >-
                      Turn the mascot into a clean sticker with a thick white
                      outline
                    image_urls:
                      - https://example.com/mascot.png
                    size: '1:1'
                    background: transparent
                    'n': 2
                    quality: medium
      responses:
        '200':
          description: >-
            Task submission result. A task ID identifies asynchronous work;
            generation may still be running.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: ideogram/v4.6/edit
        callback_url:
          type: string
          format: uri
          description: Optional webhook URL for completion or failure notifications.
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
            - image_urls
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 10000
              description: >-
                What to change and how. 1–10,000 characters, with at least one
                non-whitespace character.
            image_urls:
              type: array
              minItems: 1
              maxItems: 1
              items:
                type: string
                format: uri
                description: Public HTTP(S) URL or `data:image/...;base64,...` data URI.
              description: Required. Exactly one image to edit.
            mask_url:
              type: string
              format: uri
              description: >-
                Optional mask the same size as the source image: black marks the
                area to edit, white the area to keep. Public HTTP(S) URL or
                `data:image/...;base64,...` data URI.


                With a mask, keep `size` at `auto`.
            reference_image_urls:
              type: array
              maxItems: 4
              items:
                type: string
                format: uri
                description: Public HTTP(S) URL or `data:image/...;base64,...` data URI.
              description: >-
                Optional reference images that guide style or content; they are
                left unedited. Up to 4, or up to 3 together with `mask_url`.
            edit_precision:
              type: string
              enum:
                - regular
                - high
              default: regular
              description: >-
                Edit precision. `high` is for precise edits that keep the rest
                of the image as it is; pair it with `size: auto`. `background`
                applies to `regular` precision.
            context_window:
              type: string
              enum:
                - none
                - auto
              default: none
              description: >-
                Context setting for masked high-precision edits. `auto` requires
                both `edit_precision: high` and `mask_url`.
            quality:
              type: string
              enum:
                - very_low
                - low
                - medium
                - high
              default: medium
              description: >-
                Rendering quality, one of the per-image billing factors.
                `very_low` is available at the 2K tier (output area up to
                4,194,304 pixels); the 4K tier supports `low`, `medium` and
                `high`.
            size:
              type: string
              default: auto
              description: >-
                Output size. `auto` keeps the source image's dimensions.


                Presets (`1:1`, `1:1 HD`, `4:3`, `3:4`, `16:9`, `9:16`) and
                custom sizes apply to requests with `edit_precision: regular`
                and no `mask_url`.


                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.


                An area up to 4,194,304 pixels (2048x2048) uses the 2K tier and
                a larger one the 4K tier; the presets use the 2K tier.
            background:
              type: string
              enum:
                - transparent
                - opaque
              description: >-
                Background type, used with `edit_precision: regular`.
                `transparent` returns images with a transparent background. Omit
                it to let the model choose the background.
            'n':
              type: integer
              minimum: 1
              maximum: 8
              default: 1
              description: Number of results to generate.
            seed:
              type: integer
              minimum: 0
              maximum: 2147483647
              description: >-
                Random seed. Keep the seed and the other parameters fixed to
                reproduce a similar result.
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-example-001
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T10:30:00'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: prompt is required
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Use `Authorization: Bearer VIDGO_API_KEY`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.