跳转到主要内容
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"
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
默认值:true

Controls reasoning mode. Pass through extra_body in the OpenAI SDK.

stream
boolean
默认值:false
stream_options
object

Options used when stream is true.

response_format
object

JSON object format was verified through AnyFast with thinking disabled.

tools
object[]
tool_choice
enum<string>

Controls whether a function call is required.

可用选项:
none,
auto,
required

响应

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"
choices
object[]
必填
usage
object
必填