Skip to content

Gemini 3.8 Flash API cost

At list prices from Google (Gemini API), Gemini 3.8 Flash costs $0.75 per million input tokens and $3.75 per million output tokens, with cached input at $0.075. Across the standard workloads below it would cost from $188.20 a month (long-form writing) to $2,099 a month (cached-prompt assistant).

It is the 6th cheapest of 13 models at 4 workloads and 5th cheapest of 12 for the cached-prompt assistant workload. Output tokens are 91% of the bill for long-form writing but 7.7% for long-document questions. Prompt caching takes the bill for the cached-prompt assistant workload from $4,563 to $2,099 a month, 54% less. Sent through the batch API, the short chat workload would cost $285.16 a month instead of $570.31.

Prices on this page last verified on Sources

Published prices

Google (Gemini API) list prices per million tokens. In our mid-range tier.

Gemini 3.8 Flash prices per million tokens
Prompt lengthInputCached inputOutputBatch inputBatch cached inputBatch output
All prompt lengths$0.75$0.075$3.75$0.375$0.0375$1.875

Cost at five standard workloads

The same traffic on every model, so the rank shows where Gemini 3.8 Flash sits. “vs cheapest” compares it with the cheapest model for that workload.

Gemini 3.8 Flash cost by workload
WorkloadRequests a dayTokens in / outPer 1,000 requestsPer monthVia batch APIRank, all modelsRank, mid-range tiervs cheapest
Short chat10,0001,000 / 300$1.88$570.31$285.166th of 131st of 37.5× (Claude Haiku 5.5)
Long-document questions1,00030,100 / 500$24.45$743.69$371.846th of 131st of 37.5× (Claude Haiku 5.5)
Bulk tagging200,000400 / 10$0.337$2,053$1,0276th of 131st of 37.5× (Claude Haiku 5.5)
Long-form writing5001,500 / 3,000$12.37$188.20$94.106th of 131st of 37.5× (Claude Haiku 5.5)
Cached-prompt assistant20,0008,000 / 400$3.45$2,099$1,0495th of 121st of 37.5× (Claude Haiku 5.5)

Equal costs share a rank. “Via batch API” prices the same traffic with every request sent through the provider’s batch API, using its published batch prices.

Workload assumptions

Short chat

Short questions and answers at moderate volume.

Input tokens per request
Part of the promptTokensCachedWhy
Instructions300NoShort instructions, treated as uncached.
Message and recent turns700NoChanges with every request.
Total1,000None cached
Requests a day: 10,000
A popular in-app assistant.
Output tokens per request: 300
A reply of about 220 words.
Batch API: not used
Real-time replies.

These are stated assumptions for illustration, not measurements. Cached parts are assumed to be read from the prompt cache on every request. Token counts are the same for every model, although providers count tokens differently. Use the calculator to try your own figures.

Long-document questions

Long input with a short answer: most of the cost is input tokens.

Input tokens per request
Part of the promptTokensCachedWhy
Document30,000NoAbout 22,000 words, different every time.
Question100NoOne or two sentences.
Total30,100None cached
Requests a day: 1,000
A research or legal team asking questions of whole documents.
Output tokens per request: 500
An answer of about 370 words.
Batch API: not used
Real-time answers.

These are stated assumptions for illustration, not measurements. Cached parts are assumed to be read from the prompt cache on every request. Token counts are the same for every model, although providers count tokens differently. Use the calculator to try your own figures.

Bulk tagging

Very high volume with a tiny output: a label per item.

Input tokens per request
Part of the promptTokensCachedWhy
Instructions and labels300NoShort instructions, treated as uncached.
Item100NoA short text.
Total400None cached
Requests a day: 200,000
Items such as tickets, reviews or records tagged as they arrive.
Output tokens per request: 10
One label.
Batch API: not used
Tagged as items arrive.

These are stated assumptions for illustration, not measurements. Cached parts are assumed to be read from the prompt cache on every request. Token counts are the same for every model, although providers count tokens differently. Use the calculator to try your own figures.

Long-form writing

A short brief and a long answer: most of the cost is output tokens.

Input tokens per request
Part of the promptTokensCachedWhy
Brief and style notes1,500NoDifferent for each piece.
Total1,500None cached
Requests a day: 500
Articles, reports or long emails drafted a day.
Output tokens per request: 3,000
About 2,200 words.
Batch API: not used
Drafts are wanted straight away.

These are stated assumptions for illustration, not measurements. Cached parts are assumed to be read from the prompt cache on every request. Token counts are the same for every model, although providers count tokens differently. Use the calculator to try your own figures.

Cached-prompt assistant

A large fixed prompt read from the prompt cache on every request.

Input tokens per request
Part of the promptTokensCachedWhy
Instructions and tool definitions6,000YesThe same on every request, so read from the prompt cache.
Conversation and request2,000NoChanges with every request.
Total8,00075% cached
Requests a day: 20,000
A busy assistant with long instructions and tool definitions.
Output tokens per request: 400
A reply of about 300 words.
Batch API: not used
Real-time replies.

These are stated assumptions for illustration, not measurements. Cached parts are assumed to be read from the prompt cache on every request. Token counts are the same for every model, although providers count tokens differently. Use the calculator to try your own figures.

Your traffic looks different? Enter your own figures in the calculator.

Other models in the same tier

Sources

Sources: aistudio.google.com (checked )

  • Tier: Provider text: "Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows." Most capable model of the faster Flash line: mid. aistudio.google.com (checked )

Prices are list prices as each provider publishes them, used unchanged. How the figures are calculated: methodology.