Gemini 3.8 Flash

发布于 2026-09-02

chat图像理解代码工具调用推理提示词缓存

Gemini 3.8 Flash 是谷歌能力最强的 Flash 档模型,官方页面称其为面向长周期软件工程、自主智能体与复杂企业工作流而打造。

输入
文本 图像 音频 视频 $0.75/M
输出
文本 $3.75/M
音频输入
$0.75/M
缓存读取
$0.075/M
上下文
1M
对比 GPT-4o
便宜约 85%
知识截止
2026-03

Benchmark 成绩

高于同类均值无更高分12 / 175 / 17
Gemini 3.8 Flash 其他参测模型 同类均值 ★ 没有模型得分更高
DeepSWE 1.1
73.7%
BioMysteryBench hard
没有模型得分更高 56.5%
OSWorld 2.0 Partial score, batch tool enabled
59%
HealthBench Professional
52.1%
Finance Agent v2
没有模型得分更高 61.4%
Legal Agent Benchmark
10%
GPQA Diamond
95.3%
CharXiv (RQ) no tools
没有模型得分更高 86.2%

供应商公布: Alibaba (Qwen) Anthropic ByteDance DeepSeek Google MiniMax Moonshot OpenAI Tencent Z.ai

价格在同类中的位置

价格在 70 个同类模型中的位置

输入$0.75/M
$0.1 · Dola Seed 2.0 Mini GPT-5.4 Pro · $30
输出$3.75/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
缓存读取$0.075/M
$0.006 · DeepSeek V4.1 Flash GPT-5.4 Pro · $15

这条线标出该模型的价格在 Synthorai 同类模型中的位置,两端分别是最便宜和最贵的模型。这里是基础价,批量、区域和缓存写入的折扣见价格页。

规格与限制

Token

上下文窗口(供应商规格) 1,048,576
最大输出(供应商规格) 65,536
知识截止 2026-03

提示词缓存

缓存方式 自动 + 显式
最小前缀 4,096

思考

参数 reasoning_effort
取值 minimal · low · medium · high 具体接受哪些值由供应商决定

模型

模态 文本 + 图像 + 音频 + 视频 → 文本

Google's most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents and complex enterprise workflows. The output price includes thinking tokens. The published rate is introductory: input and output both double on 1 January 2027, and context caching read and hourly storage double with them.

依据 Google 官方文档 ↗

一条提示词,经网关实测

提示词 Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. 检查 恰好 3 句

Gemini 3.8 Flash 通过 · 3 sentences

When we enabled reasoning, the model began generating hidden "thinking tokens" to work through logic step-by-step before producing a final answer. Because AI vendors bill for every single token processed—visible or not—this internal deliberation dramatically inflated our billable volume per query. In short, while our total number of user requests remained flat, the cost per transaction doubled to buy higher accuracy on complex tasks.

输出 705 tok (+624 思考) 延迟 6.4 s

指令遵循(恰好三句,数得出来)、受众适配(对 CFO 说话的口吻),以及下方 token 计数暴露出的隐藏思考计费差额。

提示词 This function is supposed to return the longest run of consecutive equal items, but callers report it is off by one on single-element inputs and misses runs that end at the last index. Fix it and explain the bug in one paragraph. 检查 修复通过测试

Gemini 3.8 Flash 通过 · 8/8 cases

Here is the corrected function: ```python def longest_run(xs): if not xs: return 0 best = 1 cur = 1 for i in range(1, len(xs)): if xs[i] == xs[i - 1]: cur += 1 best = max(best, cur) else: cur = 1 return best ``` ### Explanation of the Bug The original function counted equal-neighbor transitions rather than the actual items making up each run. Because `cur` started at `0` (and was reset to `0` on mismatches), every run was undercounted by one: single-element lists returned `0` because the loop never executed, and any subsequent run—including those ending at the last index—recorded a count of $N - 1$ instead of $N$. The fix handles empty input upfront, initializes both `cur` and `best` to `1` (since any single element forms a run of length 1), and resets `cur` to `1` whenever a new run begins.

输出 1393 tok (+1149 思考) 延迟 10.1 s

修复是否真的正确(能运行)、解释的信息密度,以及在一个范围明确的任务上的 token 效率。

提示词 Extract a JSON object with fields {company, quarter, revenue_usd_m, growth_pct, guidance} from this text. Use null for anything not stated; add no other fields. 检查 合法 JSON,严格符合 schema

Gemini 3.8 Flash 通过 · 5/5 fields, guidance null

```json { "company": "Meridian Robotics", "quarter": "September quarter", "revenue_usd_m": 412, "growth_pct": null, "guidance": null } ```

输出 3989 tok (+3932 思考) 延迟 30.4 s

是否严守 schema(不臆造字段)、能否顶住幻觉压力(原文明说暂不给出 guidance),以及结构化输出路径的差异。

