APIMart
Back to all models

Qwen3.8-27B API

AlibabaModel ID qwen3.8-27bText modelReleased August 14, 2026

Use Qwen3.8-27B to turn a scanned quote into a table, fix a failing build from its CI log, or find which setting is wrong in a screenshot of an admin page.

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-27B 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-27B.

Try Qwen3.8-27B with your own material

Turning scanned documents into tables

Send Qwen3.8-27B a scan or phone photo of a quote or invoice and ask it to extract item, quantity and unit price into set columns and work out the subtotals. Check the total against the one printed on the original, and recheck any row that doesn’t match.

Example: Does the total on this quote add up?

Material

Scanned quote
A4 paper 20 boxes × $85; ink cartridges 6 × $120; staplers 10 × $32. Total: $2,740.
Rules
Subtotal = quantity × unit price; round to whole dollars.

PromptPut each line of the quote into four columns (item, quantity, unit price, subtotal), add up the total, and compare it with the total printed on the document.

Sample answer · written by hand to show the reasoning

Subtotals: paper $1,700, ink cartridges $720, staplers $320, for a total of $2,740, which matches the document. If any figure on the scan is hard to read, check the quantity and unit price against the original before booking it.

About the Qwen3.8-27B API

  • An open-weight 27B dense model

    A 27-billion-parameter dense model with weights open under Apache 2.0. Alibaba says it performs on par with Qwen3.7-Plus, a mixture-of-experts model ten times its size.

  • 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 natively

    Input covers text, images and video, and output is text. Send scans, screenshots, charts and video clips together with your prompt.

  • Qwen3.8-27B API key and access

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

Qwen3.8-27B official benchmark results

Selected results Alibaba published at launch.

  • SWE-bench Pro

    61.7

    Software engineering tasks in real repositories. Qwen3.7-Plus scores 57.6, Qwen3.6-27B 53.5 and Claude Opus 4.6 (Max) 53.4.

  • Terminal Bench 2.1

    73.0

    Coding tasks in a terminal. Qwen3.7-Plus scores 64.0 and Qwen3.6-27B 63.4; Claude Opus 4.6 (Max) is higher at 78.2.

  • OSWorld-Verified

    84.3

    Completing tasks on a computer from the screen. Qwen3.7-Plus scores 73.3, Claude Opus 4.6 (Max) 72.7 and Qwen3.6-27B 63.9.

  • CoWorkBench

    70.7

    Long-horizon office work. Claude Opus 4.6 (Max) scores 68.2, Qwen3.7-Plus 65.1 and Qwen3.6-27B 61.0.

  • AndroidWorld

    81.9

    Operating Android apps from the screen. Qwen3.7-Plus scores 81.0, Qwen3.6-27B 70.3 and Claude Opus 4.6 (Max) 62.0.

  • OmniDocBench 1.5

    91.1

    Understanding documents such as scans and PDFs. Qwen3.7-Plus scores 91.4 and Claude Opus 4.6 (Max) 86.6.

How to call the Qwen3.8-27B API

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

Qwen3.8-27B access details

Model IDqwen3.8-27b
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-27B API request parameters

Qwen3.8-27B 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-27b 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-27B API pricing

The Qwen3.8-27B 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
Input3.4286Credits~$0.34293.2571Credits~$0.32573.0857Credits~$0.30864.2857Credits~$0.428620%
Cached input0.6857Credits~$0.06860.6514Credits~$0.06510.6171Credits~$0.06170.8571Credits~$0.085720%
Output13.7143Credits~$1.371413.0286Credits~$1.302912.3429Credits~$1.234317.1429Credits~$1.714320%

Prices are for reference only. View full pricing

Why call Qwen3.8-27B API through APIMart

  • 20% below official pricing

    Qwen3.8-27B 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.0686 per 1M tokens.

    See membership prices
  • One API key for 500+ models

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

Differences between Alibaba models
ComparisonQwen3.8-27B CurrentQwen-TurboQwen3.6-FlashQwen3.6-PlusQwen3.7-FlashQwen3.7-PlusQwen3.7-MaxQwen3.8-FlashQwen3.8-2.4T-A95BQwen3.8-Max-0902Qwen3.8-MaxQwen4-Max
Best forOpen weights, Coding & office work, Image & video inputQwen3 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 onlyHigh-volume calls, Coding & agents, Image & video inputOpen-weight flagship, Deep reasoning, Text onlyUpgraded 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 typesText, Image, VideoTextText, Image, VideoText, Image, VideoText, Image, VideoText, Image, VideoTextText, Image, VideoTextText, 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$0.3429$0.24$0.1371$0.2286$0.0229$0.2286$1.3714$0.0914$1.3714$1.3714$1.3714$1.4286
Output price$1.3714$2.4$0.8227$1.3718$0.0914$0.9146$4.1141$0.3086$4.1143$4.1143$4.1143$4.2857

Qwen3.8-27B FAQ

Qwen3.8-27B has open weights, so why call it through an API?

Running the open weights means providing your own GPUs and deploying with a framework such as SGLang or vLLM; the native context is 262,144 tokens, and going longer means enabling YaRN yourself. With an API there is nothing to deploy, and Alibaba Cloud’s API version comes with a longer context and built-in tools by default. On APIMart, the Qwen 3.8 27B API uses the model ID qwen3.8-27b and is billed by usage.

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

Alibaba Cloud’s documentation lists a context length of 1,000,000 tokens for the Qwen3.8-27B API; 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-27B?

Qwen3.8-27B 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.

How is Qwen3.8-27B different from Qwen3.6-27B?

Alibaba says Qwen3.8-27B builds on Qwen3.6-27B with a focus on coding and office work. On the model card, SWE-bench Pro rises from 53.5 to 61.7, CoWorkBench from 61.0 to 70.7, and OSWorld-Verified from 63.9 to 84.3. On APIMart you only need to set the model parameter to qwen3.8-27b.

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

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

How can I try this model online?

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

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

Set model to qwen3.8-27b. 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-27B?

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

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