APIMart
Back to all models

Qwen3.7-Max API

AlibabaModel ID qwen3.7-maxText model

Use Qwen3.7-Max to find the bug a code diff introduces, check a contract clause against the terms you agreed, or plan a database migration step by step.

Max input
991,808 tokens
Max output
131,072 tokens
Input → output
Text → Text
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Qwen3.7-Max API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Qwen3.7-Max.

Try Qwen3.7-Max with your own material

Reviewing code changes

Send Qwen3.7-Max the diff and the surrounding functions, and ask which change can break existing behaviour and why. Write a test that reproduces each finding before you change the code.

Example: Which change in this diff breaks checkout?

Material

cart.ts (diff)
- if (qty <= 0) return removeItem(id); + if (qty < 0) return removeItem(id);
checkout.ts
Order total is the sum of price × qty for every line in the cart.

PromptReview the diff, name the change that can break existing behaviour, and explain how it fails.

Sample answer · written by hand to show the reasoning

The guard changed from qty <= 0 to qty < 0, so setting a quantity to 0 no longer removes the line. The item stays in the cart with qty 0: it adds nothing to the total but still shows up at checkout and may be sent to fulfilment. Restore <= 0, or remove zero-quantity lines before checkout, and add a test that sets qty to 0.

About the Qwen3.7-Max API

  • The largest Qwen3.7 model

    Alibaba describes Qwen3.7-Max as the largest and most capable model in the Qwen3.7 series, strongest at programming and at office and productivity tasks.

  • 1M context, 131K output

    The context window is 1,000,000 tokens and the maximum output 131,072 tokens, with a chain of thought of up to 262,144 tokens. Input and output are text only.

  • Thinking on by default, off when you need speed

    Qwen3.7-Max thinks before answering unless you set enable_thinking to false. Keep it on for reviews and plans, and turn it off for short, well-defined requests.

  • Qwen3.7-Max API key and access

    You don’t need a separate Qwen3.7-Max API key: one APIMart key works for every model. The Qwen 3.7 Max API uses an OpenAI Chat Completions-compatible endpoint with the model ID qwen3.7-max; Qwen3.7-Max API pricing is in the table on this page.

How to call the Qwen3.7-Max API

To call Qwen3.7-Max, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3.7-max",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Qwen3.7-Max access details

Model IDqwen3.7-max
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Qwen3.7-Max API request parameters

Qwen3.7-Max uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use qwen3.7-max for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Qwen3.7-Max API pricing

The Qwen3.7-Max API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input13.7136Credits~$1.371413.0279Credits~$1.302812.3422Credits~$1.234217.142Credits~$1.714220%
Cached input2.7427Credits~$0.27432.6056Credits~$0.26062.4684Credits~$0.24683.4284Credits~$0.342820%
Output41.1408Credits~$4.114139.0838Credits~$3.908437.0267Credits~$3.702751.426Credits~$5.142620%

Prices are for reference only. View full pricing

Why call Qwen3.7-Max API through APIMart

  • 20% below official pricing

    Qwen3.7-Max API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Alibaba's official prices, and cached input costs just $0.2743 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Qwen3.7-Max, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Qwen3.7-Max with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Alibaba model should you choose?

Base prices per 1M tokens (USD). Your Qwen3.7-Max API key works for every model in the table; just change the model parameter.