提示词 Write a 120-word product announcement for an API gateway feature that caches prompts across providers. Forbidden words: "seamless", "unlock", "game-changer", "revolutionize", "empower". Exactly one sentence must be a question. 检查 120 词,0 个禁用词

Gemini 3.8 Flash 通过 · 120 words, 0 banned, 1 question

Why pay multiple model providers for the exact same output? Introducing Universal Prompt Cache, our latest API gateway capability engineered to cut compute expenses and drop inference latency. When your application makes a call, the gateway inspects a central memory layer before routing traffic to external LLMs. If an identical query was previously processed by OpenAI, Anthropic, or Mistral, our gateway returns that response immediately. This shared cache eliminates duplicate token fees and insulates your production apps from vendor rate limits or unexpected downtime. Developers can easily customize expiration settings, enforce strict data privacy controls, and configure invalidation logic across every endpoint. Stop wasting your budget on repeated queries. Enable prompt caching in your dashboard to accelerate your pipeline today.

输出 3833 tok (+3688 思考) 延迟 21.8 s

是否守住约束(字数预算、禁用词表、只能有一个问句)、文风特征,以及长度控制。

30 秒用上 Gemini 3.8 Flash

兼容 OpenAI:换掉 base_url,SDK 不用改。POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="gemini-3.8-flash",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

关于 Gemini 3.8 Flash

  • 它接受文本、图像、音频和视频输入并返回文本,因此一次调用就能同时对截图、录音和提示词做推理,不必再把多个模型拼成流水线。
  • 定价上最该提前规划的一点是:当前公布价是**引流价而非最终价** —— 每百万输入 token $0.75、每百万输出 token $3.75 的价格持续到 2026 年 12 月 31 日,2027 年 1 月 1 日起两者翻倍至 $1.50 与 $7.50。
  • 上下文缓存同日调整,读取价由每百万 token $0.075 涨到 $0.15,按小时计的存储费由每百万 token 每小时 $0.50 涨到 $1.00。
  • 凡是按今天的价格做过测算的,都值得赶在年前而不是年后重算一遍。
  • 输出价**含思考 token**,因此推理较重的回答按完整轨迹计费而非只按可见正文,设置最大输出时要把这一点算进去。
  • 谷歌公布的 Standard 价目表只有单一输入价,既无上下文长度分档、也没有单列的音频或视频行,所以长提示词与媒体输入都按文本价计费。
  • Google 搜索接地与 Google 地图接地各自每月都有一份在 Gemini 3 家族内共享的免费额度,超出后才开始按次计费。
  • Synthorai 通过 OpenAI 兼容的 chat completions 端点提供该模型,接进既有集成无需换用谷歌专用客户端。

常见问题

Gemini 3.8 Flash API 可以免费试用吗?

可以。新账号有 10 次试用调用,免费额度最高 $1,无需绑卡。按输入 $0.75/M 计算,光这笔额度就够向 Gemini 3.8 Flash 发约 166 次请求,每次 ~8K token。

Gemini 3.8 Flash 最擅长什么?

Flash 档中最强,面向长周期智能体、引流价 2027 年 1 月 1 日起翻倍、无上下文分档、无模态溢价。完整介绍见「关于」部分,内容取自供应商的官方发布说明。

Gemini 3.8 Flash 的价格是多少?

在 Synthorai 上,Gemini 3.8 Flash 的输入价为 $0.75/百万 token,输出价为 $3.75/百万 token。这就是供应商官网价,平台不加价。缓存命中的输入 token 按 $0.075/M 计费。

Gemini 3.8 Flash 的上下文长度是多少?

Gemini 3.8 Flash 的上下文长度(上下文窗口)是 1M token。单次回复最多输出 65,536 个 token。

Gemini 3.8 Flash 支持提示词缓存(prompt caching)吗?

支持:自动缓存默认开启,另有显式模式,可以确保拿到折扣。缓存命中的输入 token 按 $0.075/M 计费(未命中为 $0.75/M);提示词的稳定前缀至少要有 4,096 个 token 才能缓存。 提示词缓存指南 →

如何开通 Gemini 3.8 Flash?

把现有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 设为 "gemini-3.8-flash" 即可。一个 API key 就能调用网关上的全部模型。

Gemini 3.8 Flash 的知识截止日期是什么时候?

Gemini 3.8 Flash 的知识截止日期是 2026-03,以供应商官方文档为准(核对于 2026-09-03)。

相关模型

对比

本页的每个数值都照录自供应商自己的文档(链接见上),并标有核对日期。价格是在整个目录范围内比较的;各家供应商定义不一样的规格项,只说明差异,不画图对比。这里没有任何一项是我们自己测的,也不打分。

获取 API key 算算你的成本 →