What the Qwen3.8 Max API can do
Qwen3.8 Max is Alibaba's long-context chat model. On AIReiter the public model id is qwen3.8-max.
1M context window
About 1 million input tokens and up to 131,072 output tokens. Long documents, multi-file chat, and extended threads fit in one request.
OpenAI-compatible Chat Completions
POST /api/v1/chat/completions with the same messages, temperature, and stream fields used by OpenAI SDKs. This is the default path for dialogue.
PDF and image chat
Attach a public file URL in messages[].content as type file. PDF is not a billed tool; it is charged through tokens only.
Built-in tools on Responses
POST /api/v1/responses for web_search, web_search_image, and image_search. The JSON usage.x_tools object reports how many times each tool ran.
Qwen3.8 Max API pricing
Live token and tool rates are on https://aireiter.com/pricing. The figures on this page update from the model database.
Token billing
Input, output, cache read, and cache write each have their own price per 1M tokens. The playground on this page shows the current AIReiter rates next to official list prices.
Built-in tools billed per call
web_search, web_search_image, and image_search add a per-call fee on top of tokens. web_extractor and code_interpreter are priced at zero and do not add credits.
How to estimate credits
Credits = token fees + tool count x per-call price. If you only multiply tokens by token prices, the total will be short whenever usage.x_tools has a count greater than zero.
Qwen3.8 Max API examples
Replace YOUR_API_KEY with a key from https://aireiter.com/keys. Full protocol notes: https://docs.aireiter.com/en/overview
Chat Completions
curl https://aireiter.com/api/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"qwen3.8-max","messages":[{"role":"user","content":"Hello"}]}'
Responses with web_search
curl https://aireiter.com/api/v1/responses \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"qwen3.8-max","input":"What happened today?","tools":[{"type":"web_search"}]}'
How to call the Qwen3.8 Max API
Use model id qwen3.8-max. Chat Completions for dialogue and PDF; Responses when you need built-in tools.
Create an API key
Sign in and create a key at https://aireiter.com/keys. Send it as Authorization: Bearer.
Start with Chat Completions
POST /api/v1/chat/completions for ordinary chat and PDF. Keep stream true if you want tokens as they generate.
Add tools on Responses
POST /api/v1/responses with tools such as {"type":"web_search"}. Read usage.x_tools in the response, then check https://aireiter.com/pricing for the per-call rate.
Qwen3.8 Max API FAQ
/ 01What is the Qwen3.8 Max API?
It is Alibaba's Qwen3.8 Max chat model served through AIReiter. You call it with the public model id qwen3.8-max over OpenAI-compatible HTTP, or try it in the playground on this page.
/ 02Is the Qwen3.8 Max API OpenAI compatible?
Yes. Chat Completions is POST /api/v1/chat/completions. Built-in tools use POST /api/v1/responses. OpenAI SDKs work if you set the base URL to https://aireiter.com/api/v1 and the model to qwen3.8-max.
/ 03How much does the Qwen3.8 Max API cost?
You pay token prices for input, output, and cache, plus a per-call fee when web_search, web_search_image, or image_search runs. Current rates are on https://aireiter.com/pricing and in the price row at the top of this page.
/ 04What is the Qwen3.8 Max context window?
About 1 million input tokens. Maximum output is 131,072 tokens per request.
/ 05How do I use web search with Qwen3.8 Max?
Use the Responses API, not Chat Completions. Send tools: [{"type":"web_search"}] (or web_search_image / image_search). The response usage.x_tools field shows the billed call count.
/ 06Does PDF chat cost extra on Qwen3.8 Max?
No extra per-page fee. Put a public PDF URL in Chat Completions messages as type file. Billing stays on tokens. Built-in search tools are the items that add a per-call charge.