Google: gemini-3.1-flash-image
gemini-3.1-flash-image- Input / Output-50%
- $0.50 / $3.00$0.25 / $1.50
- Context
- 1M
- Released
- May 28, 2026
- Max output
- 64K
- Modalities
- ImageVision
Getting started
Create API key
Create a key in Console, then use it with every model on the platform.
Send your first request
Copy the example for your language and run it against the endpoint.
Image editingText to imageTokenLab endpointPOST/v1/images/generationsAPI format:curl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "aspect_ratio": "1:1", "operation": "text-to-image", "resolution": "1k", "model": "gemini-3.1-flash-image", "prompt": "A minimalist product photo of matte black headphones on a soft blue background." }'
Pricing
Official price is the model maker's public baseline. TokenLab price is what you pay for this model on TokenLab.
Text
Per 1M tokens- Official price
- Input $0.50 / Output $3.00 / Text Input $0.50 / Image Input $0.50 / Text Output $3.00
- TokenLab price
- Input $0.25 / Output $1.50 / Text Input $0.25 / Image Input $0.25 / Text Output $1.50
- Discount
- -50%
Image
Per 1M tokens- Official price
- Input $0.50 / Output $60.00 / Text Input $0.50 / Image Input $0.50 / Text Output $3.00 / Image Output $60.00
- TokenLab price
- Input $0.25 / Output $30.00 / Text Input $0.25 / Image Input $0.25 / Text Output $1.50 / Image Output $30.00
- Discount
- -50%
| Official pricePer 1M tokens | TokenLab pricePer 1M tokens | Discount | |
|---|---|---|---|
| Text | Input $0.50 / Output $3.00 / Text Input $0.50 / Image Input $0.50 / Text Output $3.00 | Input $0.25 / Output $1.50 / Text Input $0.25 / Image Input $0.25 / Text Output $1.50 | -50% |
| Image | Input $0.50 / Output $60.00 / Text Input $0.50 / Image Input $0.50 / Text Output $3.00 / Image Output $60.00 | Input $0.25 / Output $30.00 / Text Input $0.25 / Image Input $0.25 / Text Output $1.50 / Image Output $30.00 | -50% |
Usage & activity
Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.
Usage & availability
Last 24 hoursNo data yet
Data is based on aggregate user requests, excluding status checks.
Open in Console
Open gemini-3.1-flash-image in Console with a prompt ready to edit or send.
Help me create an image with gemini-3.1-flash-image using text-to-image at /v1/images/generations. Show the result, cost, and any limits I should know.
Use cases
Best forText to Image
Producing product imagery, illustrations, and design variations
Vision
Reading images, parsing documents, and answering visual questions
Product visuals
Make campaign images, catalog scenes, and design directions from a few prompts.
Iterative editing
Create edits and variations from an existing image.
Creative testing
Compare prompt results, output counts, and response formats.
Side-by-side test
Compare response quality, latency, and price side by side.
Prompt examples
Generate a clean product shot of matte black headphones on a soft blue gradient.
Edit the source image into a premium ecommerce hero with natural shadows.
Give me three visual directions for a developer-tool launch banner.
This model has conditional pricing. Monthly token totals alone cannot produce a reliable estimate; use the detailed pricing for the request specification, cache, and applicable time window.
FAQ
How much does gemini-3.1-flash-image cost?
On TokenLab, gemini-3.1-flash-image costs Input $0.25 / Output $1.50 Per 1M tokens. The pricing table above shows the full breakdown. Rates depend on the billing unit, specification, and usage. Compare matching conditions in the model's detailed pricing; a single rate does not determine the total cost.
What is gemini-3.1-flash-image best for?
gemini-3.1-flash-image supports Image to Image, Text to Image, Vision. You can open it directly in Create.
How do I test gemini-3.1-flash-image?
Open gemini-3.1-flash-image in Create. A sample for /v1beta/models/gemini-3.1-flash-image:generateContent will be ready to try.
Which endpoint should gemini-3.1-flash-image use?
Use https://api.tokenlab.sh/v1/images/generations for gemini-3.1-flash-image. The request example below shows the matching code shape.
Can I test gemini-3.1-flash-image before integrating it?
Yes. Open Console starts a ready draft for gemini-3.1-flash-image and keeps your prompt after sign-in, so you don’t lose context.
Which operations does gemini-3.1-flash-image support?
gemini-3.1-flash-image supports Image editing, Text to image. Select an operation above to see its endpoint and request example.