On Brioi, OpenAI’s gpt-image-2 is billed per request: one request that returns one image costs ¥0.05 CNY. The price data has a single per-request rate for it, with no tiers for quality or size, and text-to-image and editing use the same model name. Prices were read on 2026-12-04 and are in Chinese yuan (CNY). The current rate is on the pricing page; search for gpt-image-2.
How much does GPT Image 2 cost per image?
| Images (1 per request) | Brioi cost |
|---|---|
| 1 | ¥0.05 CNY |
| 100 | ¥5.00 CNY |
| 1,000 | ¥50.00 CNY |
| 10,000 | ¥500.00 CNY |
n can be 1 to 10, so one request can return several images. The Brioi docs don’t say how a request with n above 1 is charged. Budget per image, and before launch run one request with n: 2 and check the billing record.
OpenAI’s own API bills by tokens, so its price per image changes with quality and size:
| OpenAI price (USD per image, image output only) | low | medium | high |
|---|---|---|---|
| 1024×1024 | 0.006 | 0.053 | 0.211 |
| 1024×1536 or 1536×1024 | 0.005 | 0.041 | 0.165 |
Source: OpenAI image generation guide, checked 2026-11-30. Input tokens for the prompt and reference images are charged on top. Brioi’s rate doesn’t change with quality, so the gap is widest when you produce final images at medium or high quality and large sizes. If you only need low-quality drafts, compare the two rates first.
How do I estimate the cost of a batch?
Multiply final images × average attempts per image × price per request. For example, 500 products with 4 hero images each, at 1.5 attempts per image on average, is 3,000 requests: ¥150.00 CNY. Editing is billed per request in the same way. The price data makes no difference between 1 reference image and 16.
When a task fails, read fail_reason before deciding whether to retry. If a status query times out, don’t create a new task. Keep polling with the same task_id, or you will pay twice for the same image.
How do I call GPT Image 2 through Brioi?
Create a Brioi API key and set it as the BRIOI_API_KEY environment variable. The POST below creates a billable task: 1 image, ¥0.05 CNY.
curl -X POST "https://vip.brioi.com/v1/images/async/generations" \
-H "Authorization: Bearer $BRIOI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","prompt":"White ceramic mug, studio shot on a pure white background, soft shadow, product centered","size":"1024x1024","quality":"medium","n":1}'
Save the returned task_id, put it in place of TASK_ID below, and poll every 3 to 5 seconds:
curl "https://vip.brioi.com/v1/images/async/generations/TASK_ID" \
-H "Authorization: Bearer $BRIOI_API_KEY"
| Status | What to do |
|---|---|
SUBMITTED, IN_PROGRESS |
Keep polling |
SUCCESS |
Download from images[].url. The link expires, so save the file right away |
FAILURE |
Read fail_reason. It is raw text for troubleshooting, so don’t parse it as a fixed format |
The synchronous /v1/images/generations and /v1/images/edits endpoints are kept only for existing integrations. Use the async endpoints above for new work.
Can I edit a local image?
Yes. The edit endpoint is POST /v1/images/async/edits, and it accepts images in two ways: a JSON request passes public HTTPS image URLs in images, and a multipart/form-data request uploads local files in image[]. The example below uploads a local file; replace the path with your own image:
curl -X POST "https://vip.brioi.com/v1/images/async/edits" \
-H "Authorization: Bearer $BRIOI_API_KEY" \
-F "model=gpt-image-2" \
-F "prompt=Keep the product shape and material, replace the background with a clean white photo studio" \
-F "image[]=@./product.png" \
-F "size=1024x1024" \
-F "quality=medium"
Query edit tasks at GET /v1/images/async/edits/TASK_ID. The generation status URL doesn’t work for them.
- Up to 16 reference images per request.
- To change only part of the image, add
mask: a PNG mask with the same dimensions as the first reference image. input_fidelitycan beloworhigh.- For edits,
nof 1 is recommended.
Which sizes, quality levels and formats are supported?
- Quality:
qualitycan beauto,low,mediumorhigh, defaultauto. - Size:
sizedefaults toauto. For a custom size, width and height must both be multiples of 16, the longer side at most 3840 pixels, the aspect ratio at most 3:1, and the total between 655,360 and 8,294,400 pixels. - Format:
output_formatcan bepng,jpegorwebp. For JPEG and WebP,output_compression(0 to 100) sets the compression quality. - Background:
backgroundonly acceptsautoandopaque. Transparent backgrounds aren’t supported, so for a transparent product image, remove the background after generation.
Do GPT Image 2.5 and 2.6 work too?
Yes. gpt-image-2.5-flare, gpt-image-2.5-sunburst, gpt-image-2.6-flare and gpt-image-2.6-sunburst use the same endpoints, parameters and task flow as gpt-image-2; you only change model. There are two differences. GIF output (output_format: "gif") works only on the two 2.6 models. And on Brioi these four models are billed by tokens, not per request; their rates are on the pricing page.
How do I troubleshoot errors?
| Symptom | Common cause |
|---|---|
| 400 | Invalid parameters. Usually size breaks the rules above, or the request sent background: "transparent" |
| 401 | Missing or invalid key |
| 403 | Balance too low, or the key has no access to gpt-image-2. Check that GET /v1/models lists it |
| 404 | Task not found. Check whether you queried an edit task on the generation URL |
| 429 | Too many requests; lower concurrency or poll less often |
| 500, 502, 503 | Temporary service error; keep polling later with the same task_id |
The full GPT Image 2 API docs (in Chinese) list every parameter. If you aren’t sure whether to use GPT Image 2 or Nano Banana Pro, read the AI image API comparison for e-commerce, which also has a Python batch script with polling and download. Other models and integration options are on the Brioi developer page.

