# Qwen API

> Use Alibaba Qwen through SandBase: Qwen3.8 Max and its open-weight 2.4T release, compact 27B models, Omni Flash for audio and video input, and Qwen3.7 tiers.

Source: https://www.sandbase.ai/models/qwen

## Models

- [Alibaba Qwen3.8 Max](https://www.sandbase.ai/models/alibaba/qwen3.8-max.md): `alibaba/qwen3.8-max`; $1.80 per 1M input tokens, $5.40 per 1M output tokens (10% off list price); Qwen3.8 Max is Alibaba's flagship Qwen3.8 model, a 2.4-trillion-parameter Mixture-of-Experts reasoning model with native vision understanding, released in August 2026. Alibaba positions it for long-ho...
- [Alibaba Qwen3.8 27B](https://www.sandbase.ai/models/alibaba/qwen3.8-27b.md): `alibaba/qwen3.8-27b`; $0.50 per 1M input tokens, $3 per 1M output tokens; Qwen3.8 27B is the compact dense member of Alibaba's Qwen3.8 family, an open-weight native vision-language model that understands images and video, with thinking mode on by default. Compared with Qwen...
- [Alibaba Qwen3.7 Flash](https://www.sandbase.ai/models/alibaba/qwen3.7-flash.md): `alibaba/qwen3.7-flash`; $0.03 per 1M input tokens, $0.13 per 1M output tokens; Qwen3.7 Flash is the Flash tier of Alibaba's Qwen3.7 series, a native vision-language reasoning model that accepts text, images and video, released in July 2026. Alibaba describes it as an upgrade ove...
- [Alibaba Qwen3.8 Max (0902)](https://www.sandbase.ai/models/alibaba/qwen3.8-max-0902.md): `alibaba/qwen3.8-max-0902`; $2 per 1M input tokens, $6 per 1M output tokens; Qwen3.8 Max (0902) is the pinned snapshot of Alibaba's Qwen3.8 Max dated September 2, 2026, intended for workloads that need a fixed version. Alibaba describes it as an upgraded snapshot with stronger...
- [Alibaba Qwen3.7 Plus](https://www.sandbase.ai/models/alibaba/qwen3.7-plus.md): `alibaba/qwen3.7-plus`; $0.40 per 1M input tokens, $1.60 per 1M output tokens; Qwen3.7 Plus is the balanced Plus tier of Alibaba's Qwen3.7 series, a reasoning model with text and image input released in June 2026. Alibaba highlights its multimodal hybrid agent abilities: perceiv...
- [Alibaba Qwen3.8 2.4T A95B](https://www.sandbase.ai/models/alibaba/qwen3.8-2.4t-a95b.md): `alibaba/qwen3.8-2.4t-a95b`; $2 per 1M input tokens, $6 per 1M output tokens; Qwen3.8 2.4T A95B is the open-weight release of Alibaba's Qwen3.8 Max-class model, a sparse Mixture-of-Experts with 2.4 trillion total and about 95 billion active parameters, published in August 2026 ...
- [Alibaba Qwen3.8 Omni Flash](https://www.sandbase.ai/models/alibaba/qwen3.8-omni-flash.md): `alibaba/qwen3.8-omni-flash`; $0.15 per 1M input tokens, $0.47 per 1M output tokens; Qwen3.8 Omni Flash is Alibaba's omni-modal reasoning model in the Qwen3.8 family, accepting text, image, audio and video input and returning text, with a 1M-token context window. Alibaba positions it ...
- [Alibaba Qwen3.8 Max Prime](https://www.sandbase.ai/models/alibaba/qwen3.8-max-prime.md): `alibaba/qwen3.8-max-prime`; $4 per 1M input tokens, $12 per 1M output tokens; Qwen3.8 Max Prime is the Fast mode (Prime) serving option for Alibaba's Qwen3.8 Max: the same model with the same vision input and reasoning, delivered at higher output speed. Alibaba states Fast mode...
- [Alibaba Qwen3.6 Plus](https://www.sandbase.ai/models/alibaba/qwen3.6-plus.md): `alibaba/qwen3.6-plus`; $0.50 per 1M input tokens, $3 per 1M output tokens; Qwen3.6 Plus is the Plus tier of Alibaba's Qwen3.6 series, a hosted native vision-language reasoning model released in April 2026. Alibaba reports marked gains over the Qwen3.5 series in agentic codin...
- [Alibaba Qwen3.6 27B](https://www.sandbase.ai/models/alibaba/qwen3.6-27b.md): `alibaba/qwen3.6-27b`; $0.60 per 1M input tokens, $3.60 per 1M output tokens; Qwen3.6 27B is an open-weight dense 27-billion-parameter vision-language model in Alibaba's Qwen3.6 family, released in April 2026 with thinking and non-thinking modes. Qwen positions it for agentic c...
- [Alibaba Qwen3.7 Max](https://www.sandbase.ai/models/alibaba/qwen3.7-max.md): `alibaba/qwen3.7-max`; $2.50 per 1M input tokens, $7.50 per 1M output tokens; Qwen3.7 Max is the largest and most capable model in Alibaba's Qwen3.7 series as of its May 2026 release, a reasoning model built for agent-centric work and offered here with text input and output. Al...

## Model lineup

Context window and positioning from each provider.

| Model | Context | Positioning |
| --- | --- | --- |
| Qwen3.8 Max | 1000K | Qwen3.8 Max is Alibaba's flagship Qwen3.8 model, a 2.4-trillion-parameter Mixture-of-Experts reasoning model with native vision understanding,… |
| Qwen3.8 Max (0902) | 1000K | Qwen3.8 Max (0902) is the pinned snapshot of Alibaba's Qwen3.8 Max dated September 2, 2026, intended for workloads that need a fixed version |
| Qwen3.8 Max Prime | 1000K | Qwen3.8 Max Prime is the Fast mode (Prime) serving option for Alibaba's Qwen3.8 Max: the same model with the same vision input and reasoning,… |
| Qwen3.7 Plus | 1000K | Qwen3.7 Plus is the balanced Plus tier of Alibaba's Qwen3.7 series, a reasoning model with text and image input released in June 2026 |
| Qwen3.7 Flash | 1000K | Qwen3.7 Flash is the Flash tier of Alibaba's Qwen3.7 series, a native vision-language reasoning model that accepts text, images and video, released… |
| Qwen3.7 Max | 1000K | Qwen3.7 Max is the largest and most capable model in Alibaba's Qwen3.7 series as of its May 2026 release, a reasoning model built for agent-centric… |
| Qwen3.6 Plus | 1000K | Qwen3.6 Plus is the Plus tier of Alibaba's Qwen3.6 series, a hosted native vision-language reasoning model released in April 2026 |
| Qwen3.6 27B | 262K | Qwen3.6 27B is an open-weight dense 27-billion-parameter vision-language model in Alibaba's Qwen3.6 family, released in April 2026 with thinking and… |
| Qwen3.8 2.4T A95B | 1000K | Qwen3.8 2.4T A95B is the open-weight release of Alibaba's Qwen3.8 Max-class model, a sparse Mixture-of-Experts with 2.4 trillion total and about 95… |
| Qwen3.8 27B | 1000K | Qwen3.8 27B is the compact dense member of Alibaba's Qwen3.8 family, an open-weight native vision-language model that understands images and video,… |
| Qwen3.8 Omni Flash | 1000K | Qwen3.8 Omni Flash is Alibaba's omni-modal reasoning model in the Qwen3.8 family, accepting text, image, audio and video input and returning text,… |

## Overview

### Current Qwen models

SandBase serves Qwen on the OpenAI-compatible `POST /v1/chat/completions`. Current Qwen models are native vision-language reasoning models with up to 1M tokens of context.

- **Qwen3.8 Max:** Alibaba's flagship 2.4-trillion-parameter MoE reasoning model. Max Prime is the same model in a faster serving mode, and 0902 is a pinned snapshot.
- **Qwen3.8 2.4T A95B:** the open-weight release of the Max-class model.
- **Qwen3.8 27B and Qwen3.6 27B:** compact open-weight dense models.
- **Qwen3.8 Omni Flash:** accepts text, image, audio and video input.
- **Qwen3.7 Max, Plus and Flash; Qwen3.6 Plus:** earlier tiers.

For Alibaba image and video, see [Qwen Image](https://www.sandbase.ai/models/qwen-image) and [Wan](https://www.sandbase.ai/models/wan). Compare with other Chinese models on [Chinese LLM APIs](https://www.sandbase.ai/models/chinese-llms).

## Start using Qwen API on SandBase

Switch models by changing one field.

1. **Create an API key** Sign in to the SandBase Console and create a key on the API Keys page. Keep it in an environment variable and never commit it to source control.

```
export SANDBASE_API_KEY="YOUR_SANDBASE_API_KEY"
```

2. **Send a chat request** Call the OpenAI-compatible Chat Completions API with model alibaba/qwen3.8-max. Any OpenAI SDK works with base URL https://api.sandbase.ai/v1.

```
curl https://api.sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "alibaba/qwen3.8-max", "messages": [{"role": "user", "content": "Explain vector databases in two sentences."}]}'
```

3. **Connect your AI tools** Use the same key in Claude Code, Codex, Cursor and other clients. See Use in AI tools for setup.

## FAQ

### Which Qwen models are open-weight?

Qwen3.8 2.4T A95B, Qwen3.8 27B and Qwen3.6 27B are described as open-weight.

### What is Qwen3.8 Max Prime?

The same Qwen3.8 Max model with the same inputs, served in a faster mode at a higher price.

### Which Qwen accepts audio and video?

Qwen3.8 Omni Flash accepts text, image, audio and video input.

### What is the cheapest Qwen?

Qwen3.7 Flash is the lowest-priced current Qwen tier.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
