Skip to content

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?

ModelArchitectureContextModalitiesInput / Output
Qwen4-Max2.4T MoE · 71B active1MText · ImageComing soon
Qwen3.8-Max2.4T MoE1MText$2.00 / $6.00
Qwen3.8 27B27B dense256KTextDedicated only
Qwen3.8 Flash Next FP8125B MoE · 6B active256KText · ImageDedicated only
Qwen3.8 2.4T A95B NVFP42.4T MoE · 95B active1MTextDedicated only
Qwen3.6 35B A3B35B MoE · 3B active256KText · ImageDedicated only
Qwen3.6 35B A3B FP835B MoE · 3B active256KText · ImageDedicated only
Qwen3.6 27B27B dense256KText · ImageDedicated only
Qwen3.6 27B FP827B dense256KText · ImageDedicated only
Qwen3.5 9B9B dense256KText · ImageDedicated only
Qwen3.5 4B4B dense256KText · ImageDedicated only
Qwen3.5 2B2B dense256KText · ImageDedicated only
Qwen3.5 0.8B0.8B dense256KText · ImageDedicated only
Qwen3.5 397B A17B FP8397B MoE · 17B active256KText · ImageDedicated only
Qwen3.5 122B A10B FP8122B MoE · 10B active256KText · ImageDedicated only
Qwen3.5 35B A3B FP835B MoE · 3B active256KText · ImageDedicated only
Qwen3.5 27B FP827B dense256KText · ImageDedicated only
Qwen3 Embedding 8B8B dense40KTextDedicated only
Qwen3 Embedding 0.6B0.6B dense32KTextDedicated only
Qwen3.8-Max VL2.4T parameters1MText · 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.

Ship your first app in minutes

$30 / month free compute