import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "alibaba/qwen3.8-max", "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-max", "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-max","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
Function/tool calls are billed separately at $0.013 per call.
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| Intelligence | 40.3 | Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Coding | 71.8 | Composite score across standardised coding evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Qwen3.8 Max This page | Complex reasoning, coding and agentic workflows | |||
| Frontier reasoning + agents | ||||
| Reasoning + agents | ||||
| Complex agentic coding and enterprise workflows | ||||
| Long-context, multimodal & agentic workflows |
Qwen3.8 Max has a 1,000,000 tokens context window and can return up to 131,072 tokens.
Qwen3.8 Max takes image, text as input and returns text.
Use alibaba/qwen3.8-max as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Qwen3.8 Max became available on August 3, 2026.
Qwen3.8 Max is priced at input $2.6 / 1M tokens, output $7.8 / 1M tokens, cached input $0.325 / 1M tokens.
Yes, Qwen3.8 Max can stream responses as they are generated.
Yes, Qwen3.8 Max accepts image input alongside text.
Qwen3.8 Max was built by Alibaba Cloud.