Qwen3.8 2.4T A95B API

alibaba/qwen3.8-2.4t-a95b
Alibaba's open-weight MoE model — 95B active of 2.4T total parameters, reasoning always on.
Context
262K tokens
Input
$3.4385 / 1M tokens
Output
$8.59625 / 1M tokens
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.4385 / 1M tokens
Output
$8.59625 / 1M tokens
Cached input
$0.6877 / 1M tokens

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 Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
40
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Coding
71.9
Composite score across standardised coding evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026

Qwen3.8 2.4T A95B vs other models

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

Frequently asked questions

Qwen3.8 2.4T A95B has a 262,144 tokens context window and can return up to 52,429 tokens.

Qwen3.8 2.4T A95B takes text as input and returns text.

Use alibaba/qwen3.8-2.4t-a95b as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

Qwen3.8 2.4T A95B became available on August 12, 2026.

Qwen3.8 2.4T A95B is priced at input $3.4385 / 1M tokens, output $8.59625 / 1M tokens, cached input $0.6877 / 1M tokens.

Yes, Qwen3.8 2.4T A95B can stream responses as they are generated.

Qwen3.8 2.4T A95B was built by Alibaba Cloud.

It is a text-only model, accepting text input and producing text output.

It is built for reasoning-focused chat with tool use and structured output support, and reasoning is always enabled.

Start building with Qwen3.8 2.4T A95B

Get API Key
1000+ models, one API.