Newer version: For the updated frontier release, see our Qwen3.8-Max guide.
OpenRouter endpoint rechecked October 13, 2026: OpenRouter lists qwen/qwen3.7-max at $1.475 input and $4.425 output per million tokens. This is a text-input OpenRouter model with a 1-million-token context and up to 131,072 output tokens. It is proprietary and not downloadable for Ollama, LM Studio or MLX. Direct Alibaba Model Studio billing has different regional prices and data scopes. OpenRouter · Alibaba.
What is Qwen3.7-Max?
Qwen3.7-Max is the flagship model of Alibaba’s Qwen3.7 series. Alibaba positions it as a proprietary model for the “agent era”: coding agents, office workflows, MCP integrations, multi-agent orchestration and long autonomous execution.
As of October 13, 2026, OpenRouter still lists 1M context and 131,072 maximum output tokens. Upstream provider routing may change separately from the model slug. Since August 3, 2026, Alibaba has also shipped Qwen3.8 Max as the newer Qwen flagship. If you want the newest model, compare its specification sheet as well.
For users, that means Qwen3.7-Max is not just another chat model. It is designed for tasks where the model needs to plan, use tools, write code, work with files and continue toward a goal over many steps.
Typical use cases include:
- coding agents and repository work
- frontend prototyping
- multi-file refactoring
- office automation
- spreadsheets, documents and reports
- tool use via MCP
- long agent runs
- multi-step productivity workflows
Snapshot distinction: Alibaba’s direct qwen3.7-max alias corresponds to the May 20 text-only snapshot; a separate qwen3.7-max-2026-06-08 snapshot supports image and video input. OpenRouter lists qwen/qwen3.7-max as text-only. Avoid extending that property to all Qwen3.7-Max snapshots. Alibaba model card.
Qwen3.7-Max specifications
| Property | Qwen3.7-Max on OpenRouter |
|---|---|
| OpenRouter model ID | qwen/qwen3.7-max |
| Provider | Qwen / Alibaba |
| Model type | proprietary cloud/API model |
| Input | text |
| Output | text |
| Context window | 1M tokens |
| Input price | $1.475 / 1M tokens |
| Output price | $4.425 / 1M tokens |
| Cache write | $1.84375 / 1M tokens according to OpenRouter API |
| Cache read | $0.295 / 1M tokens according to OpenRouter endpoint |
| OpenRouter release | May 21, 2026 |
| Max output | 131,072 tokens according to OpenRouter endpoint data |
| Max prompt | 983,616 tokens according to OpenRouter endpoint data |
| OpenRouter provider | Alibaba |
| Supported parameters | including tools, tool_choice, structured_outputs, reasoning, include_reasoning |
| Local use with Ollama | No |
| Local use with LM Studio | No |
| Local use with MLX | No |
| Best use case | agents, coding, office workflows, long tasks |
OpenRouter describes Qwen3.7-Max as a text-to-text model for agent-centric workloads, especially coding, office and productivity tasks, and long-horizon autonomous execution. The OpenRouter API data also lists 1M context, 131,072 maximum output tokens and Alibaba as the current provider.
Data graphic recreated from the OpenRouter model page and Qwen3.7-Max endpoint data. The graphic shows API-listed prices and limits, not measured latency or quality. Endpoint pricing rechecked October 13, 2026.
Does Qwen3.7-Max run locally on Mac?
No. This is the most important point for AI on Mac.
Qwen3.7-Max is a proprietary cloud/API model. You can use it through OpenRouter; Alibaba also documents Model Studio endpoints for Qwen3.7-Max, with availability depending on account, region and product access. But you cannot simply run it locally with:
ollama run qwen3.7-max
That separates it clearly from local Qwen models such as qwen3, qwen3.6 or other open-weight Qwen variants available through local runtimes. Those models have their own sizes, context limits and memory requirements. They run depending on your Mac, unified memory, quantization and runtime.
For Mac users, the practical interpretation is:
Qwen3.7-Max fits cloud agents. Local Qwen models fit private offline workflows.
Why Qwen3.7-Max still matters for Mac users
A Mac does not accelerate Qwen3.7-Max directly, because inference does not run on your Apple Silicon chip. Still, it can be very useful if you develop, write, analyze or automate workflows on macOS.
You can use Qwen3.7-Max on Mac for:
- reviewing large codebases
- planning refactors
- debugging complex issues
- agent runs with OpenRouter-compatible tools
- document and office workflows
- structured extraction from long text
- multi-step planning
- web app prototyping
- comparing cloud models with local Qwen, Gemma or Llama models
The most robust workflow is hybrid: local models for private files and offline work, Qwen3.7-Max for large context, tool use and tasks where cloud processing is acceptable.
OpenRouter setup on Mac
OpenRouter provides an OpenAI-compatible Chat Completions API. That means many OpenAI-compatible clients can be used with a different base URL and the model name qwen/qwen3.7-max.
Python example
Python 3 and the third-party requests package are required. Use a dedicated virtual environment on macOS rather than installing packages into the system interpreter:
python3 -m venv .venv-openrouter
source .venv-openrouter/bin/activate
python -m pip install requests
Set OPENROUTER_API_KEY only in a local shell environment or secret manager. Running the sample makes a billable API request. The optional HTTP-Referer and app-title headers have deliberately been omitted: copying an example should not attribute your requests to ai-on-mac.com.
import json
import os
import requests
response = requests.post(
url="https://openrouter.ai/api/v1/chat/completions",
headers={
"Authorization": f"Bearer {os.environ['OPENROUTER_API_KEY']}",
"Content-Type": "application/json",
},
data=json.dumps({
"model": "qwen/qwen3.7-max",
"messages": [
{
"role": "system",
"content": "You are a precise coding and Mac AI assistant."
},
{
"role": "user",
"content": "Explain how I should split a private local AI workflow and a cloud agent workflow on macOS."
}
],
"max_tokens": 1200
}),
timeout=90,
)
response.raise_for_status() # Report HTTP 4xx/429/5xx before reading result.
print(response.json()["choices"][0]["message"]["content"])
JavaScript example
This uses Node.js 18+ in a terminal or server runtime, where fetch and process.env exist. Do not paste it into a static website’s browser JavaScript; the API key would be exposed.
const response = await fetch("https://openrouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.OPENROUTER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "qwen/qwen3.7-max",
messages: [
{
role: "system",
content: "You are a precise coding and Mac AI assistant."
},
{
role: "user",
content: "Create a safe hybrid workflow using local Ollama models and Qwen3.7-Max via OpenRouter."
}
],
max_tokens: 1200
})
});
if (!response.ok) throw new Error(`OpenRouter HTTP ${response.status}: ${await response.text()}`);
const data = await response.json();
console.log(data.choices[0].message.content);
API keys do not belong in frontend code, public GitHub repositories or static Astro pages. OpenRouter can route requests to a different upstream provider; its model slug alone does not promise US-scope processing, an EU region or specific subcontractors. Use a backend, serverless function, edge function or secure secret management.
United States: Virginia Global versus Virginia US-scope
Cache pricing requires the correct scope: Alibaba lists Virginia/Frankfurt Global at $1.65/M uncached input, $0.33/M implicit-cache input, $2.063/M explicit-cache creation, $0.165/M explicit-cache reads, and $4.951/M output. Virginia US scope is $2.50 / $0.50 / $3.125 / $0.25 / $7.50, respectively. A cache read is not free, and the cache-write tariff is not the input tariff.
Model snapshots are not interchangeable: The generic Alibaba qwen3.7-max currently maps to the May 20, 2026 text-only version. qwen3.7-max-2026-06-08 supports image/video input. OpenRouter lists qwen/qwen3.7-max as text-only; selecting that slug does not guarantee vision. The 1M context window is not a 1M-prompt-token allowance plus 131,072 output tokens: Alibaba lists 991,808 max input tokens in standard mode, 983,616 in thinking mode. Provider limits may differ.
OpenRouter billing is separate from Alibaba Model Studio billing. Alibaba’s October 11 model card lists these regular USD API rates per 1 million tokens, before applicable tax:
| Access | Input | Output | Region and scope |
|---|---|---|---|
| OpenRouter | $1.475 | $4.425 | Router pricing, region not guaranteed |
| Alibaba Model Studio | $1.65 | $4.951 | Virginia · Global |
| Alibaba Model Studio | $2.50 | $7.50 | Virginia · US |
| Alibaba Model Studio | $1.65 | $4.951 | Frankfurt · Global |
For U.S. production, Virginia Global does not mean Virginia US-scope. Alibaba documents the separate US-scope at a higher rate, with web search unsupported there. Check the account’s selected scope, processing and retention terms, rather than inferring them from a Virginia endpoint or English-language prompts. Applicable U.S. sales taxes or payment charges may be added by the billing provider. OpenRouter may route requests to third-party upstream providers unless they are explicitly restricted. Alibaba Model Studio.
OpenRouter or Alibaba Model Studio?
OpenRouter makes sense if you want to test several models through one API, need routing/provider selection, or already use OpenRouter credits. Alibaba Model Studio is closer to the original provider and documents Qwen-specific parameters such as enable_thinking, streaming and reasoning_content. Alibaba’s Qwen3.7 post also mentions preserve_thinking for agentic multi-turn tasks.
The simplest entry point is OpenRouter, because the model ID, pricing, context length and provider data are publicly available. If you go directly through Alibaba, check region, account access, current model list and billing in Model Studio first.
Pricing: watch token volume
The OpenRouter pricing card and endpoint API list these USD rates per million tokens as rechecked on October 13, 2026. Do not apply them to a direct Alibaba Model Studio account:
| Cost type | Price |
|---|---|
| Input | $1.475 / 1M tokens |
| Output | $4.425 / 1M tokens |
| Input cache write | $1.84375 / 1M tokens |
| Input cache read | $0.295 / 1M tokens |
| Context | 1M tokens |
| Max output | 131,072 tokens |
| Max prompt | 983,616 tokens |
That is more expensive than running a local model on a Mac you already own. But local inference is not truly free either: you pay with hardware, electricity, storage, setup time, waiting time and often lower model quality.
No verified special five-minute cache-read price: The public model endpoint API reports one input_cache_read tariff, $0.295/M tokens. The previous guide also listed $0.1475/M as a separate five-minute cache-read tier; that figure has no support in this endpoint’s listed prices and has been removed. A five-minute prompt-cache lifetime in OpenRouter’s caching documentation is not a second cache-read tariff. Likewise, OpenRouter’s opt-in response caching is different from prompt-token caching. Check the actual usage fields and invoice before projecting discounts.
Comparable list-price example without caching: 200,000 input tokens + 20,000 output tokens cost 0.2 × $1.475 + 0.02 × $4.425 = $0.3835 through OpenRouter, $0.42902 through Alibaba Global, and $0.65 through Alibaba Virginia US scope. Real invoices may differ due to cache hits, router selection, retries, promotions or taxes. A long agent run with several iterations can therefore burn through multiple dollars quickly. For short chats, Qwen3.7-Max is usually overkill; for long agent runs, difficult coding tasks or office automation, the price can make more sense.
1M context: large, but not automatically better
The 1M token context window is one of the clearest differences from local Mac models. Local models on Apple Silicon can quickly become limited by unified memory, KV cache, runtime limits and speed when context gets long.
Qwen3.7-Max runs in the cloud and can handle much larger input packages. But you still should not blindly paste huge files into every prompt. Long contexts increase cost, latency and the chance of irrelevant information confusing the model.
A better strategy:
- send only relevant files
- summarize code first
- split large repositories into modules
- place the actual task clearly at the end
- enforce strict output formats
- cache repeated context where possible
- keep sensitive files local
Benchmarks: promising, but read carefully
Alibaba presents Qwen3.7-Max with many agent, coding and reasoning benchmark results. They are useful, but benchmark results depend heavily on the agent scaffold, tools, time limits, context length, prompting, temperature, evaluation logic and internal test setup.
Data graphic recreated from Alibaba’s Qwen3.7: The Agent Frontier. Checked August 14, 2026.
The most useful official numbers for Mac users are not one single leaderboard score, but the pattern across work types: Alibaba reports strong coding-agent scores such as SWE-Verified 80.4, Terminal-Bench 2.0 69.7, SWE-Pro 60.6 and SWE-Multilingual 78.3; office automation appears with SpreadsheetBench-v1 87; general agent scores include MCP-Atlas 76.4, MCP-Mark 60.8 and SkillsBench 59.2; reasoning scores include GPQA Diamond 92.4 and HMMT 2026 Feb 97.1.
Independent evidence check: OpenRouter also aggregates Artificial Analysis data. It reports 92.3% GPQA Diamond and 74.5% on Terminal-Bench 2.1. Alibaba’s older 69.7 score is for Terminal-Bench 2.0, not the same benchmark version. Differences in tool use, agent scaffold and scoring protocols also matter. Do not compare these as if they shared an evaluation setup. OpenRouter benchmarks.
The fair statement is:
Qwen3.7-Max scores well in Alibaba’s agentic coding and long-horizon benchmarks, but benchmark values should be read as vendor or benchmark-context results, not as a guarantee for every real-world project.
Qwen3.7-Max vs local AI on Mac
| Criterion | Qwen3.7-Max | Local AI on Mac |
|---|---|---|
| Runs offline | No | Yes, if the model is installed locally |
| Privacy | cloud processing | can be fully local |
| Context | 1M tokens | strongly depends on RAM and runtime |
| Cost | per token | hardware, power and time |
| Speed | depends on cloud/provider | depends on Mac, model and quantization |
| Model choice | Qwen3.7-Max via API | many open-weight models |
| Coding agents | clearly positioned for this by the provider | possible, but hardware-dependent |
| Private files | only if cloud is acceptable | better locally |
| Setup | API key required | Ollama, LM Studio or MLX required |
| Best scenario | agents, coding, office, long tasks | privacy, offline work, reproducible tests |
Do not treat Qwen3.7-Max as a replacement for local AI. Treat it as an additional cloud tool.
Practical Mac and provider decision
| Workload | Start with | Check before spending |
|---|---|---|
| Private or offline files | A local model fitting unified memory | No sensitive content leaves the device |
| Routine coding on 16–64GB Macs | A compact local GGUF/MLX model | Whether it passes existing tests |
| Tool-heavy coding on public repositories | qwen/qwen3.7-max via OpenRouter | Retry count, correctness and cost per successful task |
| Contractually restricted U.S. processing | Alibaba account with explicit US scope or an approved provider | Actual deployment scope, retention and contract |
For a fair trial, use five real, non-sensitive agent tasks with objective acceptance tests. Compare a local baseline and the selected remote endpoint, using the same prompts and tool schemas. Record passed tests, failed tool calls, billed cache/input/output tokens and wall time. This is a suggested evaluation plan, not a benchmark performed on our local lab rigs.
Common mistakes
Mistake 1: Searching for Qwen3.7-Max in Ollama
Qwen3.7-Max is not a local Ollama model. Local Qwen models exist, but they are not the same as Qwen3.7-Max.
Mistake 2: Confusing qwen3.7-max and qwen/qwen3.7-max
On OpenRouter, the model ID is:
qwen/qwen3.7-max
In Alibaba or Qwen contexts, the model name may appear without the provider prefix. In OpenRouter code, use the full OpenRouter slug.
Mistake 3: Using 1M context blindly
1M context is large, but expensive and not always useful. A clean context strategy is usually better than dumping everything into one prompt.
Mistake 4: Treating cloud agents as local AI
Qwen3.7-Max can be a useful agent backbone. That does not mean your data stays local.
Mistake 5: Reading benchmarks as everyday guarantees
Agent benchmarks depend strongly on setup. Treat them as signals, not as promises.
Sources and status
Price lists and primary model documentation checked October 10, 2026. No paid API calls or independent hardware benchmarks were performed for this revision. Model names, prices, limits, provider availability and OpenRouter routing can change. Model ID, pricing, context window, release date, modalities, supported parameters and maximum output tokens are based on the current OpenRouter model and endpoint data. The agent, coding, office workflow and benchmark framing is based on Alibaba’s Qwen3.7 announcement. The local-model distinction is based on Ollama’s Qwen3 and Qwen3.6 library pages.
Frequently Asked Questions
Is Qwen3.7-Max open source?
No. Qwen3.7-Max is a proprietary model, not an open-weight local model.
Can I run Qwen3.7-Max with Ollama?
No. Qwen3.7-Max does not run locally in Ollama. Use other local Qwen models if you want offline inference.
What does Qwen3.7-Max cost on OpenRouter?
OpenRouter lists $1.475 input, $4.425 output, $0.295 cache reads and $1.84375 cache writes per million tokens as checked October 13, 2026. Alibaba Model Studio has different regional and scope rates.
Which model ID should I use on OpenRouter?
Use qwen/qwen3.7-max.
Is Qwen3.7-Max still the newest Qwen flagship?
No. Since August 3, 2026, Alibaba has shipped Qwen3.8 Max as the newer Qwen flagship. As of October 13, 2026, OpenRouter still lists the Qwen3.7-Max endpoint.
What context window does Qwen3.7-Max have on OpenRouter?
1M tokens. The OpenRouter endpoint data checked on October 13, 2026 lists up to 131,072 output tokens and a maximum prompt of 983,616 tokens.