Crazyrouter 上的 Google 模型
全部 Google 模型 →

Gemini 4 Carbon API 价格与接入

通过 Crazyrouter 使用 gemini-4-carbon,对比实时 token 与缓存费用,并查看支持接口的调用示例。

通过 API 使用此模型

此模型可通过付费 API 使用。注册后充值并创建 API Key。$2 Playground 额度仅适用于其支持的文本模型,不能抵扣 API 费用。

注册并接入 API
OpenAI 兼容接口Gemini 原生接口
获取 API Key查看实时价格

把模型 ID、实时价格、Base URL 和调用示例一次粘贴进你的 coding agent。

Google
gemini-4-carbon
输入 / 百万 token$2.00
输出 / 百万 token$10
缓存读取 / 百万 token$0.100
模型 ID
gemini-4-carbon
提供商
Google
接口
/v1/chat/completions
任务类型
对话 / 推理

Gemini 4 Carbon 是什么?

Gemini 4 Carbon 与 Argon 是独立模型,尽管当前输入、输出和缓存读取费率相同。本站为 Carbon 公开提供 Chat Completions 与 Gemini generateContent 接口。对比时请使用精确的 carbon 模型 ID,并在多模态请求中核对音频输入价格。 API 请求必须填写 gemini-4-carbon。示例包含 /v1/chat/completions 和 /v1beta/models/{model}:generateContent。

OpenAI 兼容即插即用

支持 OpenAI SDK、LangChain、Cursor、Cline 等任何可自定义 base URL 的工具。

流式与工具调用

流式、工具调用和结构化输出取决于模型及上游渠道;生产使用前请在实际渠道分别验证。

实时用量价格

本页价格来自本站计费表;折扣因模型而异。

一个账户所有模型

与 Claude、GPT、Gemini、DeepSeek 等直接对比,不用维护多家账号。

Gemini 4 Carbon API 快速开始

把 OpenAI SDK 的 base_url 指向 https://api.crazyrouter.com/v1,model 填 gemini-4-carbon。客户端原生支持 Gemini 的话用第二个示例。

cURL
curl https://api.crazyrouter.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
  -d '{
    "model": "gemini-4-carbon",
    "messages": [{"role": "user", "content": "Explain the tradeoffs of this architecture decision."}],
    "stream": true
  }'
查看 OpenAI 兼容迁移示例
cURL
curl "https://api.crazyrouter.com/v1beta/models/gemini-4-carbon:generateContent" \
  -H "Content-Type: application/json" \
  -H "x-goog-api-key: $CRAZYROUTER_API_KEY" \
  -d '{
    "contents": [{"parts": [{"text": "Explain the tradeoffs of this architecture decision."}]}]
  }'

工作量费用估算

聊天机器人 · 每月
$460
10 万次对话 × 800 输入 / 300 输出 token
文档处理 · 每千份
$31
每份 8,000 输入 / 1,500 输出 token
编程 · 每开发者每月
$8.00
200 万输入 / 40 万输出 token

适用场景

带工具调用的编程助手与 Agent 循环
长文档分析、摘要与信息抽取
面向用户的流式对话
跨厂商模型评测与 A/B 测试
批量分类、打标与结构化抽取
技术写作、设计文档与代码评审

开发工具兼容

OpenAI SDK

base_url 设为 https://api.crazyrouter.com/v1,model 设为 gemini-4-carbon。

Cursor、Cline、Continue

添加 Crazyrouter 为自定义 OpenAI 兼容提供商,从列表中选模型。

LangChain / LlamaIndex

用 OpenAI chat model 类并指定 Crazyrouter base URL。

Gemini 4 Carbon 常见问题

Gemini 4 Carbon 的 base URL 填什么?

https://api.crazyrouter.com/v1。对话补全走 /v1/chat/completions,Gemini 原生请求走其常规路径。

怎么计费?

按 token 计费,费率见本页输入/输出价格。每次请求从余额扣减,无订阅。

支持流式和函数调用吗?

支持情况取决于模型及上游渠道。示例请求是接入起点,流式、工具调用和结构化输出需要分别验证。

以后能换模型吗?

改 model 字符串即可,同一把 Key 可用 Crazyrouter 目录里的全部模型。

哪里看当前价格?

价格页列出所有模型的实时费率,登录后还会显示分组折扣。

相关指南与对比

Podcast

AI Dev Tools: The Crazyrouter Podcast

面向开发者的英文短节目:AI API、网关、成本控制与编程工具。

最新节目

  • EP196 · 2026年10月29日 · 6:53

    AI API Security Posture — Turn Controls Into Continuous Evidence

    A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.

  • EP195 · 2026年10月28日 · 7:21

    AI API Policy Drift — Detect When Production Rules Stop Matching Intent

    A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.

Episodes with written show notes →