LLM Pricing
← All models

gemini-3.1-flash-image-preview

Google · image_generation model

Input
$0.2500 / 1M tokens
Output
$1.5000 / 1M tokens
Cached input
N/A
Context
32.8K

Pricing

Item Raw value (per token) Normalized
Input 2.5e-7 $0.2500 / 1M tokens
Output 0.0000015 $1.5000 / 1M tokens
Image output 0.045 $45000.0000 / 1M tokens
Embedding 2.5e-7 $0.2500 / 1M tokens
Batch input 1.25e-7 $0.1250 / 1M tokens
Batch output 7.5e-7 $0.7500 / 1M tokens

Token limits

Context window
32.8K
Max input tokens
65.5K
Max output tokens
32.8K
Max tokens
32.8K

Capabilities

Capability Supported
Vision Yes
Function calling No
Parallel function calling No
Tool choice No
Prompt caching Yes
Reasoning No
Response schema Yes
System messages Yes
Audio input No
Audio output No
Web search Yes
PDF input No
Video input No

Similar models

Models with comparable pricing in the same mode (image_generation).

Model Provider Input Output Context Coding Features
gemini-2.5-flash-image vertex_ai-language-models $0.3000 / 1M tokens $2.5000 / 1M tokens 32.8K N/A Vision Tools Cache
gemini-2.5-flash-image Google $0.3000 / 1M tokens $2.5000 / 1M tokens 32.8K N/A Vision Tools Cache
gemini-2.5-flash-image vertex_ai-language-models $0.3000 / 1M tokens $2.5000 / 1M tokens 32.8K N/A Vision Tools Cache
flux-kontext-max fireworks_ai $0.0800 / 1M tokens $0.0800 / 1M tokens 4.1K N/A
flux-kontext-pro fireworks_ai $0.0400 / 1M tokens $0.0400 / 1M tokens 4.1K N/A
flux-1-dev-fp8 fireworks_ai $0.0005 / 1M tokens $0.0005 / 1M tokens 4.1K N/A

Sources

Pricing source LiteLLM model cost map
Synced at 2026-05-27
Manual review Not reviewed
Raw LiteLLM fields
{
  "input_cost_per_token": 2.5e-7,
  "input_cost_per_token_batches": 1.25e-7,
  "litellm_provider": "gemini",
  "max_input_tokens": 65536,
  "max_output_tokens": 32768,
  "max_tokens": 32768,
  "mode": "image_generation",
  "output_cost_per_image": 0.045,
  "output_cost_per_image_token": 0.00006,
  "output_cost_per_image_token_batches": 0.00003,
  "output_cost_per_token": 0.0000015,
  "output_cost_per_token_batches": 7.5e-7,
  "rpm": 1000,
  "tpm": 4000000,
  "source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-3.1-flash-image-preview",
  "supported_endpoints": [
    "/v1/chat/completions",
    "/v1/completions",
    "/v1/batch"
  ],
  "supported_modalities": [
    "text",
    "image"
  ],
  "supported_output_modalities": [
    "text",
    "image"
  ],
  "supports_function_calling": false,
  "supports_prompt_caching": true,
  "supports_response_schema": true,
  "supports_system_messages": true,
  "supports_vision": true,
  "supports_web_search": true,
  "search_context_cost_per_query": {
    "search_context_size_low": 0.014,
    "search_context_size_medium": 0.014,
    "search_context_size_high": 0.014
  },
  "web_search_billing_unit": "per_query"
}