APIMart
Back to all models

Qwen3.8-Max API

AlibabaModel ID qwen3.8-maxText modelReleased August 3, 2026

Use Qwen3.8-Max to check figures that don’t match across an annual report PDF, find where a livestream host covers the return policy, or verify version details in a draft against the web.

Max input
983,616 tokens
Max output
131,072 tokens
Input → output
Text, Image, Video → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Qwen3.8-Max API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Qwen3.8-Max.

Try Qwen3.8-Max with your own material

Checking figures in long PDFs

Send Qwen3.8-Max an annual report or prospectus PDF directly and ask it to find where the same metric differs across pages, with page numbers. Go back to those pages to confirm the definitions before drawing conclusions.

Example: Why do the two revenue figures in this annual report differ?

Material

Annual report PDF, page 12
Key financials: total revenue $860 million.
Annual report PDF, page 47
Note 5: revenue from principal operations $840 million.

PromptFind where revenue is reported inconsistently in this annual report, say which page each figure is on, and suggest a likely reason.

Sample answer · written by hand to show the reasoning

They are different metrics: page 12 gives total revenue, page 47 gives revenue from principal operations, and the $20 million gap is probably other operating revenue. Find “other operating revenue” in the notes and check whether it is exactly $20 million; if not, ask the preparers to reconcile the two.

About the Qwen3.8-Max API

  • A 2.4-trillion-parameter flagship

    A mixture-of-experts model with 2.4 trillion total parameters, of which only 95 billion are activated per request. Alibaba says it excels at autonomous coding, professional work such as law and finance, and long-horizon tasks that run for a long time.

  • Reads images, video and PDFs

    Native visual understanding handles documents running to hundreds of pages and very long videos. Send PDFs through the Chat Completions endpoint, where they are billed as image input.

  • Built-in tools on the Responses endpoint

    Web search, web extraction, the code interpreter, text-to-image search and image-to-image search are available on /v1/responses and billed per call.

  • Qwen3.8-Max API key and access

    You don’t need a separate Qwen3.8-Max API key: one APIMart key works for every model. It is OpenAI SDK compatible with the model ID qwen3.8-max; note that /v1/chat/completions streams by default when stream is omitted, so set it to false explicitly for a non-streaming response.

Qwen3.8-Max official benchmark results

Selected results Alibaba published at launch.

  • PaperBench

    93.0

    Reproducing research results from papers. GPT-5.6 Sol (max) scores 90.5, Claude Fable 5 88.8 and Claude Opus 4.8 80.3.

  • FrontierSWE

    73.5

    Frontier software engineering tasks. Claude Opus 4.8 scores 70.0 and Qwen3.7-Max 40.7; Claude Fable 5 is higher at 88.8.

  • WideSearch

    81.9

    Wide-ranging information gathering. Claude Fable 5 scores 81.2, Qwen3.7-Max 75.2 and Claude Opus 4.8 72.9.

  • HealthBench

    60.2

    Health and medical questions. GPT-5.6 Sol (max) scores 55.3, Qwen3.7-Max 54.5 and Claude Opus 4.8 52.4.

  • PLawBench

    73.2

    Legal tasks. GPT-5.6 Sol (max) scores 72.3, Claude Fable 5 70.2 and Claude Opus 4.8 69.6.

  • AndroidBench

    75.1

    Operating Android apps from the screen. GPT-5.6 Sol (max) scores 74.0 and Claude Opus 4.8 69.8; Claude Fable 5 is higher at 84.5.

How to call the Qwen3.8-Max API

To call Qwen3.8-Max, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3.8-max",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Qwen3.8-Max access details

Model IDqwen3.8-max
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Qwen3.8-Max API request parameters

Qwen3.8-Max uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use qwen3.8-max for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Qwen3.8-Max API pricing

