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"
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
default:true

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

stream
boolean
default: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.

Available options:
none,
auto,
required

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