Qwen3.8 Max Prime API

High-throughput variant of Alibaba's flagship Qwen3.8 Max: 1M-token context, text, image and video input, always-on reasoning.

Modalities
Image, Text, VideoText
In / Out price
$4.23/$12.7per 1M
Context window
1M tokens
Released
Sep 23, 2026

Qwen3.8 Max Prime overview

Qwen3.8 Max Prime by Alibaba Cloud

Qwen3.8 Max Prime API: the high-throughput SKU of Alibaba's flagship Qwen3.8 Max, with 1M-token context, video input and always-on reasoning.

Qwen3.8 Max Prime specs

Model ID
alibaba/qwen3.8-max-prime
Developer
Alibaba Cloud
Context window
1,000,000 tokens
Max output
131,072 tokens
Input
Image, Text, Video
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What Is Qwen3.8 Max Prime?

Qwen3.8 Max Prime is a higher-throughput variant of Qwen3.8 Max, Alibaba's flagship reasoning and agentic model, served as a separate SKU with its own model id and its own price. The capabilities match the flagship, a 1,000,000-token context window, text, image and video input, tool calling and structured outputs, and reasoning is always on rather than switchable.

Technical Reference

  • Developer: Alibaba Cloud (Qwen)
  • Model ID: alibaba/qwen3.8-max-prime
  • Release date: 23 September 2026
  • Endpoint: POST /v1/chat/completions
  • Context window: 1,000,000 tokens
  • Modalities: Image, Text, Video → Text
  • Capabilities: always-on reasoning, tool calling, structured output, streaming, vision

What Prime Changes

Throughput, not capability
Prime is the same model family served for higher throughput. If a workload is bounded by how fast tokens come back rather than by what the model can do, this is the SKU for it; otherwise the standard Qwen3.8 Max covers the same ground at roughly half the input price.

Video in the same request
Video joins text and images as an input modality, so clips can be analysed alongside the surrounding prompt without a separate pipeline.

Reasoning always on
There is no thinking toggle, every request reasons, and those tokens bill at the output rate.

Where Qwen3.8 Max Prime Makes the Most Sense

Latency-sensitive agent loops
Multi-step pipelines where the wall-clock cost of each step decides whether the workflow is usable.

Multimodal analysis at volume
Batches of images or video that need a frontier-tier model rather than a small one.

Repository- and document-scale context
A 1M-token window holds whole codebases or document sets in one request.

Use cases

Throughput-bound agent loops. Pipelines where wall-clock time per step decides whether the workflow is usable. Prime is the same model family served for higher throughput, which is the only reason to pay its premium over the standard SKU.

Video and image analysis at volume. Video joins text and images as an input modality, so clips are analysed in the same request as the prompt rather than through a separate pipeline.

Repository-scale code work. A 1,000,000-token window holds a large codebase with its tests, and 131,072 tokens of output is room for a substantial refactor in one reply.

Long-document research. Contracts, filings and archives handed over whole, with always-on reasoning applied to every request.

Capabilities

  • Reasoning
  • Function calling
  • Streaming
  • Structured outputs
  • Vision

Qwen3.8 Max Prime API pricing

Qwen3.8 Max Prime pricing in US dollars
UsagePriceUnit
Input$4.231M tokens
Output$12.71M tokens
Cached input$0.5291M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Qwen3.8 Max Prime vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Qwen3.8 Max Prime$4.23$12.7
Qwen3.8 Omni Flash$0.15$0.47
Qwen3.8-Flash$0.16$0.47
Qwen 3.8 27B$0.4761$3.39
Qwen3.8 2.4T A95B$2.65$6.61

How to use the Qwen3.8 Max Prime API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "alibaba/qwen3.8-max-prime",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Qwen3.8 Max Prime FAQ

What is Qwen3.8 Max Prime?

Qwen3.8 Max Prime is a higher-throughput variant of Alibaba's flagship Qwen3.8 Max, served as its own SKU. It keeps the 1,000,000-token context window, accepts text, image and video input, and always reasons.

How much does the Qwen3.8 Max Prime API cost?

Qwen3.8 Max Prime costs $4.23 input and $12.7 output per 1M tokens on AI/ML API, billed as you go with no subscription.

What inputs does Qwen3.8 Max Prime accept?

Text, images and video in, text out, with up to 1,000,000 tokens in a single request and up to 131,072 tokens of output.

How do I call Qwen3.8 Max Prime through the API?

Send a POST request to https://api.aimlapi.com/v1/chat/completions with alibaba/qwen3.8-max-prime as the model id and your AI/ML API key in the Authorization header. The endpoint is OpenAI-compatible, so an existing chat client only needs the base URL swapped.

What is the Qwen3.8 Max Prime model ID?

Use alibaba/qwen3.8-max-prime as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.

What is the context window of Qwen3.8 Max Prime?

Qwen3.8 Max Prime accepts up to 1,000,000 tokens of context and returns up to 131,072 output tokens.

Start building with Qwen3.8 Max Prime

Qwen3.8 Max Prime API

alibaba/qwen3.8-max-prime

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "alibaba/qwen3.8-max-prime",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'