gemini-4-argon

别名Gemini 4 Argon
由 Google 提供文本

Gemini 4 Argon 面向编程和多步骤分析,支持 Gemini Chat Completions 与原生 generateContent,token 费率比官方价低 40%。

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

Review a TypeScript webhook handler for reliability risks and propose the highest-value fixes. Keep the answer practical for a gemini-4-argon integration.

gemini-4-argon 标志
gemini-4-argon

Verify signatures against the raw body, reject stale events, deduplicate by event ID, acknowledge quickly, and move slow work to a retried background queue. This example is tailored to the gemini-4-argon model page.

生成示例

请求与回复示例

01 · 代码审查gemini-4-argon
你

Review a TypeScript webhook handler for reliability risks and propose the highest-value fixes. Keep the answer practical for a gemini-4-argon integration.

gemini-4-argon 标志
gemini-4-argon

Verify signatures against the raw body, reject stale events, deduplicate by event ID, acknowledge quickly, and move slow work to a retried background queue. This example is tailored to the gemini-4-argon model page.

02 · 查询设计gemini-4-argon
你

Explain how to choose indexes for a job table filtered by owner, status, and creation time. Keep the answer practical for a gemini-4-argon integration.

gemini-4-argon 标志
gemini-4-argon

Begin from the most common filter order, use a composite index that supports the leading predicates, measure the actual query plan, and retain a simple retention strategy for old rows. This example is tailored to the gemini-4-argon model page.

03 · 产品简报gemini-4-argon
你

Summarize a product brief for a developer API in five concise bullets. Keep the answer practical for a gemini-4-argon integration.

gemini-4-argon 标志
gemini-4-argon

Cover the customer problem, primary workflow, integration surface, pricing or quota rule, and the measurable outcome that defines adoption. This example is tailored to the gemini-4-argon model page.

模型能力

gemini-4-argon 能做什么

适用任务

Google 的高效前沿推理模型,适合复杂编程、分析及智能体工作。

Chat Completions

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

Gemini 原生请求

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

按 token 计费

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

计费

按 token 计费

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

Gemini 4 Argon 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-argon","messages":[{"role":"user","content":"Review this migration plan and identify the three highest risks."}],"stream":false}'