google/gemini-4-carbon
Gemini 4 Carbon 低至5折
Gemini 4 Carbon is a frontier Gemini 4 model from Google for coding, agentic and complex reasoning work. It takes text, image, audio, video and file input, supports long decode of up to 1M output tokens through continuation, and controls thinking depth with low, medium and high reasoning effort.
上下文窗口1M
最大输出 Token943K
支持协议
发布日期—
能力与模态
当前模型版本支持的输入输出能力
输入模态
文本
图像
音频
视频
文件
输出模态
文本
模型价格
价格与能力以接口实时数据为准
输入价格
$2 / M$4
输出价格
$10 / M$20
音频输入
$2 / M$4
缓存读取
$0.1 / M$0.2
缓存图像
$0.1 / M$0.2
缓存音频
$0.1 / M$0.2
缓存视频
$0.1 / M$0.2
网页搜索
$0.007 / 次$0.014
API 接口
当前模型可以使用的调用端点
原生协议 2
/v1beta/models/{model}:generateContent
/v1beta/models/{model}:streamGenerateContent
转换协议 3
/v1/messages
/v1/chat/completions
/v1/responses
API 接入示例
选择协议与语言,配置 API Key 后运行
generateContent
先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。
POST
https://api.tikway.ai/v1beta/models/google/gemini-4-carbon:generateContentcurl --fail-with-body 'https://api.tikway.ai/v1beta/models/google/gemini-4-carbon:generateContent' \
-H "x-goog-api-key: $AI_GATEWAY_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "用三句话介绍 Tikway"
}
]
}
]
}'