Try Bifrost Enterprise free for 14 days.
Request access

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

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

Pricing data last updated:

gemini-3.1-flash-image-preview Cost Calculator

Mode: Image Generation

Cost Breakdown

Input Cost$0.00025000
Image Cost$0.045000
Total Cost$0.045250

Pricing Details

Input: $0.0000002500 per token
Output: $0.00000150 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 Tokens65,536
Max Output Tokens32,768
Max Tokens32,768

About gemini-3.1-flash-image-preview

gemini-3.1-flash-image-preview is an image generation model from Google Gemini, one of 6 image generation models they offer. It is priced at $0.25 per 1M input tokens and $1.50 per 1M output tokens, ranking 3 out of 29 image generation models by cost and cheaper than 90% of models in this category. gemini-3.1-flash-image-preview supports vision, web search, prompt caching, structured output — one of only 7 image generation models with this combination. It accepts up to 66K input tokens.

Pricing Information

Input Cost$0.25 per 1M tokens
Output Cost$1.50 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 Tokens65,536
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 65,536 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
Response Schema - Structured output formatting

How gemini-3.1-flash-image-preview Pricing Compares

At $0.25 per 1M input tokens and $1.50 per 1M output tokens, gemini-3.1-flash-image-preview ranks 3 out of 29 image generation models by input cost. It is more affordable compared to the median of $2.00 for image generation models, and is cheaper than 90% of models in this category.

gemini-3.1-flash-image-preview is one of 6 Google Gemini image generation models, one of only 7 image generation models combining prompt caching, structured output, vision, web search.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gemini-3.1-flash-image-preview
gemini-2.5-flash-imageVertex AI$0.30$2.50+20%
gemini-3.1-flash-image-previewVertex AI$0.50$3.00+100%
gemini-3-pro-image-previewVertex AI$2.00$12.00+700%

Alternatives to gemini-3.1-flash-image-preview

Similar image generation models from other providers

Vertex AI
gemini-2.5-flash-image
$0.30/1M input
+20% vs gemini-3.1-flash-image-preview
Vertex AI
gemini-3.1-flash-image-preview
$0.50/1M input
+100% vs gemini-3.1-flash-image-preview
Vertex AI
gemini-3-pro-image-preview
$2.00/1M input
+700% vs gemini-3.1-flash-image-preview
Vertex AI
deep-research-pro-preview-12-2025
$2.00/1M input
+700% vs gemini-3.1-flash-image-preview
Google Gemini
gemini-2.5-flash-image
$0.30/1M input
+20% vs gemini-3.1-flash-image-preview

Frequently Asked Questions

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

Yes. gemini-3.1-flash-image-preview costs $0.25 per 1M input tokens compared to gemini-2.5-flash-image's $0.30 per 1M input tokens, making it 20% more affordable. Both are image generation models and share support for vision, function calling, prompt caching, structured output.

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

gemini-3.1-flash-image-preview input pricing is $0.25 per 1M tokens, which is 87% below the median of $2.00 for image generation models. It ranks 3 out of 29 image generation models by input cost, making it cheaper than 90% of models in this category. For output, it costs $1.50 per 1M tokens compared to the median of $10.00.

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

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

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

The most comparable image generation models to gemini-3.1-flash-image-preview are: gemini-2.5-flash-image from Vertex AI ($0.30/1M input tokens); gemini-3.1-flash-image-preview from Vertex AI ($0.50/1M input tokens); gemini-3-pro-image-preview from Vertex AI ($2.00/1M input tokens); deep-research-pro-preview-12-2025 from Vertex AI ($2.00/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-preview the cheapest image generation model with vision?

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

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

gemini-3.1-flash-image-preview 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.25 and generating 1M output tokens costs $1.50.