Skip to main content
POST
对话补全

接口描述

该接口用于创建聊天补全任务,支持文本和图片输入(多模态)。

鉴权

需要使用 API Key 进行鉴权。在 Header 中添加 Authorization: Bearer <your-api-key>

请求参数

Messages 参数说明

messages 数组中的每个元素包含:

Style 参数说明

  • openai:返回 OpenAI Chat Completions 风格结果(默认)
  • claude:返回 Claude Messages 风格结果
  • gemini:返回 Gemini 风格结果

子页面导航

OpenAI 风格

使用 style: openai,返回 OpenAI Chat Completions 风格结果。

Claude 风格

使用 style: claude,返回 Claude Messages 风格结果。

Gemini 风格

使用 style: gemini,返回 Gemini 风格结果。

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

模型名称

messages
object[]
required
style
enum<string>
default:openai

接口风格,支持 OpenAI、Claude、Gemini

Available options:
openai,
claude,
gemini
stream
boolean

是否流式

Response

200

成功响应 (流式)