GPT Image 2.6 Generator
POST /api/v1/gpt-image-2-6-generator/submit
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.
# 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
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
mode | string | No | "text-to-image" | Explicit operation selector. Omit to infer from the supplied inputs. Values: "text-to-image", "image-edit" · Default: "text-to-image" |
prompt | string | Yes | Not specified | 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. Minimum length: 1 · Maximum length: 32000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image operation mode. No additional field constraint listed. |
imageUrls | string[] | No | Not specified | Ordered 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 |
size | string | No | "auto" | Output size such as auto or WIDTHxHEIGHT. Default: "auto" · Minimum length: 1 · Maximum length: 32 |
background | string | No | "auto" | Output background mode. Values: "auto", "transparent", "opaque" · Default: "auto" |
quality | string | No | "auto" | Generation quality. Values: "auto", "low", "medium", "high", "xhigh", "max" · Default: "auto" |
outputFormat | string | No | "png" | Output format. Values: "jpeg", "png", "webp", "gif", "svg" · Default: "png" |
complexity | string | No | Not specified | Planning intensity before generation. Values: "low", "medium", "high" |
frameCount | number | No | Not specified | GIF frame count; use only with GIF output. Applies when outputFormat is gif. Minimum: 2 · Maximum: 16 · Whole numbers only |
frameDurationMs | number | No | Not specified | GIF frame duration in milliseconds. Applies when outputFormat is gif. Minimum: 20 · Maximum: 2000 · Multiple of: 10 · Whole numbers only |
outputCompression | number | No | Not specified | JPEG 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
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 2 characters; maximum 32000 characters |
size | Maximum characters: 32; Default: "auto" |
background | Values: "auto", "transparent", "opaque"; Default: "auto" |
quality | Values: "auto", "low", "medium", "high", "xhigh", "max"; Default: "auto" |
outputFormat | Values: "jpeg", "png", "webp", "gif", "svg"; Default: "png" |
Image Edit rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 32000 characters |
imageUrls | Image input; up to 16 items |
size | Maximum characters: 32; Default: "auto" |
background | Values: "auto", "transparent", "opaque"; Default: "auto" |
quality | Values: "auto", "low", "medium", "high", "xhigh", "max"; Default: "auto" |
complexity | Values: "low", "medium", "high" |
outputFormat | Values: "jpeg", "png", "webp", "gif"; Default: "png" |
frameCount | Range: 2 to 16; Output formats: gif |
frameDurationMs | Range: 20 to 2000; Output formats: gif |
outputCompression | Range: 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.
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://..." } }