Skip to main content
POST
Chat Completion

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

Exact public AnyFast model ID.

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

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

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

This preview supports thinking mode only.

stream
boolean
default:false
stream_options
object

Options used when stream is true.

tools
object[]
tool_choice
enum<string>

Thinking mode rejects required and forced function choices.

Available options:
none,
auto

Response

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

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

Unix timestamp.

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