VidMage

VidMage is an AI video and image creation platform for creators. Turn your ideas and images into videos and fresh visuals.

Open the creator tools
Explore APIs
AI Video APIsAI Image APIsAI Audio APIsAI 3D APIsAI Face Swap APIsAI Effects APIs
Build with VidMage
QuickstartAPI keysVidMage MCPError reference
Your account
Developer consoleAbout VidMagePlans and creditsAPI billingContact support
© 2026 VidMage. All rights reserved.
Privacy PolicyTerms of ServiceReport Abuse
Skip to content
VidMage/Developers
Overview
APIs
All APIsAI Video APIsAI Image APIsAI Audio APIsAI 3D APIsAI Face Swap APIsAI Effects APIs
DocumentationVidMage MCPOpen console
Developers/GPT Image 2.6 API

GPT Image 2.6 API

Generate polished compositions from text or edit a reference set with a prompt that describes the exact change.

Get API keyView API docs
Abstract illustration for GPT Image 2.6 API
PlaygroundAPIPricingGuideFAQs

GPT Image 2.6 API Playground

Use your existing API key and subscription. Submitting a generation uses credits; uploading and preparing a request does not start a generation.

API access is available to subscribers only. Your subscription credits are shared across the website and the API.

View plans

Parameter

12 parameters

Explicit operation selector. Omit to infer from the supplied inputs.(Optional)

Default: text-to-image

Text prompt describing the image to generate (max 32000 chars). For an unspecified character or figurine, use an original non-branded character with no logos and no resemblance to existing copyrighted superheroes; preserve any character the user explicitly names.

Optional input image URL. When provided, the task runs in image operation mode.(Optional)

Ordered input image URLs for image editing mode. The prompt can reference them by their one-based order. Up to 50 MB per file.(Optional)

minItems 1maxItems 16

Output size such as auto or WIDTHxHEIGHT.(Optional)

Default: auto

Output background mode.(Optional)

Default: auto

Generation quality.(Optional)

Default: auto

Output format.(Optional)

Default: png

Planning intensity before generation.(Optional)

GIF frame count; use only with GIF output. Applies when outputFormat is gif.(Optional)

min 2max 16

GIF frame duration in milliseconds. Applies when outputFormat is gif.(Optional)

min 20max 2000

JPEG or WEBP compression value. Applies when outputFormat is jpeg or webp.(Optional)

min 0max 100

Request code

#!/usr/bin/env bash
set -euo pipefail
# Set this once per intended task; preserve it and the body for transport retries.
: "${VIDMAGE_IDEMPOTENCY_KEY:?Set a unique key for this task}"

SUBMIT_RESPONSE="$(curl --fail-with-body --silent --show-error -X POST "https://vidmage.ai/api/v1/gpt-image-2-6-generator/submit" \
  -H "Authorization: Bearer ${VIDMAGE_API_KEY}" \
  -H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{
  "prompt": "A polished editorial product image with natural light and precise typography",
  "size": "auto",
  "background": "auto",
  "quality": "auto",
  "outputFormat": "png"
}')"
TASK_ID="$(printf '%s' "$SUBMIT_RESPONSE" | jq -er '.["taskId"]')"

while true; do
  QUERY_RESPONSE="$(curl --fail-with-body --silent --show-error -X POST "https://vidmage.ai/api/v1/gpt-image-2-6-generator/query" \
    -H "Authorization: Bearer ${VIDMAGE_API_KEY}" \
    -H "Content-Type: application/json" \
    --data-raw "{\"taskId\":\"${TASK_ID}\"}")"
  STATUS="$(printf '%s' "$QUERY_RESPONSE" | jq -r '(.status // .data.status // "") | ascii_downcase')"
  case "$STATUS" in
    success|succeeded|completed)
      RESULT="$(printf '%s' "$QUERY_RESPONSE" | jq -r '(.result // .["imageUrl"] // .data["imageUrl"] // empty)')"
      if [ -z "$RESULT" ]; then
        printf '%s' "Result missing; preserve task $TASK_ID and query the same task again. Do not resubmit." >&2
        exit 2
      fi
      printf '%s\n' "$RESULT"
      break
      ;;
    needs_input)
      printf '%s' "Face selection required; preserve task $TASK_ID" >&2
      exit 2
      ;;
    failed|error)
      printf '%s' "$QUERY_RESPONSE" | jq -r '(.message // .error // .data.error // "Task failed")' >&2
      exit 1
      ;;
  esac
  sleep 5
