Skip to main content
Qwen3.7-Max is Alibaba’s flagship Qwen3.7 text model, available through AnyFast’s OpenAI-compatible Chat Completions API at POST /v1/chat/completions. Use the model ID qwen3.7-max for text generation, reasoning, function calling, and structured output.

Key capabilities

  • 1M-token context window — The upstream specification allows 1,000,000 tokens.
  • 131,072-token maximum output — Upstream limit; available output also depends on context.
  • Text-only input — Accept text messages.
  • Text output — Return text responses.
  • Thinking mode — Enabled by default and can be disabled.

Quick example

cURL
Python

Input modality

This model accepts text input and returns text. Do not send image_url or video_url parts to this model.

Thinking and structured output

Thinking is enabled by default. Set enable_thinking to false to omit the reasoning step. In the OpenAI SDK, pass this provider-specific field through extra_body. A non-thinking json_object request succeeded through AnyFast for qwen3.7-max.
Python

Function calling

Define functions in tools. When the model returns finish_reason: "tool_calls" and message.tool_calls, execute the function in your application and continue the conversation. This request shape succeeded through AnyFast. Use tool_choice: "required" to require a tool call.
Python

Streaming

Set stream=True to receive SSE chunks. The verified final usage-only chunk has usage and an empty choices array.
Python

Parameters

API Reference

Request and response fields for Qwen3.7-Max.

Official references