Text-to-GIF looping animations
GIF defaults: 512×512 frames, 9 frames, 200 ms. Adjust frame pixels and 2–16 frames within sheet limits; references are supported and resolution is ignored.
GPT Image 2.6 Official
Actual Token billing per request. Choose n=1–4 outputs in one request; the total cost is rounded once, unused credits are released, and the charge never exceeds the reservation.
GIF defaults: 512×512 frames, 9 frames, 200 ms. Adjust frame pixels and 2–16 frames within sheet limits; references are supported and resolution is ignored.
Choose low, medium or high complexity, or omit it for the model default. Complexity has no separate fee; actual Token usage determines the capped charge.
Quality changes output Tokens. Auto reserves the maximum-quality allowance; explicit quality uses its own allowance with a safety margin. Actual costs settle within the cap. Complexity has no separate fee.
Still images, GIFs and SVGs support references. SVG requires a writer model; GIF exposes frame count and timing.
Both variants share the same Token rates. Actual usage, including automatic quality selection and reference input, determines the final capped charge.
Up to 16 references as public HTTP(S) image URLs. References increase input Tokens and the hold. File access, format and dimensions are checked upstream.
Choose 1K, 2K or 4K for still images. Resolution changes output Token usage and the reservation; successful images settle at actual Token cost.
One request returns up to n outputs and settles its total actual Token cost once, rounded up to 0.1 credits. The hold scales with n. Partial success is charged at the reported actual cost; failed tasks with no images cost 0. Unused credits are released and there is no additional charge or fallback parameter.
Set output_format: "gif" and aspect_ratio: "auto", or choose valid frame pixels, to make looping mascots and stickers. Start from text or add image_urls references.
Designers pair version: "sunburst" with complexity: "high" and quality: "high" or "xhigh" at 2K or 4K to render bilingual menus, event timetables, and copy-heavy promo posters.
Product and marketing teams run version: "flare" with quality: "low" and n: 4 to compare four visual concepts rapidly before investing in higher-quality renders.
E-commerce and web pipelines request output_format: "webp" or "jpeg" directly at 1K or 2K so generated product scenes publish smoothly without an extra format conversion step.
UI designers set complexity: "low" with crisp prompts to keep backgrounds simple and shapes uncluttered for onboarding graphics, empty states, and feature badges.
Creative teams pass product and brand references in image_urls using sunburst and an explicit ratio to iterate seasonal lighting, backgrounds, and copy with less visual drift.
Set output_format: "gif" and aspect_ratio: "auto", or choose valid frame pixels, to make looping mascots and stickers. Start from text or add image_urls references.
Agencies combine sunburst, complexity: "high", and quality: "xhigh" or "max" at 4K (16:9 or 21:9) for intricate multi-object hero scenes with layered lighting and reflections.
Shared reference examples from the corresponding GPT Image page; these are not official-channel verification samples.
Image1:1A premium editorial photograph of a watchmaker workbench, brass gears, polished steel tools, rich wood grain, soft warm light, meticulous fine detail.
Image1:1A refined travel poster for a mountain railway. Rich green forest, red train, clean geometric composition. Clear title ALPINE EXPRESS.
Animation1.62s帮我做一个真实白宫外观的360°环绕模仿无人机拍摄,要真实还原建筑环境的实际外观情况,做成gif
Animation0.6sMake a short seamless GIF on a white background. Three grayscale faces float in frame. The largest face bounces gently at center while the two small faces follow with a short delay. Use a fixed camera and match the first and last poses for a loop.
Animation0.8sCreate a short looping GIF on white. Place two original pixel-art game characters in a clean grid with front, side and back views. Give each character a subtle idle motion without changing their position, silhouette or palette. Keep the camera fixed.
Animation1.92sMake a looping GIF of an orange-haired illustrated character in a white dress and colorful jacket against a pale gray background. Use fixed full-body framing, a playful sequence of pose changes and a smooth return to the starting pose.
ImageDesign a wide editorial title card on a light background. Arrange translucent orange and blue flowers at the edges, leaving generous negative space around a centered black serif launch title. Use soft directional light to show the petal texture.
ImageUse the reference image to match the look and materials of a 3D sci-fi collectible. Make a widescreen character concept sheet on pure white with front and back views, close-ups of the face and armor, and clearly spaced accessory callouts.
Billed on actual Token usage. Unused reserved credits are released automatically, and the charge never exceeds your quote.
| Type | USD / 1M | Credits / 1M |
|---|---|---|
| Text input | With bonus ≈ $4.318 / 1MRegular $4.750 / 1M | 950.0 |
| Cached text input | With bonus ≈ $1.080 / 1MRegular $1.188 / 1M | 237.5 |
| Image input | With bonus ≈ $6.909 / 1MRegular $7.600 / 1M | 1,520.0 |
| Cached image input | With bonus ≈ $1.727 / 1MRegular $1.900 / 1M | 380.0 |
| Image output | With bonus ≈ $25.909 / 1MRegular $28.500 / 1M | 5,700.0 |
| Resolution | Highest quality |
|---|---|
| 1K | $0.201 · 40.1 credits |
| 2K | $0.407 · 81.4 credits |
| 4K | $0.677 · 135.3 credits |
The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.
Write a prompt and optionally add references.
Choose aspect ratio or exact pixels, quality and n, then review the maximum before submitting.
Query the returned task ID or receive a signed callback. Save result images within 14 days.
| Parameter | Description |
|---|---|
model | gpt-image-2.6-official |
input | Image generation parameters. |
input.prompt | Generation or edit prompt (max 32,000 characters). |
input.aspect_ratio | Output aspect ratio (default auto). Omit when editing to match the reference image; ignored when size is set. For GIF, omit or use auto unless size is set. |
input.size | Exact WxH pixels; overrides aspect_ratio and resolution. Static/SVG: multiples of 16, edge ≤ 3840, ratio ≤ 3:1, area 655,360–8,294,400. GIF: per-frame pixels (default 512x512, multiples of 16); sheet limits apply instead of min area. |
input.resolution | Output resolution tier: 1K (default), 2K, or 4K. Ignored when size is set or output_format is gif. |
input.quality | Quality level: auto (default), low, medium, high, xhigh, or max. Higher quality uses more Tokens. |
input.n | Number of images or GIFs to generate (1–4, default 1) in one task. Must be 1 for SVG. |
input.image_urls | Up to 16 public HTTP(S) URLs or image Data URLs (supported for still images, GIF, and SVG). Keep URLs accessible until the task finishes. |
input.mask_url | Public HTTP(S) URL or PNG Data URL of a PNG alpha mask matching the first reference image. Requires image_urls; incompatible with markup_url, GIF, and SVG. Keep accessible until the task finishes. |
input.output_format | Output format: png (default), jpeg, webp, gif, or svg. |
input.output_compression | Compression quality (0–100). Only valid with jpeg or webp. |
input.nsfw_check | Run APIstable pre-generation safety screening on prompts and reference images (default false). `moderation` is not accepted. |
input.version | Model variant: flare (default, faster) or sunburst (higher fidelity for layout, text, and edits). |
input.background | Background mode: auto, opaque, or transparent (png, webp, or svg only). Text-to-SVG defaults transparent; image-to-SVG defaults opaque. |
input.complexity | Planning detail level: low, medium, or high (default). No separate fee. |
input.safety_identifier | Optional end-user identifier for abuse monitoring (max 128 characters). |
input.markup_url | HTTPS URL or PNG Data URL of a transparent PNG annotation layer matching the first reference image (≤ 16,777,216 px each, layer ≤ 50 MB). Requires image_urls; incompatible with mask_url, GIF, and SVG. Keep accessible until the task finishes. |
input.frame_count | GIF frame count (2–16, default 9); only valid when output_format is gif. Packs into a sprite sheet (2–8: 4×2, 9: 3×3, 10–12: 4×3, 13–16: 4×4; axes swappable; edge ≤ 3840, area ≤ 8,294,400, ratio ≤ 3:1). |
input.frame_duration_ms | GIF frame duration in ms (min 20, default 200; rounded to 10 ms increments). Only valid when output_format is gif. |
input.svg | Required when output_format is svg. Set model to a supported SVG writer; optional reasoning.effort accepts none, minimal, low, medium, high, xhigh, or max (case-insensitive; omit or null for writer default; supported levels vary by writer). Returns 503 svg_pricing_unavailable if writer pricing is temporarily unavailable; retry shortly. |
{
"model": "gpt-image-2.6-official",
"input": {
"prompt": "A premium editorial photograph of a watchmaker workbench, brass gears, polished steel tools, rich wood grain, soft warm light, meticulous fine detail.",
"resolution": "1K",
"quality": "auto",
"n": 1,
"image_urls": [],
"output_format": "png",
"version": "flare",
"complexity": "high",
"nsfw_check": true
}
}The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.
Choose a model by the kind of image or edit you need. All three support text-to-image and reference editing at up to 4K on APIstable.
| Model | Best for | Resolution |
|---|---|---|
| GPT Image 2 Official | Product images, text posters and edits; 15 ratios, exact pixels, up to 16 references and masks. | 1K / 2K / 4K |
| GPT Image 2.5 Official | Use Flare for drafts and batches, or Sunburst for finished artwork and detailed edits. Supports up to 16 reference images. | 1K / 2K / 4K |
| GPT Image 2.6 OfficialYou’re here | Still images, reference edits, annotations, GIF and SVG; quality, planning, frame controls and writer models. | 1K / 2K / 4K |
Find answers about pricing, generation results, and API access.
All three support 15 ratios, exact pixels, quality, masks, JPEG/WebP compression and up to 16 references. GPT Image 2 has no variant selector. 2.5 adds Flare/Sunburst, transparent backgrounds and six quality levels. 2.6 adds complexity, annotation layers, reference-capable GIFs and SVG writers.
Both variants share the same Token rates. Actual usage, including automatic quality selection and reference input, determines the final capped charge.
GIF defaults: 512×512 frames, 9 frames, 200 ms. Adjust frame pixels and 2–16 frames within sheet limits; references are supported and resolution is ignored.
quality (auto, low, medium, high, xhigh, max) controls rendering fidelity and turnaround time, while complexity (low, medium, high) controls how much scene planning and visual detail density the model applies. Use low complexity for clean icons or simple layouts, and high for intricate multi-object scenes.
Quality changes output Tokens. Auto reserves the maximum-quality allowance; explicit quality uses its own allowance with a safety margin. Actual costs settle within the cap. Complexity has no separate fee.
2 supports masks, exact pixels, quality and JPEG/WebP compression. 2.5 adds transparent backgrounds and six quality levels. 2.6 adds annotation layers, GIF frame controls and SVG writers. GIF/SVG allow references but exclude masks, annotations and compression.
One request returns up to n outputs and settles its total actual Token cost once, rounded up to 0.1 credits. The hold scales with n. Partial success is charged at the reported actual cost; failed tasks with no images cost 0. Unused credits are released and there is no additional charge or fallback parameter.
For 2.5/2.6 editing, omit both size and aspect_ratio to match the first reference using resolution. Explicit aspect_ratio=auto lets the model choose. GPT Image 2 auto means 1:1.
Use aspect_ratio for auto or 15 ratios, resolution=1K/2K/4K, or size for exact WxH pixels (overrides both). Exact static sizes require multiples of 16, edges ≤3840, ratio ≤3:1 and area 655360–8294400.
Up to 16 references as public HTTP(S) image URLs. References increase input Tokens and the hold. File access, format and dimensions are checked upstream.
n=1–4 stays in one upstream request and one execution item. Return every image produced and charge the task’s reported actual Token cost once, rounded up to 0.1 credits. Unused reserved credits are released; failed tasks with no images cost 0.
Submit via POST /api/v1/tasks/create_task and poll the task query endpoint or pass callback_url. Results stay available for 14 days—save them before expiry. Unfinished tasks older than 24 hours are failed during the daily 00:00 Beijing time cleanup with unspent reservations released, and late results cannot reopen or re-charge a closed task.
frame_count accepts 2–16; frame_duration_ms accepts integer milliseconds >=20, rounded by the supplier to 10ms. Defaults are 9 frames and 200ms. Seed is unsupported.
Write a prompt or add references to generate an image.