done

Response data

Submit the task to see the API response here.
PlaygroundCapabilities

API documentation

Submit a request, track the task, and retrieve your result.

Required inputs
prompt
Output
Image·imageUrl
Request setup & limitsHeaders, input options and media limits

Request headers

Authorization
Bearer YOUR_API_KEY

Keep your API key on your server.

Content-Type
application/json
Idempotency-Key
YOUR_UNIQUE_KEY

Use a new key per task. Reuse it only when retrying the same submission.

Input options & limits

Request controls follow each task's parameter rules; they do not guarantee output properties.

GPT Image 2.6 Generator

Modes: text-to-image, image-edit

Additional inputs; requirements vary by mode

prompt imageUrl imageUrls

Media limits by mode
  • Image EditImage: jpg, jpeg, png, webp; up to 50 MB per file; up to 16 files
Request controls
  • mode: "text-to-image", "image-edit"
  • size: default "auto"
  • background: "auto", "transparent", "opaque"
  • quality: "auto", "low", "medium", "high", "xhigh", "max"
  • outputFormat: "jpeg", "png", "webp", "gif", "svg"
  • complexity: "low", "medium", "high"
  • frameCount: range 2 to 16
  • frameDurationMs: range 20 to 2000

Input retention and output-link lifetime depend on the API contract. Confirm API-specific retention terms before making promises to your users. Upload guide ↗

GPT Image 2.6 Generator

POST /api/v1/gpt-image-2-6-generator/submit

Full API documentation ↗

prompt is required.

Required inputs

promptstring
Text prompt describing the image to generate (max 32000 chars). For an unspecified character or figurine, use an original non-branded character with no logos and no resemblance to existing copyrighted superheroes; preserve any character the user explicitly names.

Edit the sample inputs for your own task before submitting.

GPT Image 2.6 Generator request
# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/gpt-image-2-6-generator/submit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A polished editorial product image with natural light and precise typography","size":"auto","background":"auto","quality":"auto","outputFormat":"png"}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }
Parameters and input rules12 fields
FieldTypeRequiredDefaultMeaning and limits
modestringNo"text-to-image"Explicit operation selector. Omit to infer from the supplied inputs. Values: "text-to-image", "image-edit" · Default: "text-to-image"
promptstringYesNot specifiedText prompt describing the image to generate (max 32000 chars). For an unspecified character or figurine, use an original non-branded character with no logos and no resemblance to existing copyrighted superheroes; preserve any character the user explicitly names. Minimum length: 1 · Maximum length: 32000
imageUrlstringNoNot specifiedOptional input image URL. When provided, the task runs in image operation mode. No additional field constraint listed.
imageUrlsstring[]NoNot specifiedOrdered input image URLs for image editing mode. The prompt can reference them by their one-based order. Up to 50 MB per file. Minimum items: 1 · Maximum items: 16
sizestringNo"auto"Output size such as auto or WIDTHxHEIGHT. Default: "auto" · Minimum length: 1 · Maximum length: 32
backgroundstringNo"auto"Output background mode. Values: "auto", "transparent", "opaque" · Default: "auto"
qualitystringNo"auto"Generation quality. Values: "auto", "low", "medium", "high", "xhigh", "max" · Default: "auto"
outputFormatstringNo"png"Output format. Values: "jpeg", "png", "webp", "gif", "svg" · Default: "png"
complexitystringNoNot specifiedPlanning intensity before generation. Values: "low", "medium", "high"
frameCountnumberNoNot specifiedGIF frame count; use only with GIF output. Applies when outputFormat is gif. Minimum: 2 · Maximum: 16 · Whole numbers only
frameDurationMsnumberNoNot specifiedGIF frame duration in milliseconds. Applies when outputFormat is gif. Minimum: 20 · Maximum: 2000 · Multiple of: 10 · Whole numbers only
outputCompressionnumberNoNot specifiedJPEG or WEBP compression value. Applies when outputFormat is jpeg or webp. Minimum: 0 · Maximum: 100 · Whole numbers only
Mode-specific fields & media limits
Text To Image rules
ControlMode-specific rule
promptRequired; minimum 2 characters; maximum 32000 characters
sizeMaximum characters: 32; Default: "auto"
backgroundValues: "auto", "transparent", "opaque"; Default: "auto"
qualityValues: "auto", "low", "medium", "high", "xhigh", "max"; Default: "auto"
outputFormatValues: "jpeg", "png", "webp", "gif", "svg"; Default: "png"
Image Edit rules
ControlMode-specific rule
promptRequired; minimum 1 characters; maximum 32000 characters
imageUrlsImage input; up to 16 items
sizeMaximum characters: 32; Default: "auto"
backgroundValues: "auto", "transparent", "opaque"; Default: "auto"
qualityValues: "auto", "low", "medium", "high", "xhigh", "max"; Default: "auto"
complexityValues: "low", "medium", "high"
outputFormatValues: "jpeg", "png", "webp", "gif"; Default: "png"
frameCountRange: 2 to 16; Output formats: gif
frameDurationMsRange: 20 to 2000; Output formats: gif
outputCompressionRange: 0 to 100; Output formats: jpeg, webp

