⌘K

Gemini 3.7 Flash

gemini-3.7-flash

Google Gemini 3.7 Flash 模型, 可通过 Vtrix OpenAI 兼容的 Chat Completions API 调用.

认证

authorization string 必填

所有 API 均使用 Bearer Token 鉴权

获取 API Key:

访问 API Key 管理页面 获取 API Key

用法:

将以下 Header 添加到请求中:

Authorization: Bearer YOUR_API_KEY

参数

model string 必填

请求使用的模型 ID

值: gemini-3.7-flash


messages array 必填

表示对话历史的消息对象数组

role string 必填

消息角色

可选值: user, assistant, system, developer

content string | array 必填

文本字符串或 OpenAI 兼容的内容数组


max_tokens integer

生成的最大 token 数量


temperature number

采样温度


top_p number

核采样参数


stream boolean

是否增量流式返回响应


响应格式

error object

错误信息, 仅在状态为 failed 时存在

code string

错误码

message string

详细错误信息


output array

生成结果, 仅在状态为 completed 时存在

content array

生成的资源内容列表

type string

资源类型

值: image|video

url string

处理后的资源 URL

jobId string

远端任务 ID


usage object

使用统计, 仅在状态为 completed 时存在

prompt_tokens integer

请求输入(prompt)中的 token 数量

completion_tokens integer

模型生成结果(completion)中的 token 数量

total_tokens integer

本次请求使用的 token 总数,即 prompt_tokenscompletion_tokens 之和


metadata object

元数据信息