Gemini 2.5 Pro (openai)

POST /api/v1/chat/completions(OpenAI 兼容)· 模型 official-33-6d734050d5ff0566d1

模型接口及可用规格详见开发文档;同步后请先验证并完成上架。

请求参数

参数类型必填说明
modelstring是固定填 official-33-6d734050d5ff0566d1
messagesarray是对话消息
streambool否流式返回
temperaturenumber否0~2
max_tokensint否最大输出 token
toolsarray否工具调用定义

示例

curl -X POST https://api.a7w.cn/api/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"official-33-6d734050d5ff0566d1","messages":[{"role":"user","content":"你好"}]}'

计费(每百万 token)

项目上游点数对外价(默认 +30%)

按 token 计费,价格见站内「价格」页。

同类文章