Google · gemini-3.8-flash
Gemini 3.8 Flash API
Google's most intelligent Flash model. Flash speed and price, with much stronger coding and agents. About 21% of list price on AnyAIGC.
Google says Gemini 3.8 Flash is "engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows." Call gemini-3.8-flash for $0.1575 per million input tokens and $0.7875 per million output tokens, through the native Gemini API or the OpenAI-compatible API.
- Model ID gemini-3.8-flash
- Context 1M tokens
- Input $0.1575 / 1M
- Concurrency unlimited
- Business Self-service invoices
Flash speed and cost, with near-flagship coding and agents
Google made Gemini 3.8 Flash generally available on . Google calls it "our most intelligent Flash model," built for long-horizon software engineering, autonomous agents and complex enterprise workflows, "all with the speed and cost efficiency of Flash." The launch post describes it as the best reasoning and coding model in the Flash line so far, at the same speed and low cost as 3.7 Flash.
The model card says 3.8 Flash is based on 3.7 Flash. It takes up to 1,048,576 input tokens, returns up to 65,536 output tokens, and accepts text, images, video, audio and PDF natively. Google deprecated 3.7 Flash in October 2026 and now routes its API requests to 3.8 Flash, which makes 3.8 Flash the main stable model in the Gemini 3 series.
On AnyAIGC, gemini-3.8-flash works with both the native /v1beta/models/gemini-3.8-flash:generateContent endpoint and OpenAI-compatible /v1/chat/completions. You don't need a Google Cloud account, and concurrency is unlimited, so it can take production traffic as is.
- Context window
- 1,048,576input token limit
- Max output
- 65,536
- Knowledge cutoff
- March 2026
- Input modalities
- Text, image, video, audio, PDF
- Thinking levels
- low / medium / highmedium by default
- Released
- 2026-09-02generally available
What Gemini 3.8 Flash is good at
Everyday coding workhorse
Google reports 73.7% on DeepSWE v1.1 and 89.4% on Terminal-bench 2.1. Hand it the high-frequency work: completions, bug fixes and tests, fast and cheap.
Autonomous agents
Function calling, code execution, structured output, URL context, Google Search and Maps grounding, plus computer use in preview. 59.0% on OSWorld-2.0.
High-volume production
$0.1575 per 1M input and $0.0158 per 1M cache-hit tokens, with no concurrency cap on AnyAIGC. Run classification, extraction, summaries and moderation at scale.
1M-token context
A 1,048,576-token input window holds a whole codebase, a long report or a batch of contracts, so cross-document search and comparison fit in one request.
Native multimodal
Images, video, audio and PDF go in directly. Google reports 87.8% on LVBench for long video and 86.2% on CharXiv chart reasoning.
Adjustable thinking
Three thinking levels: use low to save tokens on simple calls and high for hard problems. One model covers quick replies through deep reasoning.
Gemini 3.8 Flash API pricing
Pay per token at a fixed rate, with no subscription or monthly fee. Input, output and cache hits each cost about 21% of Google's Standard price.
- Per tokenInput, output and cache priced separately
- ~79% offvs Google's Standard price
- Unlimitedconcurrency for every account
- USDOne balance for 300+ models
| Item | Model | AnyAIGC | Google (Standard) | You save |
|---|---|---|---|---|
| Inputper 1M tokens | gemini-3.8-flash | $0.1575 | $0.75 | ~79% |
| Outputper 1M tokens, incl. thinking | gemini-3.8-flash | $0.7875 | $3.75 | ~79% |
| Cache hitper 1M tokens | gemini-3.8-flash | $0.0158 | $0.075 | ~79% |
Prices in USD, billed on actual tokens used; output includes thinking tokens. Google's Standard price is introductory through December 31, 2026. From January 1, 2027 it becomes $1.50 input, $7.50 output and $0.15 cache, while AnyAIGC's price stays the same. Google prices are from the Gemini API pricing page. For live AnyAIGC prices, see the model catalog.
Cost examples
Estimates for common workloads. The struck-through figure is the same usage at Google's Standard price.
-
10,000 text classifications
2,000 input + 200 output tokens each
$4.73
Google
$22.50 -
20-turn agent session
Per turn: 20K cache hits + 5K input + 2K output
$0.054
Google
$0.255 -
1M in + 1M out
1M input tokens + 1M output tokens
$0.945
Google
$4.50
How much better than 3.7 Flash
Results from the Google DeepMind model card (as of September 2026). In the same speed and price tier, 3.8 Flash beats 3.7 Flash on every listed benchmark, with large gains in coding, computer use and biology.
DeepSWE v1.1 · real-world long-horizon software engineering
Coding, agents, professional work and multimodal
| Benchmark | Gemini 3.8 Flash | Gemini 3.7 Flash |
|---|---|---|
| DeepSWE v1.1long-horizon software engineering | 73.7% | 65.3% |
| Terminal-bench 2.1terminal coding | 89.4% | 85.8% |
| Terminal-bench 4.0terminal coding (harder) | 19.1% | 11.2% |
| OSWorld-2.0computer use | 59.0% | 50.6% |
| GDPVal-AA v2economically valuable tasks, Elo | 1545 | 1482 |
| Vals Finance Agent v2finance | 61.4% | 59.0% |
| Harvey Legal Agentlegal | 10.0% | 8.8% |
| GDP.PDFdocument tasks | 35.0% | 34.0% |
| CharXiv Reasoningchart reasoning, no tools | 86.2% | 84.5% |
| LVBenchlong video understanding | 87.8% | 85.4% |
| HLE-Verifiedbroad reasoning | 54.9% | 53.6% |
| BioMysteryBench (Human Difficult)biology | 56.5% | 43.5% |
| LABBench2life-science research | 86.2% | 82.1% |
Source: Google DeepMind Gemini 3.8 Flash model card. The LVBench 87.8% is the agentic setting; static is 87.1%.
Gemini 3.8 Flash vs Gemini 4 Argon vs 3.7 Flash
Use 3.8 Flash for everyday traffic and Argon for the hardest tasks. Google has deprecated 3.7 Flash, so it isn't a good pick for new projects.
| Item | 3.8 Flash | 4 Argon | 3.7 Flash |
|---|---|---|---|
| Role | Main Flash | Flagship reasoning | Previous Flash |
| Google status | GA | GA | Deprecated |
| AnyAIGC input | $0.1575 | $0.4200 | $0.1575 |
| AnyAIGC output | $0.7875 | $2.1000 | $0.7875 |
| DeepSWE v1.1 | 73.7% | 77.9% | 65.3% |
| Terminal-bench 4.0 | 19.1% | 57.4% | 11.2% |
| OSWorld-2.0 | 59.0% | 69.2% | 50.6% |
| Vals Finance Agent v2 | 61.4% | 65.4% | 59.0% |
| LABBench2 | 86.2% | 88.8% | 82.1% |
Benchmarks come from the Google DeepMind model cards for Gemini 3.8 Flash and Gemini 4 Argon. Prices are current AnyAIGC prices; see the model catalog for live prices. More detail: Gemini 4 Argon API.
What teams build with Gemini 3.8 Flash
- 01 · Batch
Classify, extract and summarize at scale
Ticket routing, review tagging, contract field extraction, daily digests. Structured output returns JSON directly, concurrency is unlimited, and 10,000 requests cost a little over two dollars in the example above.
- 02 · Coding
IDE assistants and code review
Low latency suits completions, code explanations and test generation, which are called constantly. Send large cross-repo jobs to Gemini 4 Argon with the same key.
- 03 · Agents
Multi-step tool calling
Combine function calling, code execution and Search grounding for look-up, compute and write-back flows. The low thinking level answers faster, which helps agents that make many round trips.
- 04 · Multimodal
Video, image and PDF understanding
Feed in product videos, screenshots, scans and reports to pull out key points or check numbers. Cache hits cost $0.0158 per 1M tokens, so reusing the same material is nearly free.
Start with the Gemini 3.8 Flash API in three steps
- Sign up and top up: create an account at anyaigc.ai. Your balance works for every model on the platform.
- Create an API key: create a token in the console, copy the key that starts with
sk-, and store it inANYAIGC_API_KEY. - Send a request: call the native endpoint
https://anyaigc.ai/v1beta/models/gemini-3.8-flash:generateContentor the OpenAI-compatiblehttps://anyaigc.ai/v1/chat/completionswithmodelset togemini-3.8-flash. Both useAuthorization: Bearer.
curl https://anyaigc.ai/v1beta/models/gemini-3.8-flash:generateContent \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{"role": "user", "parts": [{"text": "In three sentences, explain what a database index is and when not to add one."}]}
],
"generationConfig": {
"thinkingConfig": {"thinkingLevel": "low"}
}
}'
import os
from openai import OpenAI
client = OpenAI(
base_url="https://anyaigc.ai/v1",
api_key=os.environ["ANYAIGC_API_KEY"],
)
resp = client.chat.completions.create(
model="gemini-3.8-flash",
messages=[
{"role": "system", "content": "You are a senior Python engineer. Answer with runnable code."},
{"role": "user", "content": "Write an HTTP request helper with retries and exponential backoff."},
],
)
print(resp.choices[0].message.content)
print(resp.usage)
curl https://anyaigc.ai/v1beta/models/gemini-3.8-flash:generateContent \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{"role": "user", "parts": [{"text": "Review: Shipping was slow, but support was friendly and the headphones sound great."}]}
],
"generationConfig": {
"thinkingConfig": {"thinkingLevel": "low"},
"responseMimeType": "application/json",
"responseSchema": {
"type": "object",
"properties": {
"sentiment": {"type": "string", "enum": ["positive", "neutral", "negative"]},
"topics": {"type": "array", "items": {"type": "string"}}
},
"required": ["sentiment", "topics"]
}
}
}'
import os
from openai import OpenAI
client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])
stream = client.chat.completions.create(
model="gemini-3.8-flash",
messages=[{"role": "user", "content": "Write 5 app store release notes for a SaaS product."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()
Parameter notes: Gemini 3.8 Flash uses thinkingLevel (low / medium / high) to control thinking. The default is medium, and minimal is not supported. Google notes that higher levels can use more tokens, so start batch jobs on low. For native streaming, call :streamGenerateContent?alt=sse.
Full parameters are in the native Gemini API docs and the Chat Completions docs. Replace the model name in the examples with gemini-3.8-flash.
Gemini 3.8 Flash API for teams and enterprises
Teams and companies can buy through a standard business process, with support for finance, legal and engineering.
- Invoices
An invoice for every top-up
Issue invoices yourself in the console for the amount you actually topped up.
- Dedicated support
A named contact
Dedicated support and a technical contact to help with onboarding, migration and day-to-day issues.
- WeChat Pay
- Alipay
- USDT
- Credit card
Why teams trust AnyAIGC
Trial credit, top-ups, refunds, data handling and billing, spelled out up front.
5M free tokens to start
New accounts get trial credit, so you can test before you top up.
Top up from $1, refundable
Top up from $1. Unused balance can be refunded with no fee.
Official channels, real models
Requests go to official model channels, never cheaper or reverse-engineered substitutes.
No retention, no training
Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.
Transparent billing, spend caps
See tokens and cost for every request in the console, and set a quota on each API key.
24/7 support
Contact support any time about integration, billing or incidents.
Other Gemini models
One API key calls every Gemini model below. Pick by task difficulty and budget.
- LatestGemini 4 HydrogenFast Gemini 4 model for everyday coding and agents · $0.5360 / 1M input
- Gemini 4 CarbonGemini 4 frontier model for long-horizon agents · $0.7147 / 1M input
- Gemini 4 ArgonGoogle's flagship reasoning model · input $0.4200 / 1M
- Gemini 3.8 FlashMost intelligent Flash, fast and low cost · input $0.1575 / 1M
- Gemini 3.8 Flash TTSText to speech, 30 voices, two speakers · $3.2163 / 1M audio output
- Gemini 3.1 ProGemini 3 Pro, in preview · input $0.1985 / 1M
Specs and how to choose it
Google's docs call Gemini 3.8 Flash its most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents and complex enterprise workflows, with the speed and cost efficiency of Flash.
The input limit is 1,048,576 tokens and the output limit is 65,536 tokens; input can be text, image, video, audio and PDF, and output is text.
This page lists Input at $0.1575, Output at $0.7875, Cache hit at $0.0158, matching the pricing table above.
Compared with gemini-4-hydrogen: Google positions Gemini 4 Hydrogen for everyday coding and agentic workflows, with output up to 1,048,576 tokens when long decode is on.
Specs come from the vendor's official documentation (aistudio.google.com). The table on this page is the price, and the model catalog is authoritative for live rates.
Gemini 3.8 Flash API FAQ
How much does the Gemini 3.8 Flash API cost?
On AnyAIGC, gemini-3.8-flash is billed per token: $0.1575 per 1M input tokens, $0.7875 per 1M output tokens and $0.0158 per 1M cache-hit tokens. Google's Standard price (introductory through December 31, 2026) is $0.75 input, $3.75 output and $0.075 cache, so AnyAIGC is about 21% of list. Output includes thinking tokens.
Will AnyAIGC's price change after Google's introductory period?
No. Starting January 1, 2027, Google's Standard price becomes $1.50 input, $7.50 output and $0.15 cache per 1M tokens. AnyAIGC keeps its current price ($0.1575 input, $0.7875 output, $0.0158 cache), which is then about 10.5% of Google's price.
What is the model ID? Is Gemini 3.8 Flash generally available?
The model ID is gemini-3.8-flash. Google released it as generally available (GA) on September 2, 2026, and has not announced a shutdown date. The native API puts the model name in the URL (/v1beta/models/gemini-3.8-flash:generateContent); the OpenAI-compatible API takes it in the model field.
What are the context window and max output?
Google lists an input limit of 1,048,576 tokens and an output limit of 65,536 tokens. Inputs can be text, images, video, audio and PDF; output is text. The knowledge cutoff is March 2026.
Should I use the native Gemini API or the OpenAI-compatible API?
Either works. The native endpoint is POST https://anyaigc.ai/v1beta/models/gemini-3.8-flash:generateContent with the same request body as the Google Gemini API. The OpenAI-compatible endpoint is POST https://anyaigc.ai/v1/chat/completions; with the official OpenAI SDK, set base_url to https://anyaigc.ai/v1. Both authenticate with Authorization: Bearer.
How do I set the thinking level?
Gemini 3.8 Flash supports low, medium and high thinking levels, with medium as the default. In the native API set generationConfig.thinkingConfig.thinkingLevel. Google notes that minimal is not supported and returns an error, and that higher levels can use more tokens, so low is a good start for cost-sensitive batch jobs.
Gemini 3.8 Flash or Gemini 4 Argon?
Gemini 3.8 Flash fits high-volume, latency- and cost-sensitive work plus everyday coding and agent workflows, at $0.1575 input and $0.7875 output on AnyAIGC. Gemini 4 Argon is Google's current flagship and scores higher than 3.8 Flash on Google's published DeepSWE, Terminal-bench 4.0, legal and finance agent benchmarks, at $0.4200 input and $2.1000 output on AnyAIGC. Start with 3.8 Flash and send the hardest tasks to Argon; both use the same key.
Can I still use Gemini 3.7 Flash? How is 3.8 Flash different?
Google deprecated gemini-3.7-flash on October 8, 2026 and replaced it with gemini-3.8-flash; Google's own API routes 3.7 Flash requests to 3.8 Flash automatically. Google says 3.8 Flash is based on 3.7 Flash and improves notably on software engineering and agentic tasks, for example DeepSWE v1.1 rises from 65.3% to 73.7%. Both cost the same on AnyAIGC, so new projects should use gemini-3.8-flash.
Are there concurrency or rate limits?
AnyAIGC does not cap concurrency for gemini-3.8-flash. Every account gets this by default, which suits batch processing and parallel agents.
How do I get a Gemini 3.8 Flash API key?
Sign up at anyaigc.ai, top up, and create a token in the console. The same key calls Gemini 3.8 Flash and 300+ other models, with no Google Cloud account needed.
Can I get an invoice from AnyAIGC?
Yes. You can issue invoices yourself in the console, for the amount you actually topped up.
Which payment methods are supported?
You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.
Is there free trial credit for new users?
Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.
Can I get a refund on my balance?
Yes. Unused balance can be refunded with no fee. Contact support to start a refund.
Are these the real models? Is my data safe?
Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.
Is my data used for training?
No. Unless the law requires it, AnyAIGC does not persistently store your prompts or outputs or use them for training, and requests travel over HTTPS. See the AnyAIGC Privacy Policy. Google's own terms govern the model itself.
Run Gemini 3.8 Flash at about 21% of list price
Create an API key and you can call gemini-3.8-flash from your code in minutes, with the native API or the OpenAI SDK.