Differences between Alibaba models
ComparisonQwen3.7-Max CurrentQwen-TurboQwen3.6-FlashQwen3.6-PlusQwen3.7-FlashQwen3.7-PlusQwen3.8-27BQwen3.8-FlashQwen3.8-2.4T-A95BQwen3.8-Max-0902Qwen3.8-MaxQwen4-Max
Best forLargest Qwen3.7 model, Coding and office work, Text onlyQwen3 series Turbo, Text in, text out, High-volume short-text tasksAgentic coding, Object detection, Math & code reasoningAgentic coding, Front-end from screenshots, OCR and localizationImage & video input, Multimodal agents, High-volume tasksScreenshots and video, Code from designs, Balanced costOpen weights, Coding & office work, Image & video inputHigh-volume calls, Coding & agents, Image & video inputOpen-weight flagship, Deep reasoning, Text onlyUpgraded Qwen3.8-Max snapshot, Coding and multi-tool agents, Charts and documentsFlagship model, Images, video & PDF, Web searchComplex coding, Agent tasks, Image & video input
Input typesTextTextText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoTextText, Image, VideoText, Image, VideoText, Image, Video
Max input991,808 tokens129,024 tokens991,808 tokens991,808 tokens983,616 tokens991,808 tokens983,616 tokens983,616 tokens983,616 tokens983,616 tokens983,616 tokens991,808 tokens
Max output131,072 tokens16,384 tokens65,536 tokens65,536 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens
Input price$1.3714$0.24$0.1371$0.2286$0.0229$0.2286$0.3429$0.0914$1.3714$1.3714$1.3714$1.4286
Output price$4.1141$2.4$0.8227$1.3718$0.0914$0.9146$1.3714$0.3086$4.1143$4.1143$4.1143$4.2857

Qwen3.7-Max FAQ

Is the Qwen3.7-Max context window 1,000,000 or 991,808 tokens?

Alibaba Cloud’s documentation lists a context window of 1,000,000 tokens for Qwen3.7-Max, with max input of 991,808 tokens in non-thinking mode and 983,616 in thinking mode, max output of 131,072 tokens in both modes, and a chain of thought of up to 262,144 tokens. The Max input and Max output on this page come from APIMart’s pricing data: input up to 991,808 tokens and output up to 131,072 tokens. In thinking mode, leave room for the reasoning.

Can Qwen3.7-Max read images or video?

No. The model ID qwen3.7-max is equivalent to the snapshot qwen3.7-max-2026-05-20, and Alibaba lists text as its only input. Alibaba’s later snapshot qwen3.7-max-2026-06-08 adds image and video input, but that is a different model ID. For screenshots and video, use Qwen3.7-Plus.

Should I use Qwen3.7-Max or Qwen4-Max?

For new projects, start with Qwen4-Max: Alibaba’s text generation guide recommends it when quality matters most and now lists Qwen3.7-Max among older models. Keep Qwen3.7-Max where your prompts and evaluations are already tuned on it. On APIMart you switch by changing the model parameter, and each page’s pricing table shows the current price.

Should I use Qwen3.7-Max or Qwen3.7-Plus?

Qwen3.7-Plus accepts images and video and has a much lower official price, so it suits most everyday and high-volume work. Use Qwen3.7-Max for text-only tasks where the extra capability is worth the cost, such as hard code reviews and long documents. Both use the same APIMart API key.

Can I turn off thinking on Qwen3.7-Max?

Yes. Alibaba’s deep thinking documentation lists the Qwen3.7 Max series as hybrid thinking models with thinking on by default. Set enable_thinking to false to get a direct answer; with the OpenAI SDK, pass it in extra_body. Turn it off for short, well-defined requests and keep it on for multi-step reasoning.

Does Qwen3.7-Max support function calling and structured output?

Yes. Alibaba’s documentation lists function calling and structured output as supported for Qwen3.7-Max, and its structured output guide lists the Qwen3.7-Max series for both JSON Object and JSON Schema modes. Through APIMart, pass tools with the OpenAI tools parameter.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Qwen3.7-Max in the text category to start exploring.

Which model ID does the Qwen3.7-Max API use?

Set model to qwen3.7-max. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Qwen3.7-Max?

On APIMart, Qwen3.7-Max accepts up to 991,808 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Qwen3.7-Max can output up to 131,072 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Qwen3.7-Max API cost?

The Qwen3.7-Max API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.3714 per million input tokens and $4.1141 per million output tokens. Diamond: $1.2342 per million input tokens and $3.7027 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.