Skip to main content
POST
对话补全

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

准确的 AnyFast 公共模型 ID。

Allowed value: "qwen3.7-max-preview"
messages
object[]
required
Minimum array length: 1
max_completion_tokens
integer

上游最大输出长度;实际可用输出长度还受上下文占用影响。

Required range: 1 <= x <= 131072
enable_thinking
boolean

此预览模型仅支持思考模式。

stream
boolean
default:false
stream_options
object

仅在 stream 为 true 时生效的流式选项。

tools
object[]
tool_choice
enum<string>

思考模式下不支持 required 或指定函数的强制调用。

Available options:
none,
auto

Response

请求成功。非流式返回完整响应;流式返回 Server-Sent Events。

id
string
required
object
string
required
Allowed value: "chat.completion"
created
integer
required

Unix 时间戳。

model
string
required
Allowed value: "qwen3.7-max-preview"
choices
object[]
required
usage
object
required