Skip to main content

GPT-Image

Call the GPT-Image 2.6 family through OpenAI-compatible image APIs: Host: https://api.omniall.ai · Auth Authorization: Bearer sk-... · Use the exact model id from the Model Square (case-sensitive).

Models (2.6)

Older ids (e.g. gpt-image-2, gpt-image-2.5*) may still appear in the Model Square. New projects should prefer the 2.6 series.

Output formats: PNG / JPEG / WebP / GIF / SVG

Set output_format (confirm capability on the Model Square for your account): Optional GIF parameters: Use response_format: url or b64_json.

Common request fields

Reference images (prefer URL)

For image-to-image / multi-reference, pass image (and edits mask) as public HTTPS URL(s). Avoid Base64 / data URIs — large bodies are slow and often hit gateway 413.
gpt-image-2.6-exact: Pass an explicit size or aspect_ratio, spell out composition constraints in the prompt, and keep reference aspect ratio aligned with the target size.

Quick examples

Supported aspect ratios and resolutions

Pixel sizes by quality tier (1K / 2K / 4K) and aspect ratio: You can also pass size directly. Custom size tips: max side ≤ 3840px, both sides multiples of 16, aspect ≤ 3:1, total pixels roughly 655360–8294400. Prefer table sizes or an explicit size string with gpt-image-2.6-exact.

Which model to pick

Full schema & playground: API Reference → Images → General / GPT-Image.