APIMart
Back to all models

Qwen3.8-Flash API

AlibabaModel ID qwen3.8-flashText modelReleased August 27, 2026

Use Qwen3.8-Flash to turn a batch of support tickets into structured fields, find the step where an error first appears in a screen recording, or fill the gaps in a function’s unit tests.

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

Try Qwen3.8-Flash with your own material

Sorting tickets and forms in bulk

Send Qwen3.8-Flash batches of short texts such as support tickets or order notes and extract the issue type, order number and request into fixed JSON fields. Check a few dozen results by hand before scaling up, and review any record with empty fields separately.

Example: Which category does this ticket belong to?

Material

Ticket #48213
Order SO-20261104-77 was delivered a week ago, but my refund still hasn’t arrived. Can you check?
Field spec
category: refund / shipping / account; order_id: order number starting with SO-; request: what the customer wants, in one sentence.

PromptExtract category, order_id and request from the ticket and return JSON. category must be one of refund, shipping or account; use null for any field you can’t find.

Sample answer · written by hand to show the reasoning

{"category": "refund", "order_id": "SO-20261104-77", "request": "Find out why the refund hasn’t arrived"}. The ticket mentions delivery, but the customer is asking about a refund, so it goes under refund, not shipping.

About the Qwen3.8-Flash API

  • An early preview of the Qwen4 architecture

    Built on the open-weight Qwen3.8-Flash-Next, a mixture-of-experts model with 125B total parameters and 6B activated per token. Alibaba says it beats Qwen3.7-Plus, three times its size, on coding and office tasks with about one ninth of the training resources.

  • Hybrid thinking you can switch off

    Thinking mode is on by default for coding and multi-step tasks; turn it off for simple extraction and classification to get faster responses and fewer output tokens. The API version comes with a long context by default; see the specs on this page for the limits.

  • Reads images and video

    Input covers text, images and video, and output is text. Alibaba lists reading charts, understanding long videos and operating desktop apps among its uses.

  • Qwen3.8-Flash API key and access

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

Qwen3.8-Flash official benchmark results

Selected results Alibaba published at launch.

  • SWE-bench Pro

    62.5

    Software engineering tasks in real repositories; Flash-Next’s score. Qwen3.7-Plus scores 55.8 and Claude Opus 4.6 (Max) 53.4.

  • CoWorkBench

    73.9

    Long-horizon office work; Flash-Next’s score. Claude Opus 4.6 (Max) scores 68.2 and Qwen3.7-Plus 65.1.

  • Toolathlon Verified

    73.5

    Multi-step tool use; Flash-Next’s score. DeepSeek-V4-Flash-0731 scores 70.3 and Qwen3.7-Plus 50.6.

  • IFBench

    81.3

    Following instructions precisely; Flash-Next’s score. Qwen3.7-Plus scores 79.1 and Claude Opus 4.6 (Max) 62.5.

  • AndroidWorld

    84.5

    Operating Android apps from the screen; Flash-Next’s score. Qwen3.7-Plus scores 81.0 and Claude Opus 4.6 (Max) 62.0.

  • RealWorldQA

    88.5

    Answering questions about real-world photos; Flash-Next’s score. Qwen3.7-Plus scores 86.9 and Claude Opus 4.6 (Max) 73.9.

How to call the Qwen3.8-Flash API

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

Qwen3.8-Flash access details

Model IDqwen3.8-flash
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-Flash API request parameters

Qwen3.8-Flash 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-flash 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-Flash API pricing

The Qwen3.8-Flash 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
Input0.9143Credits~$0.09140.8686Credits~$0.08690.8229Credits~$0.08231.1429Credits~$0.114320%
Cached input0.1143Credits~$0.01140.1086Credits~$0.01090.1029Credits~$0.01030.1429Credits~$0.014320%
Output3.0857Credits~$0.30862.9314Credits~$0.29312.7771Credits~$0.27773.8571Credits~$0.385720%

Prices are for reference only. View full pricing

Why call Qwen3.8-Flash API through APIMart

  • 20% below official pricing

    Qwen3.8-Flash 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.0114 per 1M tokens.

    See membership prices
  • One API key for 500+ models

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

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

Qwen3.8-Flash FAQ

How is Qwen3.8-Flash related to Qwen3.8-Flash-Next?

Qwen3.8-Flash-Next is the open-weight model released on August 26, 2026, and Qwen3.8-Flash is the official API version built on it. Alibaba’s model card says the API version adds production features such as a 1M context by default and official built-in tools. On APIMart you call the API version: the Qwen 3.8 Flash API uses the model ID qwen3.8-flash.

Is the Qwen3.8-Flash 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-Flash; max input is 983,616 tokens in thinking mode and 991,808 tokens in non-thinking mode, 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 turn off thinking mode in Qwen3.8-Flash?

Qwen3.8-Flash is a hybrid thinking model with thinking on by default. According to Alibaba Cloud’s deep thinking documentation, set enable_thinking to false to turn it off; with the OpenAI SDK, pass it in extra_body. For simple extraction and classification requests, turning thinking off gives faster responses and fewer output tokens.

Should I use Qwen3.8-Flash or Qwen4-Max?

Alibaba positions Qwen3.8-Flash as its fast, low-cost model, while Qwen4-Max is the most capable flagship Qwen model. Start with Qwen3.8-Flash for high-volume, latency- and cost-sensitive work, and move the hardest coding and long-horizon agent tasks to Qwen4-Max. Each page’s pricing table shows its API price, and on APIMart you compare them by changing the model parameter.

Does Qwen3.8-Flash support function calling and structured output?

Yes. Alibaba Cloud’s documentation lists function calling, structured outputs, partial mode (prefix completion) and context cache for Qwen3.8-Flash. Cached input is billed at the cached input rate; see the pricing table on this page for Qwen3.8-Flash API pricing.

How can I try this model online?

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

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

Set model to qwen3.8-flash. 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-Flash?

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

The Qwen3.8-Flash API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.0914 per million input tokens and $0.3086 per million output tokens. Diamond: $0.0823 per million input tokens and $0.2777 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.