The Qwen3.8-Max API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input13.7143Credits~$1.371413.0286Credits~$1.302912.3429Credits~$1.234317.1429Credits~$1.714320%
Cached input1.7143Credits~$0.17141.6286Credits~$0.16291.5429Credits~$0.15432.1429Credits~$0.214320%
Output41.1429Credits~$4.114339.0857Credits~$3.908637.0286Credits~$3.702951.4286Credits~$5.142920%

Prices are for reference only. View full pricing

Why call Qwen3.8-Max API through APIMart

  • 20% below official pricing

    Qwen3.8-Max API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Alibaba's official prices, and cached input costs just $0.1714 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Qwen3.8-Max, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Qwen3.8-Max with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Alibaba model should you choose?

Base prices per 1M tokens (USD). Your Qwen3.8-Max API key works for every model in the table; just change the model parameter.

Differences between Alibaba models
ComparisonQwen3.8-Max CurrentQwen3.7-FlashQwen3.8-27BQwen3.8-FlashQwen3.8-2.4T-A95BQwen4-Max
Best forFlagship model, Images, video & PDF, Web searchImage & video input, Multimodal agents, High-volume tasksOpen weights, Coding & office work, Image & video inputHigh-volume calls, Coding & agents, Image & video inputOpen-weight flagship, Deep reasoning, Text onlyComplex coding, Agent tasks, Image & video input
Input typesText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoTextText, Image, Video
Max input983,616 tokens983,616 tokens983,616 tokens983,616 tokens983,616 tokens991,808 tokens
Input price$1.3714$0.0229$0.3429$0.0914$1.3714$1.4286
Output price$4.1143$0.0914$1.3714$0.3086$4.1143$4.2857

Qwen3.8-Max FAQ

Why is Qwen3.8-Max slow, and can I turn thinking off?

Not on APIMart. Qwen3.8-Max reasons before every answer; reasoning is billed as output tokens and takes time, and streaming requests ignore enable_thinking: false. To control time and cost, cap the output with max_tokens and use streaming for time-sensitive requests; calls to built-in tools such as image search are slower still. For simple requests that need thinking off, use Qwen3.8-Flash or Qwen3.8-27B.

Is the Qwen3.8-Max context window 1,000,000 or 983,616 tokens?

Alibaba Cloud’s documentation lists a context length of 1,000,000 tokens for Qwen3.8-Max; since it always runs in thinking mode on APIMart, max input is 983,616 tokens and max output is 131,072 tokens. The Max input and Max output on this page come from APIMart’s pricing data: input up to 983,616 tokens and output up to 131,072 tokens. On APIMart, plan your requests with the figures on this page.

How do I use web search and other built-in tools with Qwen3.8-Max?

Built-in tools work only through /v1/responses; on /v1/chat/completions they are ignored without an error. The available tools are web_search, web_extractor (which must be declared together with web_search), code_interpreter, web_search_image (text-to-image search) and image_search (image-to-image search). Tool calls are billed separately per call, as reported in usage.x_tools; tools you declare but that aren’t called are free.

Can Qwen3.8-Max read PDFs?

Yes, but only through /v1/chat/completions; the Responses endpoint ignores PDFs. PDFs are read as images and billed as image input tokens, roughly 2,100 tokens per page, with no separate parsing fee. Send the PDF’s URL or base64 content as a file content part.

What is the difference between qwen3.8-max and qwen3.8-max-0902?

qwen3.8-max-0902 is an upgraded snapshot Alibaba released on September 2, 2026, with better coding, multi-tool collaboration and visual understanding; the context and thinking mode are unchanged. When you need stable, reproducible output, pin the dated qwen3.8-max-0902. Both model IDs work on APIMart; see each one’s pricing table for Qwen 3.8 Max API pricing.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Qwen3.8-Max in the text category to start exploring.

Which model ID does the Qwen3.8-Max API use?

Set model to qwen3.8-max. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

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

On APIMart, Qwen3.8-Max accepts up to 983,616 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Qwen3.8-Max can output up to 131,072 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

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

The Qwen3.8-Max API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.3714 per million input tokens and $4.1143 per million output tokens. Diamond: $1.2343 per million input tokens and $3.7029 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.