APIMart
Back to all models

Qwen3.8-2.4T-A95B API

AlibabaModel ID qwen3.8-2.4t-a95bText modelReleased August 12, 2026

Use Qwen3.8-2.4T-A95B to work out which call sites a dependency upgrade touches, check a contract against its amendment for conflicts, or find why a paper reproduction falls short.

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

Qwen3.8-2.4T-A95B 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-2.4T-A95B.

Try Qwen3.8-2.4T-A95B with your own material

Scoping a dependency upgrade

Send Qwen3.8-2.4T-A95B the dependency’s changelog together with a code search for the affected calls, and ask for the call sites to change and the order to change them in. Follow that order, then run the full test suite to make sure no call was missed.

Example: How much does this upgrade touch?

Material

Changelog
v3.0: parse() is renamed to parse_strict() and the old name is removed; parse_strict() raises on an empty string instead of returning None.
Code search
parse( appears 12 times in orders.py, 3 times in billing.py and 7 times in tests/; 2 of the billing.py calls check whether the result is None.

PromptUsing the changelog and the search results, list what has to change to upgrade to v3, and give an order of changes that won’t leave main broken for long.

Sample answer · written by hand to show the reasoning

There are 22 calls to change, and the 2 in billing.py need more than a rename: they rely on getting None back for an empty string, so after the upgrade they must catch the exception or check for an empty string first. Suggested order: on v2, change those 2 calls to check for an empty string first and merge; then rename all 22 calls and upgrade to v3 in one change, and run the full test suite.

About the Qwen3.8-2.4T-A95B API

  • The first open-weight Max-class Qwen model

    A mixture-of-experts model with 2.4 trillion total parameters and about 95 billion activated per step. Qwen3.8 is the first time a Max-class model’s weights are open for download, and the official Qwen3.8-Max is built on it.

  • Always thinks before answering

    It runs in thinking mode only and reasons before every answer, which suits hard, multi-step coding and analysis. Simple requests spend extra reasoning tokens and time.

  • Text input, long context

    Input and output are both text, which suits whole contracts, long papers and large chunks of code. The API version comes with a long context by default; see the specs on this page for the limits.

  • Qwen3.8-2.4T-A95B API key and access

    You don’t need a separate Qwen3.8-2.4T-A95B API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID qwen3.8-2.4t-a95b.

Qwen3.8-2.4T-A95B official benchmark results

Selected results Alibaba published at launch.

  • PaperBench

    93.0

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

  • Terminal Bench 2.1

    86.6

    Coding tasks in a terminal; the Qwen3.8-Max column. Claude Opus 4.8 and Claude Fable 5 both score 84.6; GPT-5.6 Sol (max) is higher at 88.8.

  • SWE-bench Pro

    67.7

    Software engineering tasks in real repositories; the Qwen3.8-Max column. Qwen3.7-Max scores 60.6; Claude Opus 4.8 scores 69.2 and Claude Fable 5 80.0.

  • CoWorkBench

    74.8

    Long-horizon office work; the Qwen3.8-Max column. Claude Opus 4.8 scores 72.3 and GPT-5.6 Sol (max) 71.5; Claude Fable 5 scores 75.9.

  • IFBench

    82.8

    Following instructions precisely; the Qwen3.8-Max column. GPT-5.6 Sol (max) scores 72.7, Claude Fable 5 63.5 and Claude Opus 4.8 62.2.

  • MRCR v2 256K

    92.9

    Finding 8 related pieces of information in 256K of text; the Qwen3.8-Max column. Qwen3.7-Max scores 86.7 and Claude Opus 4.8 83.2; GPT-5.6 Sol (max) scores 93.8.

How to call the Qwen3.8-2.4T-A95B API

To call Qwen3.8-2.4T-A95B, 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-2.4t-a95b",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Qwen3.8-2.4T-A95B access details

Model IDqwen3.8-2.4t-a95b
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-2.4T-A95B API request parameters

Qwen3.8-2.4T-A95B 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-2.4t-a95b 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-2.4T-A95B API pricing

The Qwen3.8-2.4T-A95B 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-2.4T-A95B API through APIMart

  • 20% below official pricing

    Qwen3.8-2.4T-A95B 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-2.4T-A95B, 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-2.4T-A95B 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-2.4T-A95B API key works for every model in the table; just change the model parameter.

Differences between Alibaba models
ComparisonQwen3.8-2.4T-A95B CurrentQwen-TurboQwen3.6-FlashQwen3.6-PlusQwen3.7-FlashQwen3.7-PlusQwen3.7-MaxQwen3.8-27BQwen3.8-FlashQwen3.8-Max-0902Qwen3.8-MaxQwen4-Max
Best forOpen-weight flagship, Deep reasoning, Text onlyQwen3 series Turbo, Text in, text out, High-volume short-text tasksAgentic coding, Object detection, Math & code reasoningAgentic coding, Front-end from screenshots, OCR and localizationImage & video input, Multimodal agents, High-volume tasksScreenshots and video, Code from designs, Balanced costLargest Qwen3.7 model, Coding and office work, Text onlyOpen weights, Coding & office work, Image & video inputHigh-volume calls, Coding & agents, Image & video inputUpgraded Qwen3.8-Max snapshot, Coding and multi-tool agents, Charts and documentsFlagship model, Images, video & PDF, Web searchComplex coding, Agent tasks, Image & video input
Input typesTextTextText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoTextText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoText, Image, Video
Max input983,616 tokens129,024 tokens991,808 tokens991,808 tokens983,616 tokens991,808 tokens991,808 tokens983,616 tokens983,616 tokens983,616 tokens983,616 tokens991,808 tokens
Max output131,072 tokens16,384 tokens65,536 tokens65,536 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens131,072 tokens
Input price$1.3714$0.24$0.1371$0.2286$0.0229$0.2286$1.3714$0.3429$0.0914$1.3714$1.3714$1.4286
Output price$4.1143$2.4$0.8227$1.3718$0.0914$0.9146$4.1141$1.3714$0.3086$4.1143$4.1143$4.2857

Qwen3.8-2.4T-A95B FAQ

How is Qwen3.8-2.4T-A95B different from Qwen3.8-Max?

Qwen3.8-Max is the official version built on Qwen3.8-2.4T-A95B. The model card says Qwen3.8-Max adds image input, a non-thinking mode, a 1M context by default and official built-in tools, although on APIMart Qwen3.8-Max can’t turn thinking off either. Qwen3.8-2.4T-A95B is the open-weight release and, on the API, takes text only and runs in thinking mode only. Both are available on APIMart; the Qwen 3.8 2.4T API uses the model ID qwen3.8-2.4t-a95b.

Is the Qwen3.8-2.4T-A95B 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-2.4T-A95B; since it runs in thinking mode only, max input is 983,616 tokens, max output is 131,072 tokens and the chain of thought can run up to 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.

Can I turn off thinking in Qwen3.8-2.4T-A95B?

No. Alibaba Cloud’s deep thinking documentation lists it as a thinking-only model, and the model card says thinking cannot be disabled: every answer starts with reasoning. On APIMart, passing enable_thinking: false returns a 400 error, so leave the parameter out. Reasoning is billed as output tokens and adds response time; for faster, cheaper simple requests, use Qwen3.8-Flash or Qwen3.8-27B, where thinking can be turned off, or cap each response with max_tokens.

Can Qwen3.8-2.4T-A95B take image input?

No. Alibaba Cloud’s documentation lists text as the only input and output, and the model card says multimodal input is not supported. To send screenshots, scans or video with your prompt, use Qwen3.8-Max, Qwen3.8-27B or Qwen3.8-Flash.

Does Qwen3.8-2.4T-A95B support function calling and structured output?

Yes. Alibaba Cloud’s documentation lists function calling, structured outputs, prefix completion and context caching for Qwen3.8-2.4T-A95B. Cached input is billed at the cached input rate; see the pricing table on this page for Qwen3.8-2.4T-A95B API pricing.

How can I try this model online?

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

Which model ID does the Qwen3.8-2.4T-A95B API use?

Set model to qwen3.8-2.4t-a95b. 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-2.4T-A95B?

On APIMart, Qwen3.8-2.4T-A95B 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-2.4T-A95B 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-2.4T-A95B API cost?

The Qwen3.8-2.4T-A95B 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.