APIMart
Back to all models

Qwen3.8-Max-0902 API

AlibabaModel ID qwen3.8-max-0902Text modelReleased September 2, 2026

Use Qwen3.8-Max-0902 to plan a refactor that spans several modules, let an agent call several tools in order to finish a task, or read the charts in a report screenshot and flag anomalies.

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-0902 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-0902.

Try Qwen3.8-Max-0902 with your own material

Plan refactors across modules

Send Qwen3.8-Max-0902 the modules to change, their dependencies and the existing tests, ask for the order of changes and how to verify each step first, then the changes one step at a time. Run the tests after each step and continue only when they pass.

Example: In what order should we split the old auth module?

Material

Current state
The auth module handles login, sessions and permission checks; the orders and admin services read its internal session table directly.
Constraints
No downtime; no major changes to the orders and admin services this quarter.

PromptGive a step-by-step refactoring plan: what each step changes and how to verify behavior is unchanged. Do the lowest-risk steps first.

Sample answer · written by hand to show the reasoning

Step 1: add API-level tests for login, sessions and permissions as the baseline for every later step. Step 2: add a session-lookup endpoint to auth that still reads the session table internally; leave the other services alone. Step 3: switch the orders and admin services from querying the table to calling that endpoint, a small change you can roll back on its own. Step 4: once no service reads the session table directly, split sessions into their own service. After each release, watch the login failure rate for a week and move on only if it hasn’t changed.

About the Qwen3.8-Max-0902 API

  • A step up in coding

    Alibaba Cloud says Qwen3.8-Max-0902 breaks new ground in coding, handling more complex engineering-scale projects and long-horizon autonomous development.

  • Steadier multi-tool agents

    Collaborative agent performance is significantly better, with more composure in multi-tool orchestration and end-to-end task delivery. Supports function calling, structured outputs and context caching.

  • Sharper charts and documents

    Native vision is more accurate in chart reasoning, document parsing and multimodal perception. Takes text, image and video input, with the 1M-token context window and thinking mode retained.

  • Qwen3.8-Max-0902 API key and access

    You don’t need a separate Qwen3.8-Max-0902 API key: one APIMart key works for every model. Qwen3.8-Max-0902 API pricing is in the table on this page, and access is OpenAI SDK compatible with the model ID qwen3.8-max-0902.

How to call the Qwen3.8-Max-0902 API

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

Qwen3.8-Max-0902 access details

Model IDqwen3.8-max-0902
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-0902 API request parameters

Qwen3.8-Max-0902 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-0902 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-0902 API pricing

The Qwen3.8-Max-0902 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-0902 API through APIMart

  • 20% below official pricing

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

Differences between Alibaba models
ComparisonQwen3.8-Max-0902 CurrentQwen-TurboQwen3.6-FlashQwen3.6-PlusQwen3.7-FlashQwen3.7-PlusQwen3.7-MaxQwen3.8-27BQwen3.8-FlashQwen3.8-2.4T-A95BQwen3.8-MaxQwen4-Max
Best forUpgraded Qwen3.8-Max snapshot, Coding and multi-tool agents, Charts and documentsQwen3 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 inputOpen-weight flagship, Deep reasoning, Text onlyFlagship model, Images, video & PDF, Web searchComplex coding, Agent tasks, Image & video input
Input typesText, Image, VideoTextText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoTextText, Image, VideoText, Image, VideoTextText, 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-Max-0902 FAQ

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

Qwen3.8-Max-0902 is an upgraded snapshot of Qwen3.8-Max. Per Alibaba Cloud’s documentation it improves coding (more complex engineering-scale projects and long-horizon autonomous development), collaborative multi-tool agent performance and native vision (chart reasoning, document parsing), while the context window, thinking mode and tool ecosystem stay the same. The documentation doesn’t say which snapshot the undated qwen3.8-max points to; to pin this upgrade, use qwen3.8-max-0902.

Why pin the dated Qwen 3.8 Max 0902 snapshot?

An undated model ID can move to a newer snapshot when the vendor updates it, so the same prompt may give different results. A dated snapshot such as Qwen 3.8 Max 0902 stays fixed, which suits workloads with tuned prompts and regression tests, and makes old and new versions easy to compare: run your test set on the new model first and switch the model parameter once you’re happy with the results.

Is Alibaba Cloud’s qwen3.8-max-2026-09-02 the same model as qwen3.8-max-0902?

Yes. Alibaba Cloud’s documentation lists qwen3.8-max-2026-09-02 as the alias of qwen3.8-max-0902; both name the same snapshot. On APIMart, use the model ID qwen3.8-max-0902; Qwen3.8-Max-0902 API pricing is in the table on this page.

Is the Qwen3.8-Max-0902 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-0902; in thinking mode, max input is 983,616 tokens, max output is 131,072 tokens and the chain of thought can run to 262,144 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.

Qwen3.8-Max-0902 or Qwen4-Max?

Try Qwen4-Max first for new projects: it is the newer flagship, released in November 2026 on the new Qwen4 architecture, with three reasoning effort levels. Workloads already validated on Qwen3.8-Max can move to Qwen3.8-Max-0902 to get this snapshot’s improvements. On APIMart you switch by changing the model parameter; compare quality and cost on your own prompts.

How can I try this model online?

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

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

Set model to qwen3.8-max-0902. 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-0902?

On APIMart, Qwen3.8-Max-0902 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-0902 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-0902 API cost?

The Qwen3.8-Max-0902 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.