gemini-3.1-pro-preview

by GoogleGooglegemini-3.1-pro-preview通用对话Chat 分档计价Tiered pricing

概述Overview

价格Pricing

档位Tier输入Input输出Output缓存读取Cache read缓存写入(短时 / 通用)Cache write缓存写入(1 小时)Cache write (1h)缓存写入(12 小时)Cache write (12h)
0_200k · USD / 百万 Token$2.00$12.00$0.20$2.00$3.20$4.00
200k_plus · USD / 百万 Token$4.00$18.00$0.40$4.00$6.40$8.00

目录版本 a572617239af · Catalog version a572617239af · 美元(USD)基础报价,Token 单价按每百万计。实际计费取决于所选分组和请求条件,请在控制台核对。Base rates in USD. Token rates are per million. Check your group and request terms in the console.

0_200k:满足 完整输入上下文 Token ≤ 200000

200k_plus:不满足 完整输入上下文 Token ≤ 200000

基础报价,分组倍率及列出的请求条件另行适用;以消费记录中的实际扣费为准。

缓存/图片/音频价格仅在上游报告相应用量时适用,不代表该模型保证支持对应能力。未独立定价的缓存按后端继承规则展示。

完整计费表达式
len <= 200000 ? tier("0_200k", p * 2 + cr * 0.2 + c * 12) : tier("200k_plus", p * 4 + cr * 0.4 + c * 18)

调用示例Quick start

接口与 OpenAI 兼容:把 base_url 指向 TokenFlow,model 填本页的模型 ID,现有 SDK 与客户端可以直接复用。The API is OpenAI-compatible: point base_url at TokenFlow and set model to the ID on this page. Your existing SDKs and clients keep working.

curl https://api.tokenflow365.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKENFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": "你好"
    }
  ]
}'
curl https://api.tokenflow365.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKENFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'

常用参数、流式输出与响应结构见Parameters, streaming and response format: 文本与对话Chat completions

开始使用Get started

让第一个请求
流动起来
Get your first
request flowing

几分钟内完成接入。按量付费,无需订阅。Integrate in minutes. Pay as you go, no subscription.