Qwen models
Run Qwen’s models on Modal for agentic coding, reasoning, image understanding, and text embeddings. Use them through Model APIs with per-token billing, or deploy them on Dedicated Endpoints with compute-based billing.
Which Qwen models can you run on Modal?
Qwen Coming soon
Qwen4-Max
Qwen’s multimodal flagship for coding and long-running professional tasks has a 2.4T-parameter backbone, 71B active parameters per token, and a 1M-token context window.
Text VisionQwen
Qwen3.8-Max
Qwen’s first open-weight Max-class model: a text-only 2.4T MoE with 95B active parameters and a one-million-token context, built for coding and long-horizon agentic work.
TextQwen
Qwen3.8 27B
Qwen’s compact dense Qwen3.8 model: 27B parameters with switchable thinking and a 262,144-token context, built for coding and agentic work.
TextQwen
Qwen3.8 Flash Next FP8
Qwen’s open preview of the Qwen4 architecture: a multimodal 125B MoE with 6B active parameters, Qwen Sparse Attention, and 51B of n-gram embeddings.
Text VisionQwen
Qwen3.8 2.4T A95B NVFP4
Modal’s NVFP4 quantization of Qwen3.8-2.4T-A95B, Qwen’s open Max-class model: a text-only 2.4T MoE with 95B active parameters, a one-million-token context, and always-on reasoning.
TextQwen
Qwen3.6 35B A3B
Qwen’s 35B mixture-of-experts vision-language model for agentic coding. It has a 256K-token context window and activates 3B parameters per token.
Text Vision
| Model | Architecture | Context | Modalities | Input / Output |
|---|---|---|---|---|
| Qwen4-Max | 2.4T MoE · 71B active | 1M | Text · Image | Coming soon |
| Qwen3.8-Max | 2.4T MoE | 1M | Text | $2.00 / $6.00 |
| Qwen3.8 27B | 27B dense | 256K | Text | Dedicated only |
| Qwen3.8 Flash Next FP8 | 125B MoE · 6B active | 256K | Text · Image | Dedicated only |
| Qwen3.8 2.4T A95B NVFP4 | 2.4T MoE · 95B active | 1M | Text | Dedicated only |
| Qwen3.6 35B A3B | 35B MoE · 3B active | 256K | Text · Image | Dedicated only |
| Qwen3.6 35B A3B FP8 | 35B MoE · 3B active | 256K | Text · Image | Dedicated only |
| Qwen3.6 27B | 27B dense | 256K | Text · Image | Dedicated only |
| Qwen3.6 27B FP8 | 27B dense | 256K | Text · Image | Dedicated only |
| Qwen3.5 9B | 9B dense | 256K | Text · Image | Dedicated only |
| Qwen3.5 4B | 4B dense | 256K | Text · Image | Dedicated only |
| Qwen3.5 2B | 2B dense | 256K | Text · Image | Dedicated only |
| Qwen3.5 0.8B | 0.8B dense | 256K | Text · Image | Dedicated only |
| Qwen3.5 397B A17B FP8 | 397B MoE · 17B active | 256K | Text · Image | Dedicated only |
| Qwen3.5 122B A10B FP8 | 122B MoE · 10B active | 256K | Text · Image | Dedicated only |
| Qwen3.5 35B A3B FP8 | 35B MoE · 3B active | 256K | Text · Image | Dedicated only |
| Qwen3.5 27B FP8 | 27B dense | 256K | Text · Image | Dedicated only |
| Qwen3 Embedding 8B | 8B dense | 40K | Text | Dedicated only |
| Qwen3 Embedding 0.6B | 0.6B dense | 32K | Text | Dedicated only |
| Qwen3.8-Max VL | 2.4T parameters | 1M | Text · Image | $2.00 / $6.00 |
All prices per million tokens. Dedicated Endpoint compute is billed by the second. See compute pricing.
Frequently asked questions about Qwen models on Modal
-
Qwen3.8-Max is Qwen’s first open-weight Max-class model: a text-only 2.4-trillion-parameter Mixture-of-Experts with 95B active parameters per token and a one-million-token context window, built for coding and long-horizon agentic work. Its weights are also available as Modal’s NVFP4 quantization. Qwen3.8-Max VL is the vision-language version of Qwen3.8-Max, a reasoning model for text and image input with tool calling, structured outputs, and a one-million-token context window. Qwen3.8 Flash Next is Qwen’s open-weight preview of the Qwen4 architecture: a Mixture-of-Experts with a 125B main model, 6B active parameters per token, text and image input, and a 262,144-token context window. Qwen3.8 27B brings the Qwen3.8 generation to a compact dense model for coding and agentic work, with switchable thinking and a 262,144-token context window. Qwen3.6 27B, a dense model, and Qwen3.6 35B A3B, a Mixture-of-Experts with 3B active parameters per token, are earlier vision-language models for agentic coding, and both also come as lower-memory FP8 checkpoints (Qwen3.6 27B FP8 and Qwen3.6 35B A3B FP8). Qwen3.5 397B A17B is the flagship of the earlier Qwen3.5 vision-language generation, with Qwen3.5 122B A10B, Qwen3.5 35B A3B, and Qwen3.5 27B as midsize options for reasoning, coding, and tool use with text and image input. Qwen3.5 9B, Qwen3.5 4B, Qwen3.5 2B, and Qwen3.5 0.8B are small dense Qwen3.5 vision-language models with a 262,144-token context window and support for 201 languages and dialects. Qwen3 Embedding 8B and Qwen3 Embedding 0.6B are text embedding models for retrieval, classification, and clustering in over 100 languages, with the 8B model producing vectors of up to 4,096 dimensions and the 0.6B model as the lightest option.
-
You can run Qwen models on Modal through serverless Model APIs, which bill per token with no infrastructure to manage, or on Dedicated Endpoints, which give you your own autoscaling deployment for dedicated inference. Both serve an OpenAI-compatible API, so you can use the OpenAI SDK or any compatible client with the URL, model name, and credentials from your Modal dashboard. See the Model APIs guide and the Dedicated Endpoints guide.
-
Model APIs run Qwen on Modal-managed shared capacity: you pay per input, cached input, and output token, and there is nothing to scale or keep warm. Dedicated Endpoints run Qwen on GPUs reserved for your workload, billed by the GPU second, with control over minimum, maximum, and buffer containers, and they scale to zero when idle. See Modal pricing.
-
Yes. Modal is supported natively in coding harnesses like Claude Code, Codex, OpenCode, Omp, and Hermes Agent. You can use Qwen3.8-Max, Qwen3.8-Max VL, or any other model supported in Model APIs. See the setup steps for each agent.
-
No. With Model APIs, Modal runs and autoscales the model, and you only send requests. With Dedicated Endpoints, Modal chooses the GPUs and serving configuration, starts containers when requests arrive, and scales down to zero when the endpoint is idle. You only set capacity limits if you want them.
Latest updates

How Abundant designed efficient rollout architecture with Modal Sandboxes
Abundant builds RL environments that run on Modal Sandboxes, powering training for frontier labs.

Building new research tools for Maya epigraphy on Modal

