跳转到主要内容
POST
Chat Completion

授权

Authorization
string
header
必填

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

请求体

application/json
model
string
必填

Exact public AnyFast model ID.

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

Upstream maximum output length; actual available output also depends on context.

必填范围: 1 <= x <= 131072
enable_thinking
boolean

This preview supports thinking mode only.

stream
boolean
默认值:false
stream_options
object

Options used when stream is true.

tools
object[]
tool_choice
enum<string>

Thinking mode rejects required and forced function choices.

可用选项:
none,
auto

响应

A complete response, or Server-Sent Events when stream is true.

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

Unix timestamp.

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