Skip to main content
AnyAIGC

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
About the model

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
Capabilities

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.

Pricing

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
gemini-3.8-flash price per 1M tokens in USD, AnyAIGC vs Google list price
ItemModelAnyAIGCGoogle (Standard)You save
Inputper 1M tokensgemini-3.8-flash$0.1575$0.75~79%
Outputper 1M tokens, incl. thinkinggemini-3.8-flash$0.7875$3.75~79%
Cache hitper 1M tokensgemini-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

Benchmarks

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

  • Gemini 3.8 Flash73.7%
  • Gemini 3.7 Flash65.3%

Coding, agents, professional work and multimodal

Gemini 3.8 Flash vs Gemini 3.7 Flash benchmark results (published by Google DeepMind)
BenchmarkGemini 3.8 FlashGemini 3.7 Flash
DeepSWE v1.1long-horizon software engineering73.7%65.3%
Terminal-bench 2.1terminal coding89.4%85.8%
Terminal-bench 4.0terminal coding (harder)19.1%11.2%
OSWorld-2.0computer use59.0%50.6%
GDPVal-AA v2economically valuable tasks, Elo15451482
Vals Finance Agent v2finance61.4%59.0%
Harvey Legal Agentlegal10.0%8.8%
GDP.PDFdocument tasks35.0%34.0%
CharXiv Reasoningchart reasoning, no tools86.2%84.5%
LVBenchlong video understanding87.8%85.4%
HLE-Verifiedbroad reasoning54.9%53.6%
BioMysteryBench (Human Difficult)biology56.5%43.5%
LABBench2life-science research86.2%82.1%

Source: Google DeepMind Gemini 3.8 Flash model card. The LVBench 87.8% is the agentic setting; static is 87.1%.

Choosing a model

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.

Gemini 3.8 Flash, Gemini 4 Argon and Gemini 3.7 Flash compared; prices are AnyAIGC USD per 1M tokens
Item3.8 Flash4 Argon3.7 Flash
RoleMain FlashFlagship reasoningPrevious Flash
Google statusGAGADeprecated
AnyAIGC input$0.1575$0.4200$0.1575
AnyAIGC output$0.7875$2.1000$0.7875
DeepSWE v1.173.7%77.9%65.3%
Terminal-bench 4.019.1%57.4%11.2%
OSWorld-2.059.0%69.2%50.6%
Vals Finance Agent v261.4%65.4%59.0%
LABBench286.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.

Use cases

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.

Quickstart

Start with the Gemini 3.8 Flash API in three steps

  1. Sign up and top up: create an account at anyaigc.ai. Your balance works for every model on the platform.
  2. Create an API key: create a token in the console, copy the key that starts with sk-, and store it in ANYAIGC_API_KEY.
  3. Send a request: call the native endpoint https://anyaigc.ai/v1beta/models/gemini-3.8-flash:generateContent or the OpenAI-compatible https://anyaigc.ai/v1/chat/completions with model set to gemini-3.8-flash. Both use Authorization: Bearer.
POST /v1beta/models/gemini-3.8-flash:generateContent
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"}
    }
  }'
Python · openai SDK · /v1/chat/completions
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)
POST /v1beta · responseSchema
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"]
      }
    }
  }'
Python · stream=True
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.

Enterprise

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.

Payment methods
  • 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.

SPECS

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.

FAQ

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.