Qwen4 Max is live on Together AI
Captured source
source ↗Qwen4 Max is live on Together AI Webflow Analyze/Optimize tracking bridge -->
Introducing Polymorphic Inference, starting with Together Compiler →
Introducing Together Post-Training: Better models, faster runs, lower costs →
Introducing Together Link: Run open models inside the harness you already use →
The Open Source AI Stack: models, inference, routers, harnesses & tools →
GLM-5.3 vs. GLM 5.3 Flash on DeepSWE →
⚡ On-demand B200s now available on Together GPU Clusters →
All blog posts
Model Library
Published
Qwen4 Max is live on Together AI
Alibaba's flagship Qwen model is 30% off through November 22, 2026. We gave it a bug report and the whole Tornado repository in one request to see what a 1M-token context window is worth, and what it costs.
Authors
Sonny Khan
Table of contents
40+ Models Chosen for Production...40+ Models Chosen for Production...40+ Models Chosen for Production...
Links in this article
Qwen4 Max in the playground Qwen4 Max model page Alibaba's announcement
Summary
Qwen4 Max on Together AI: Alibaba's flagship Qwen model is available on Together Serverless Inference with a 1M-token context window. What we tested: Qwen4 Max took a bug report and all 344 files of the Tornado repository in one request, and its patch passes the maintainers' tests. Sale pricing: Through November 22, 2026, it costs \$1.05 per 1M input tokens, \$0.0525 per 1M cached input tokens and \$3.15 per 1M output tokens. Before you call it: Requests have to stream, and thinking is on by default, with thinking tokens counted as output tokens.
We gave Qwen4 Max a bug report and an entire codebase in one request. The codebase was Tornado, the Python web framework: all 344 files, 652,519 tokens. The model had no tools, and we didn't select relevant files or run a retrieval step first. Seventy-two seconds later it returned a patch, and the patch passes the tests Tornado's maintainers wrote for that bug. The request cost 69 cents. It also found a precedent elsewhere in the repository. The bug report never mentions tornado/iostream.py , but the model pointed to code there that already handles errors the way its patch needed to. Tornado's maintainers cite the same code in their own fix. Qwen4 Max is Alibaba's flagship Qwen model. It's live on Together AI today, and it's 30% off through November 22, 2026. The test Tornado is an open-source Python web framework. Its repository holds about 340 files of code, tests and docs. That fits in Qwen4 Max's context window, and it's far more than anyone would paste into a prompt by hand. We picked a fix the maintainers committed on November 18, 2026, two days after Qwen4 Max was released, and tested against the repository as it was just before that commit. This is one example, chosen to show what a single call can do and what it costs. The bug is in Tornado's websocket code. When a connection closed with messages still unsent, every write_message() call that wasn't awaited logged an error, even though awaiting it is optional. We sent every text file in that checkout as one prompt, with a bug report that describes only the symptom: write_message logs "Task exception was never retrieved" when the connection closes
When a websocket connection closes while messages are still unsent (for example, the client sends its messages and a FIN, or resets the connection, without reading the replies), every write_message() call whose result was not awaited logs "Task exception was never retrieved" at ERROR level.
Awaiting the Future returned by write_message is optional, so an unawaited call should not log anything. A caller that does await it should still get WebSocketClosedError. We asked for the cause and a patch. This is the request, replayed:
What came back The first token arrived after 54 seconds, and the reply was complete at 72. Qwen4 Max traced the error to WebSocketProtocol13.write_message in tornado/websocket.py . That method wraps each write in a task. When the connection closes, the task fails with an exception that nobody is required to collect, and Python logs that as "Task exception was never retrieved." The model's patch marks the exception as retrieved. Nothing is logged, and a caller who does await the write still gets the error:
- return asyncio.ensure_future(wrapper())
+ task = asyncio.ensure_future(wrapper()) + + # Awaiting the returned Future is optional, so an error nobody looks + # at must not be reported as "Task exception was never retrieved". + # Retrieving it here leaves it in place for callers that do await. + def _mark_retrieved(t: "asyncio.Task[None]") -> None: + if not t.cancelled(): + t.exception() + + task.add_done_callback(_mark_retrieved) + return task The precedent is what makes the patch read like it belongs in the project. The model's explanation says the fix should do what BaseIOStream.write already does for its own futures. That method is in tornado/iostream.py , one layer below the websocket code, and it solves the same problem the same way. The maintainers' commit makes the same comparison.
Nobody picked those files for it. All 344 went in, and the model found the two that mattered. How we checked it Tornado's maintainers added two regression tests with their fix: one for a write that isn't awaited, and one for a write that is. On the code before the fix, the first one fails. With the model's patch applied, both pass. We then ran Tornado's full suite, 1,673 tests, with the patch in place, and none failed. What it cost At the sale price, the request works out to about 69 cents, nearly all of it for the 652,519 input tokens. At list price it would be 98 cents. Sending the same repository again costs far less. Together AI caches prompt input automatically, and cached input is \$0.0525 per million tokens during the sale. When we repeated a request of about 630,000 tokens, nearly all of it came back cached. The first token arrived in 8 seconds instead of 54, and the input cost about 3 cents instead of 66. About Qwen4 Max Alibaba released Qwen4 Max on November 16, 2026, and describes it as the most capable model in the Qwen family to date. It positions the model for long agent work, including coding across large repositories, which is the kind of task we tested. Qwen4 Max is a sparse mixture-of-experts model with 2.4 trillion parameters, of which 71 billion are active for each token. On Work360, Alibaba's...
Excerpt shown — open the source for the full document.
Notability
notability 9.0/10Flagship Qwen4 Max model launch on Together AI.