gemini-4-carbon

别名Gemini 4 Carbon
由 Google 提供文本

Gemini 4 Carbon 面向编程和科学推理,支持 Gemini Chat Completions 与原生 generateContent,token 费率比官方价低 40%。

更新于:
输入MessagesGemini 聊天格式
输出文本JSON 或流式
返回方式同步或流式stream 可选
价格优惠 40%官方价
gemini-4-carbon对话示例
你

Turn these engineering notes into a release plan with owners, milestones, and rollback checks. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon 标志
gemini-4-carbon

Start with the goal and release window, assign an owner for each milestone, define an observable success condition, and include a tested rollback path before launch. This example is tailored to the gemini-4-carbon model page.

生成示例

请求与回复示例

01 · 发布计划gemini-4-carbon
你

Turn these engineering notes into a release plan with owners, milestones, and rollback checks. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon 标志
gemini-4-carbon

Start with the goal and release window, assign an owner for each milestone, define an observable success condition, and include a tested rollback path before launch. This example is tailored to the gemini-4-carbon model page.

02 · 数据契约gemini-4-carbon
你

Design a JSON data contract for an asynchronous generation job, including validation and status transitions. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon 标志
gemini-4-carbon

Use one immutable request ID, validate the input schema at ingestion, model status as a small state machine, and record timestamps plus result URLs for every terminal state. This example is tailored to the gemini-4-carbon model page.

03 · 客户通知gemini-4-carbon
你

Rewrite this technical outage note as a calm customer update with clear next steps. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon 标志
gemini-4-carbon

Lead with impact and current status, state the mitigation in plain language, avoid speculative causes, and tell customers exactly when the next update will arrive. This example is tailored to the gemini-4-carbon model page.

模型能力

gemini-4-carbon 能做什么

适用任务

Google 将此款前沿模型面向高难度软件工程、科研推理与长流程任务。

Chat Completions

通过 Gemini 兼容聊天接口提交 messages 和完整模型 ID。

Gemini 原生请求

使用 generateContent 接口设置 contents、系统指令、工具及模型支持的生成参数。

按 token 计费

输入、缓存输入和输出按 Google 官方价计算,再应用 TTAPI 的 40% 优惠。

计费

按 token 计费

支持的文本模型共用 API 密钥和账户余额。

Gemini 4 Carbon token 计费官方定价

每百万 token 的美元费率已含 TTAPI 40% 渠道优惠。输出计费包含思考 token,缓存输入使用隐式缓存。

PeriodInput / 1M缓存输入 / 百万 tokenOutput / 1M
截至 2026 年 11 月 30 日$1.2$0.06$6
自 2026 年 12 月 1 日起$2.40$0.12$12.00
API 请求

按操作查看请求

选择一个操作,查看对应接口和请求字段。

Gemini

Gemini Completions

兼容聊天格式。在请求体发送 messages 和 model,stream 为可选布尔值。

POSThttps://api.ttapi.io/gemini/chat/completions

请求头

TT-API-KEYstring必填

填写 TTAPI API 密钥。

Content-Typestring必填

使用 application/json。

请求体

messagesobject[]必填

按 TTAPI 文档传入带 role 和 content 的对话消息。

messages[].rolestring选填

消息角色,例如 user。

messages[].contentstring选填

这条对话消息的文本内容。

modelstring必填

填写请求示例中使用的 Gemini 模型 ID。

streamboolean选填

通过服务端发送事件逐步返回响应,默认 false。

查看当前渠道的接入文档
接入示例

查看选中渠道的代码示例

选择渠道和操作,再复制相应的接口地址、请求体或代码示例。

Gemini

Gemini Completions 接入示例

POST https://api.ttapi.io/gemini/chat/completions

curl --request POST \
  --url https://api.ttapi.io/gemini/chat/completions \
  --header "TT-API-KEY: $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"model":"gemini-4-carbon","messages":[{"role":"user","content":"Review this migration plan and identify the three highest risks."}],"stream":false}'