Qwen3.8 2.4T A95B API

Qwen3.8 2.4T A95B is an open-weight sparse mixture-of-experts model from Qwen and the open-weight variant of Qwen3.8 Max, with 95 billion active parameters out of 2.4 trillion total. Reasoning is always on.
Context
262K tokens
Input
$3.25 / 1M
Output
$8.125 / 1M
Released
Aug 12, 2026

How to use Qwen3.8 2.4T A95B API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to alibaba/qwen3.8-2.4t-a95b.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "alibaba/qwen3.8-2.4t-a95b",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "alibaba/qwen3.8-2.4t-a95b",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"alibaba/qwen3.8-2.4t-a95b","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Qwen3.8 2.4T A95B API Pricing

TypePrice
Input
$3.25 / 1M
Output
$8.125 / 1M
Cached input
$0.65 / 1M

This model’s documented pricing caveat is that Alibaba Cloud’s page shows the original API pricing only, excluding limited-time promotions, and it lists separate rates for cache hits and explicit cache creation[2

Qwen3.8 2.4T A95B vs other models

ModelInputOutputContextBest for
$3.25 / 1M
$8.125 / 1M
262K tokens
Agentic workflows and structured output
$0.61893 / 1M
$4.40128 / 1M
256K tokens
Multimodal + agents
$0.65 / 1M
$3.9 / 1M
262K tokens
Coding + agents
$0.065 / 1M tokens
$0.52 / 1M tokens
262K tokens
Reasoning + agents

Start building with Qwen3.8 2.4T A95B

Get API Key
1000+ models, one API.