---
title: "Qwen4 Max is live on Together AI"
description: "Together AI launched Qwen4 Max, Alibaba’s flagship 2.4-trillion-parameter sparse mixture-of-experts model, on its Serverless Inference platform with a 1M-token context window. The post demonstrates a single-request test: the model received a bug report and all 344 files of the Tornado repository (652,519 tokens) without retrieval or tool use. In 72 seconds, it returned a patch that passes the maintainers’ regression tests and the full 1,673-test suite. The model independently identified a precedent in tornado/iostream.py that the maintainers also cited in their own fix. Sale pricing through November 22, 2026, is $1.05 per 1M input tokens, $0.0525 per 1M cached input tokens, and $3.15 per 1M output tokens."
---

# Qwen4 Max is live on Together AI

[Together AI](https://yomu.fyi/company/together-ai) · Nov 21, 2026

**Type:** Announcement

## Summary

Together AI launched Qwen4 Max, Alibaba’s flagship 2.4-trillion-parameter sparse mixture-of-experts model, on its Serverless Inference platform with a 1M-token context window. The post demonstrates a single-request test: the model received a bug report and all 344 files of the Tornado repository (652,519 tokens) without retrieval or tool use. In 72 seconds, it returned a patch that passes the maintainers’ regression tests and the full 1,673-test suite. The model independently identified a precedent in tornado/iostream.py that the maintainers also cited in their own fix. Sale pricing through November 22, 2026, is $1.05 per 1M input tokens, $0.0525 per 1M cached input tokens, and $3.15 per 1M output tokens.

## Context

Alibaba released Qwen4 Max on November 16, 2026, as a 2.4-trillion-parameter sparse mixture-of-experts model with 71 billion active parameters per token. Together AI made it available on its platform and offered a 30% discount through November 22, 2026. The post tests the model’s ability to fix a real bug in the Tornado web framework by ingesting the entire repository in a single request.

## Approach / What changed

Together AI deployed Qwen4 Max on its Serverless Inference platform with a 1M-token context window. The post demonstrates a single-request workflow: send all 344 files of the Tornado repository (652,519 tokens) plus a bug report as one prompt, without retrieval or tool use, and receive a patch that passes the project’s tests.

## Takeaways

- Qwen4 Max can ingest an entire codebase of 344 files (652,519 tokens) in one request and produce a working patch without retrieval or tool use.
- The model independently identified a relevant precedent in tornado/iostream.py that the project’s maintainers also referenced in their own fix.
- Cached prompt input reduces first-token latency from 54 seconds to 8 seconds and cuts input cost from about 66 cents to about 3 cents for a repeat request of similar size.

## FAQ

### How much does a 1M-token request cost on Qwen4 Max?

The request cost 69 cents at the sale price, nearly all for the 652,519 input tokens. At list price it would be 98 cents. Cached input costs $0.0525 per million tokens, so a repeat request of about 630,000 tokens cost about 3 cents for input and returned the first token in 8 seconds instead of 54.

### What are the usage requirements for Qwen4 Max on Together AI?

Requests must stream, thinking is on by default, and thinking tokens are counted as output tokens. The model string is Qwen/Qwen4-Max on Together Serverless Inference. The post provides a Python script using the Together SDK that sends every text file git tracks plus a bug report in one request.

### How did Qwen4 Max fix the Tornado websocket bug?

The model traced the error to WebSocketProtocol13.write\_message in tornado/websocket.py, where each write is wrapped in a task that fails on close. Its patch marks the exception as retrieved so Python does not log it, while still raising WebSocketClosedError for callers that await. The model also cited a precedent in tornado/iostream.py that the maintainers referenced in their own fix.

**Tags:** [AI](https://yomu.fyi/topic/ai), [LLMs](https://yomu.fyi/topic/llm), [Mixture of Experts](https://yomu.fyi/topic/mixture-of-experts), [Qwen](https://yomu.fyi/topic/qwen), [Together AI](https://yomu.fyi/topic/together-ai)

- Source: [Together AI](https://www.together.ai/blog/qwen4-max)
- Source URL: https://www.together.ai/blog/qwen4-max
- Ingested by Yomu: 2026-11-21T21:00:16.435Z

[Read original post](https://www.together.ai/blog/qwen4-max)
