LiteLLMModels

Gemini 3.8 Flash API Pricing

As of October 10, 2026, Gemini 3.8 Flash costs $0.75 per 1M input tokens and $3.75 per 1M output tokens on Google AI Studio, with cache reads at $0.075 per 1M tokens. It has a 1,048,576-token context window and returns up to 65,536 tokens per response.

By GoogleModel ID gemini/gemini-3.8-flashPrices updated Checked
Input
$0.75 / 1M tokens
Output
$3.75 / 1M tokens
Cache read
$0.075 / 1M tokens
Context window
1,048,576 tokens
Max output
65,536 tokens
Providers
5
Added to LiteLLM
September 2, 2026

Gemini 3.8 Flash pricing by provider

5 listings across 5 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputCache readBatch inBatch outContext
Google AI Studiogemini/gemini-3.8-flash$0.75$3.75$0.075$0.375$1.8751M
Databricksdatabricks/databricks-gemini-3-8-flash–––––1M
GitHub Copilotgithub_copilot/gemini-3.8-flash–––––200K
Google Vertex AIvertex_ai/gemini-3.8-flash$0.75$3.75$0.075$0.375$1.8751M
Perplexityperplexity/google/gemini-3.8-flash$0.75$3.75$0.075–––

Other Gemini 3.8 Flash prices on Google AI Studio

Priority input$1.35 per 1M tokens
Priority output$6.75 per 1M tokens
Flex input$0.375 per 1M tokens
Flex output$1.875 per 1M tokens
Web search$14.00 per 1K searches

What Gemini 3.8 Flash costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Google AI Studio$3.375
Google Vertex AI$3.375
Perplexity$3.375
Google AI Studio batch$1.688

100 long-document requests with 100,000 input and 2,000 output tokens each

Google AI Studio$8.25
Google Vertex AI$8.25
Perplexity$8.25

Gemini 3.8 Flash features

Input: text, image, audio, video. Output: text.

Use Gemini 3.8 Flash with LiteLLM

Call Gemini 3.8 Flash through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="gemini/gemini-3.8-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gemini-3.8-flash
    litellm_params:
      model: gemini/gemini-3.8-flash
      api_key: os.environ/GEMINI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "gemini-3.8-flash",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Gemini 3.8 Flash FAQ

How much does Gemini 3.8 Flash cost?

Gemini 3.8 Flash costs $0.75 per 1M input tokens and $3.75 per 1M output tokens on Google AI Studio, with cache reads at $0.075 per 1M tokens. Batch requests cost $0.375 per 1M input tokens and $1.875 per 1M output tokens.

What is the context window of Gemini 3.8 Flash?

Gemini 3.8 Flash has a 1,048,576-token context window and returns up to 65,536 tokens per response.

Which providers offer Gemini 3.8 Flash?

Gemini 3.8 Flash is available from 5 providers through LiteLLM: Google AI Studio, Databricks, GitHub Copilot, Google Vertex AI and Perplexity.

How do I call Gemini 3.8 Flash with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="gemini/gemini-3.8-flash", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Gemini 3.8 Flash support?

Gemini 3.8 Flash supports function calling, parallel tool calls, structured output, image input, PDF input, audio input, video input, reasoning, prompt caching and web search. It does not support audio output.

When did LiteLLM add Gemini 3.8 Flash?

Gemini 3.8 Flash was added to LiteLLM's model price file on September 2, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: Google AI Studio, Databricks, GitHub Copilot, Google Vertex AI, Perplexity.

Provider pages: Google AI Studio, Databricks, GitHub Copilot, Google Vertex AI, Perplexity.