google / Image
Gemini 3.1 Flash Image
google/gemini-3.1-flash-imageNano Banana 2 — fast HQ image, 1K output
Best for: Generating and editing images from text prompts
Catalog status
Enabled
Research checked
2026-10-06
Benchmark results
Results are source-attributed, not TokenRex measurements. Different tests and thinking variants are not interchangeable.
1 of 1 results
AA-Image-T2I v2.0
Image · Third-party report
Test conditions and source
Freshly fetched overall v2.0 human-preference table. Published configuration: Nano Banana 2. Quality setting is source-specific, not necessarily TokenRex default. Elo changes with votes; not a percentage or gateway test.
Tested model: google/gemini-3.1-flash-image
Artificial Analysis · Text-to-Image Arena · Checked 2026-10-06
Model specifications
Input and output modalities
Provider-reported formats; API compatibility is detailed below.
Input
Output
- Exact model ID
- google/gemini-3.1-flash-image
- Model type
- Image
Exact token limits are not published in the reviewed sources, so no estimated limits are shown.
Versions and image configurations
Choose from 3 enabled versions. The exact ID determines the version and its price; benchmark scores do not carry over between variants.
Image quality, resolution, pricing and editing
Every price below is the official provider price converted at ₹96 per US dollar, and you pay exactly that price. OpenAI image models are billed by the tokens the request actually uses, so Low quality costs far less than Max. Gemini image models are billed per image, and each resolution has its own model ID.
| Model | Quality | Size / resolution | Aspect ratio | Formats | Transparent | Editing | Price |
|---|---|---|---|---|---|---|---|
google/gemini-3.1-flash-image | Fixed | 1K (default) · 2K · 4K versions | 14 ratios (image_config.aspect_ratio) | PNG | No | Yes (multiple references) | ₹4.03 at 1K · ₹6.06 at 2K · ₹9.06 at 4K per image Use google/gemini-3.1-flash-image-2k or -4k. 0.5K is not available through the gateway. |
How to use each control
- Resolution (Gemini): pick the model ID —
google/gemini-3.1-flash-image(1K),-2kor-4k; same forgoogle/gemini-3-pro-image. Tested: 1K returned 1024×1024, 2K returned 2048×2048, 4K returned 4096×4096. Lite and 2.5 Flash are 1K only. - Aspect ratio (Gemini 3 Pro / 3.1 Flash): send
"image_config": {"aspect_ratio": "16:9"}. Tested: 3.1 Flash 4K at 16:9 returned 5504×3072. Gemini does not accept OpenAI quality, size, format or background fields. - Editing: POST
/v1/images/editswith oneimageor severalimage[]files, in order. OpenAI models also accept a PNGmask. Gemini makes one image per request (n=1). - Charges: you only pay for images actually returned. A failed request is refunded. The exact charge is in the
x-tokenbaazar-cost-paiseresponse header.
OpenAI pricing · Gemini pricing · OpenAI image controls · Gemini image controls
curl https://tokenrex.ai/api/public/v1/images/generations \
-H "Authorization: Bearer $TOKENBAZAAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-image-2.5-sunburst","prompt":"A blue ceramic cup, isolated","quality":"low","size":"1024x1024","background":"transparent","output_format":"png"}'Features and tool support
TokenRex’s exposed interface, not every feature advertised by the provider. “Available” describes the implemented interface, not a successful test of every input or tool.
Input through TokenRex
AvailableText prompt on POST /v1/images/generations; reference images on edit-capable models. Settings are checked and unsupported ones are rejected.
Output through TokenRex
AvailableGenerated image (base64) in the chosen size, quality and format supported by this model.
Function tools
Not exposedImage endpoint only — it creates images and does not run tools.
Sources and verification
Provider specifications describe the upstream model, not a guarantee of every feature through TokenRex. Prices come from the enabled catalog; benchmark results belong to the exact tested model.
- Vendor model documentation
Vendor-reported
Last checked - Artificial Analysis · Text-to-Image Arena
Third-party report
Last checked
Research notes (1)
- The reviewed discovery source does not verify every specification for this exact TokenRex ID. Missing fields have not been inferred from other releases.