Try Bifrost Enterprise free for 14 days.
Request access

gemini-3.1-flash-image Cost Calculator - Google Gemini

Calculate the cost of using gemini-3.1-flash-image from Google Gemini for your AI applications

Pricing data last updated:

gemini-3.1-flash-image Cost Calculator

Mode: Image Generation

Cost Breakdown

Input Cost$0.00050000
Image Cost$0.045000
Total Cost$0.045500

Pricing Details

Input: $0.0000005000 per token
Output: $0.00000300 per token
Output Image: $0.045000 per image
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Capabilities

✓Vision
✓Web Search

Limits

Max Input Tokens131,072
Max Output Tokens32,768
Max Tokens32,768

About gemini-3.1-flash-image

gemini-3.1-flash-image is an image generation model from Google Gemini, one of 6 image generation models they offer. It is priced at $0.50 per 1M input tokens and $3.00 per 1M output tokens, ranking 7 out of 50 image generation models by cost and cheaper than 82% of models in this category. gemini-3.1-flash-image supports vision, web search, prompt caching — one of only 3 image generation models with this combination. Its 131K-token context window is in the top 25% among image generation models.

Pricing Information

Input Cost$0.50 per 1M tokens
Output Cost$3.00 per 1M tokens
Image Output Cost$0.0450 per image

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens131,072
Maximum Output Tokens32,768
Maximum Total Tokens32,768

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 131,072 input tokens. The maximum output length is 32,768 tokens.

Model Capabilities

✓Vision - Process and understand images
✓Web Search - Access real-time web information
✓Prompt Caching - Optimize repeated prompts
✓System Messages - Configure model behavior

How gemini-3.1-flash-image Pricing Compares

At $0.50 per 1M input tokens and $3.00 per 1M output tokens, gemini-3.1-flash-image ranks 7 out of 50 image generation models by input cost. It is more affordable compared to the median of $5.00 for image generation models, and is cheaper than 82% of models in this category.

gemini-3.1-flash-image is one of 6 Google Gemini image generation models, one of only 3 image generation models combining prompt caching, vision, web search. its 131K-token context window places it in the top 25% of image generation models.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gemini-3.1-flash-image
gemini-3.1-flash-imageVertex AI$0.50$3.000%
gemini-3.1-flash-image-previewVertex AI$0.50$3.000%
gemini-2.5-flash-imageVertex AI$0.30$2.50-40%

Alternatives to gemini-3.1-flash-image

Similar image generation models from other providers

Vertex AI
gemini-3.1-flash-image
$0.50/1M input
0% vs gemini-3.1-flash-image
Vertex AI
gemini-3.1-flash-image-preview
$0.50/1M input
0% vs gemini-3.1-flash-image
Vertex AI
gemini-2.5-flash-image
$0.30/1M input
-40% vs gemini-3.1-flash-image
Vertex AI
gemini-3.1-flash-lite-image
$0.25/1M input
-50% vs gemini-3.1-flash-image
Databricks
system.ai.gemini-3-1-flash-image
$0.63/1M input
+25% vs gemini-3.1-flash-image

Frequently Asked Questions

Is gemini-3.1-flash-image cheaper than gemini-3.1-flash-image?

No. gemini-3.1-flash-image costs $0.50 per 1M input tokens while gemini-3.1-flash-image costs $0.50 per 1M input tokens, making gemini-3.1-flash-image 0% more affordable for input. However, gemini-3.1-flash-image may offer different capabilities or performance characteristics that justify the price difference.

How does gemini-3.1-flash-image pricing compare to the average image generation model?

gemini-3.1-flash-image input pricing is $0.50 per 1M tokens, which is 90% below the median of $5.00 for image generation models. It ranks 7 out of 50 image generation models by input cost, making it cheaper than 82% of models in this category. For output, it costs $3.00 per 1M tokens compared to the median of $10.00.

What makes gemini-3.1-flash-image different from other Google Gemini models?

Among Google Gemini's 6 image generation models, gemini-3.1-flash-image ranks 3 by input cost. It is the most affordable Google Gemini model with web search support. Its combination of prompt caching, vision, web search is shared by only 2 other image generation models.

What are the best alternatives to gemini-3.1-flash-image?

The most comparable image generation models to gemini-3.1-flash-image are: gemini-3.1-flash-image from Vertex AI ($0.50/1M input tokens); gemini-3.1-flash-image-preview from Vertex AI ($0.50/1M input tokens); gemini-2.5-flash-image from Vertex AI ($0.30/1M input tokens); gemini-3.1-flash-lite-image from Vertex AI ($0.25/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

Is gemini-3.1-flash-image the cheapest image generation model with web search?

Yes. At $0.50 per 1M input tokens, gemini-3.1-flash-image is the most affordable image generation model that supports web search. This makes it a strong option for web search-dependent workloads where cost efficiency matters.

How large is gemini-3.1-flash-image's context window?

gemini-3.1-flash-image supports up to 131,072 input tokens, placing it in the top 25% of image generation models by context window size (rank 7 of 28). This makes it suitable for processing long documents, extensive code repositories, or maintaining detailed conversation histories.

How do I calculate gemini-3.1-flash-image costs?

gemini-3.1-flash-image is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $0.50 and generating 1M output tokens costs $3.00.