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.8-flash"
messages
object[]
required
Minimum array length: 1
max_completion_tokens
integer

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

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

控制思考模式。使用 OpenAI SDK 时通过 extra_body 传递。

stream
boolean
default:false
stream_options
object

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

response_format
object

关闭思考模式后,已通过 AnyFast 国内站验证 JSON 对象输出。

tools
object[]
tool_choice
enum<string>

控制是否必须调用函数。

Available options:
none,
auto,
required

Response

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

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

Unix 时间戳。

model
string
required
Allowed value: "qwen3.8-flash"
choices
object[]
required
usage
object
required