NeuralBridge
Sign in Download IDE
OpenAI

GPT Image 2.6 Flare

image generation

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

Context window
—
Max tokens in response
—
Vendor
OpenAI
Release
—
Login
text, images
Output
images

Capabilities

generationeditingmulti_ref

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

sizedefault: auto · auto · 1024x1024 · 1536x1024 · 1024x1536
Result size as a "width×height" string.
prompt
The request text: what you want to get. For video: the scene, camera movement and light; for music: genre, mood, instruments, tempo. The length limit depends on the model.
images
1 to 16 PNG, JPEG or WEBP images: edits, style transfer, building a scene from objects. Up to 25 MB each, 50 MB in total.
reference_images
How many reference images can be passed.
reference_image_mb
Megabytes per image.
reference_images_total_mb
reference_image_formatsimage/png · image/jpeg · image/webp
qualitydefault: auto · auto · low · medium · high · xhigh · max
Generation quality: faster and cheaper versus slower and more detailed.
custom_size
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).
size_stepdefault: 16
size_edge
size_pixels
size_ratio
backgrounddefault: auto · auto · opaque · transparent
auto lets the model decide, opaque gives a solid background, transparent gives none (PNG and WEBP only).
transparent_formatspng · webp
output_formatdefault: png · png · jpeg · webp · gif
Codec, sample rate and bitrate: for example mp3_44100_128 is MP3, 44.1 kHz, 128 kbit/s; opus_48000_96 is Opus in an Ogg container. auto is the model default.
compression_formatsjpeg · webp
output_compressiondefault: 100
JPEG and WEBP compression from 0 to 100: lower gives a smaller file with more visible loss.
moderationdefault: auto · auto · low
auto is the standard OpenAI filtering, low is less strict. Content banned by OpenAI policies is blocked either way.
complexitydefault: high · low · medium · high
How much the model plans the image before rendering: low suits simple edits, high (default) helps with dense text, complex layouts and object relations. No price impact; high is slower.
frame_countdefault: 9
Number of animation frames from 2 to 16 (default 9). More frames are smoother and cost more.
frame_duration_msdefault: 200
How many milliseconds each frame is shown: 20 to 2000 (default 200), rounded to 10.
gif_frame_side
output_image_tokenslow:16:4.2 · medium:24:3.3 · high:48:1 · xhigh:64:1 · max:96:1

Endpoints

POSThttps://api.neuralbridge.ru/v1/images/generationsprimary
Images — generations — Generate an image from a text description.

Code examples

python
from openai import OpenAI

client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.neuralbridge.ru/v1")

image = client.images.generate(model="openai/gpt-image-2.6-flare-08130", prompt="Рыжий кот в скафандре")

print(image.data[0].url or image.data[0].b64_json[:64])
For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Input: text / 1M tokens787,50 ₽
Input: images / 1M tokens1 260,00 ₽
Output: image / 1M tokens4 725,00 ₽
The request cost in rubles — in the response, field usage.cost
Identifier
openai/gpt-image-2.6-flare-08130
Get API key