Retrieve the result

Save taskId from the accepted submission and send it to this endpoint:

POST /api/v1/gpt-image-2-6-generator/query

Use the same Bearer API key. On completion, read the imageUrl result field.

Task states and recovery ↗
GPT Image 2.6 Generator query
curl -X POST "https://vidmage.ai/api/v1/gpt-image-2-6-generator/query" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "imageUrl": "https://..." } }

Pricing

See what one image, video, or generation costs in credits. Your API and website activity share the same credit balance.

API credit rates and calculated example request costs
API / workflowExample requestPrice (credits)
GPT Image 2.6 Generatorimage API1 image request: 10 credits
How this is calculated
  • Base rate: 10 credits / generation

Base charge is per generation at the selected resolution.

Estimate your own request ↗
10 credits / generationSee calculation details
Billed in credits. Shared with the website.Active subscription required. Unit rates and examples follow current API credit rules.Billing details⌄

Examples show the charge for the inputs listed above. Resolution, duration, audio, output count and reference media can change the total. Minimum charges and rounding follow the selected API.

Use the Playground to estimate your request before submitting it. Estimates do not start a generation. Subscription and credit-pack prices are listed on the plans page.

Your task’s recorded usage is the source of truth for the final charge.

View plans ↗Billing guide ↗

About GPT Image 2.6 API

GPT Image 2.6 Generator provides text-to-image and image-editing operations through one asynchronous public contract.

GPT Image 2.6 API capabilities

Generate from a prompt
Describe the subject, composition, lighting, and exact text.
Edit references
Send reference URLs with a focused change request.
Choose output controls
Select supported size, quality, background, and format values.

What you can build

Product concepts

Turn a concise brief into a polished visual.

Reference revisions

Change one element while preserving identity.

Social assets

Prepare variants for the destination layout.

How to use GPT Image 2.6 API

  1. Get an API key

    Create a key in the Developer Console.

  2. Prepare the request

    Choose the operation and supported inputs.

  3. Track the task

    Save taskId and query until completion.

  4. Retrieve the result

    Read imageUrl or imageUrls.

Input tips
Keep requests explicit
Send only documented fields.

Input requirementsUpload local files

Task fields and results

Keep the task identifier with its original request and Idempotency-Key. Query the same capability until it completes, then read the documented result field.

Task identifier
taskId
Query route
POST /api/v1/gpt-image-2-6-generator/query
Completed result
imageUrl
Task states and response structure ↗
Errors, retries and limits

Retry transport failures with the same idempotency key only when the original submission may not have reached the server. For a confirmed task, keep querying the original task instead of submitting a duplicate.

Read error recovery guidance ↗

FAQs

Are failed requests charged?

Confirmed failures are refunded when the outcome is certain.

Billing ↗
How long should polling continue?

Use retry guidance and query the same task.

Tasks ↗
Can I use MCP?

Yes, the same capability is available through MCP.

MCP ↗
Can I receive a webhook?

The contract documents status queries rather than webhooks.

Tasks ↗

Explore more APIs on VidMage