GPT Image 2.6 Flare
OpenAI's fast image model: creates an image from text and edits from 1–16 of your images. Six quality levels, custom size up to 4K, transparent background, animated GIF. Billed per token.
Specifications
Capabilities
Description
What it does
- Image from text: describe the subject, lighting, style and any text. The model handles text in images and complex layouts well.
- Edits and composition from images: 1 to 16 PNG, JPEG or WEBP images. Recolor an object, change the background, transfer a style, build one scene from several product photos. Say in the prompt what to keep and what to change.
- Quality (quality): low is a quick, cheap draft; medium, high, xhigh and max add detail and cost more; auto (default) lets the model choose.
- Size (size): 1024x1024, 1536x1024, 1024x1536, auto, or your own WIDTHxHEIGHT: sides divisible by 16, up to 3840 px, aspect ratio within 3:1, 655,360 to 8,294,400 pixels in total (up to 4K).
- Complexity (complexity): low, medium, high (default). Low suits simple edits, high helps with dense text and complex scenes. No price impact.
- Background (background): auto, opaque or transparent; transparent works with PNG and WEBP only.
- Format (output_format): png (default), jpeg, webp or gif. JPEG and WEBP take output_compression from 0 to 100.
- Animated GIF: output_format gif, frame_count from 2 to 16 (default 9), frame_duration_ms from 20 to 2000 ms (default 200). The model picks the frame size itself (512×512); leave size on auto.
- Content moderation (moderation): auto is standard, low is less strict.
- One image per request. The model has no seed, negative prompt or mask.
How to call
Image from text: POST /v1/images/generations with a JSON body:
{"model": "openai/gpt-image-2.6-flare-08130", "prompt": "A premium studio product photograph of an orange mechanical keyboard", "quality": "high", "size": "1024x1024", "output_format": "jpeg"}Edits from images: POST /v1/images/edits as multipart: repeat the image field for each image (up to 16), plus prompt, model and the other fields above. Or use /v1/images/generations with an images field: ["data:image/png;base64,…"].
curl https://api.neuralbridge.ru/v1/images/edits -H "Authorization: Bearer $API_KEY" -F model=openai/gpt-image-2.6-flare-08130 -F image=@photo.png -F quality=medium -F "prompt=Recolor the vase to cobalt blue, keep everything else"An image takes from a few seconds to 2 minutes. Send an Idempotency-Key header: repeating a request with the same key does not start a second paid generation; it returns the image already paid for.
Response
data[0].b64_json is the image in base64, output_format is its format (png, jpeg, webp, gif), usage holds the tokens: input_tokens (text and input images, split in input_tokens_details), output_tokens (the image), and cost, the amount charged.
Errors
- 400: invalid input; the error text names the field (for example, a size not divisible by 16 or a custom size for a GIF). Rejected requests are not billed.
- 422 with code content_filtered: the prompt or an image did not pass OpenAI content moderation.
- 402: not enough funds on the balance. 429: the model is overloaded. 502 or 504: the image was not received; nothing is charged.
Price
Billed per token: the prompt text, input images and the output image each have their own rate per 1M tokens (shown on this page). The image token count depends on quality and size: about 820 at low 1024×1024, about 1450 at medium, about 1350 at high 1536×1024.
Parameters
Endpoints
Code examples
Related models: image generation
/v1 in base_url. For Anthropic SDK — without /v1.