Roboflow
Qwen

Qwen: Qwen3.8 27B

Qwen3.8 27B Overview

Qwen3.8-27B is a dense vision-language model of roughly 27.78 billion parameters from Alibaba's Qwen team, built on the architectural foundation established by the Qwen3.5 generation. It takes interleaved text, image, and video input through an integrated vision encoder and produces text, covering document and chart understanding, visual question answering, front-end code generation from visual references, and agentic computer-use workflows. The decoder is a hybrid stack of 64 layers that repeats a pattern of three Gated DeltaNet linear-attention blocks, each followed by a feed-forward block, then one grouped-query full-attention block, so only a quarter of the layers maintain a conventional key-value cache. Native context length is 262,144 tokens.

Post-training targets long-horizon agentic work, and the model exposes per-request thinking control that lets callers switch reasoning traces on or off and choose a reasoning effort level. Multi-token prediction weights are trained alongside the main network for speculative decoding. Qwen reports improvements over Qwen3.6-27B on agentic and multimodal evaluations including Terminal-Bench 2.1, OSWorld-Verified, and SWE-bench Multimodal, with additional results on MathVision, CharXiv, and an internal Vision2Web suite.

Qwen3.8 27B Interactive Demo

Model settings

Thinking level

Max output tokens

Default 65,536 · max 65,536

Sign in to adjust thinking and output length per run.

Results appear here. Add an image or pick an example to run Qwen3.8 27B.

Qwen3.8 27B Details & Performance

Details

Resources

Vision Tasks

CaptioningChart Question AnsweringClassificationDocument Question AnsweringImage TaggingMulti-Label ClassificationOCRVision LanguageVisual Question Answering

Features

Foundation VisionLLMs with Vision CapabilitiesMultimodal Vision

Usage

Past 30 Days

Performance

Avg. Latency

Qwen3.8 27B Vision Evals

Vision Evals is Roboflow's ground-truth benchmark: every model runs the same real-world samples across six vision tasks, and answers are scored against ground truth.

Evals updated September 5, 2026Pricing updated September 6, 2026

Overall score#17 of 53
74.7%
Avg cost / sample#13 of 53
$0.0035
Avg speed / sample#41 of 53
17.99s
Avg tokens / sample
2.8K

Strengths and weaknesses

Qwen3.8 27B averages 74.7% across the six Vision Evals tasks, ranking #17 of 53 models overall.

Its weakest relative showing is Data Extraction, ranking #44 of 53 at 78.0%.

At $0.0035 per sample it is the 13th cheapest of the 53 benchmarked models, and its average inference time of 18.0s per sample makes it the 41st fastest.

Performance profile

Field medianQwen3.8 27B

Field medians: Object Detection 53.9%, Counting 56.8%, Identification 84.4%, OCR 88.7%, Data Extraction 84.5%, Reasoning 54.1%.

Results by task

TaskScoreField (0 to 100)RankCost / sampleSpeed
Object Detection (low)
65.7%
±1.0, Mean of 3 runs, range 64.6 to 66.5
#8 of 53$033.43s
Object Detection (high)
66.1%
±1.4, Mean of 3 runs, range 64.9 to 67.8
#9 of 17$039.37s
Counting (low)
64.9%
±4.1, Mean of 3 runs, range 60.8 to 68.9
#23 of 53$09.16s
Counting (high)
68.0%
±2.0, Mean of 3 runs, range 66.2 to 70.3
#13 of 17$032.28s
Identification (low)
85.4%
±4.7, Mean of 3 runs, range 81.3 to 90.6
#22 of 53$02.95s
Identification (high)
87.5%
±3.1, Mean of 3 runs, range 84.4 to 90.6
#11 of 17$07.53s
OCR (low)
92.2%
±1.2, Mean of 3 runs, range 91.1 to 93.4
#11 of 53$012.32s
OCR (high)
91.5%
±1.4, Mean of 3 runs, range 90.1 to 92.9
#6 of 17$014.10s
Data Extraction (low)
78.0%
±1.0, Mean of 3 runs, range 77.3 to 79.4
#44 of 53$03.33s
Data Extraction (high)
80.8%
±1.0, Mean of 3 runs, range 79.4 to 81.4
#16 of 17$08.94s
Reasoning (low)
62.0%
±2.0, Mean of 3 runs, range 60.3 to 64.2
#17 of 53$010.75s
Reasoning (high)
66.0%
±0.7, Mean of 3 runs, range 65.6 to 66.9
#21 of 39$042.86s
  • Thinking longer helps: 0.5 points higher on object detection at high effort for 1.2x the latency.
  • Thinking longer helps: 3.2 points higher on counting at high effort for 3.5x the latency.
  • Thinking longer helps: 2.1 points higher on identification at high effort for 2.6x the latency.
  • Thinking longer does not help: 0.7 points lower on ocr at high effort for 1.1x the latency.
  • Thinking longer helps: 2.8 points higher on data extraction at high effort for 2.7x the latency.
  • Thinking longer helps: 4 points higher on reasoning at high effort for 4x the latency.

Price vs. performance

Score vs. cost

Overall benchmark score against estimated cost per sample, on a log scale. Upper-left is the sweet spot: high quality at low cost.

52 models on the current benchmark · scores and efficiency pooled across all six tasks at low effort · Qwen3.8 27B highlighted

Qwen3.8 27B scores are the mean of 3 runs per task at both low and high effort · Methodology

View all Vision Evals →

Self-hosted benchmarks

3 quantizations of Qwen3.8 27B, served with vLLM from the published weights and scored on the same tasks as the hosted models. Expand a row for the GPUs it was measured on.

Self-hosted rows run with thinking on, the same setting as the hosted frontier models. Rows marked with a run count are the mean of three runs per task under the benchmark protocol; the rest are single runs awaiting their re-run. Some hosted open-weight rows still run without thinking, so a self-hosted quant can score above its own hosted API. Quantization still costs a little precision, and scores vary between runs.

QuantizationWeightsOverall scoreDetection mAP50Single-stream tok/s
FP83 runs
30.9 GB
73.9%
65.2%74.0
BF163 runs
55.6 GB
74.6%
64.4%47.1
AWQ INT43 runsRanked
21.0 GB
74.7%
65.7%91.2

Qwen3.8 27B Pricing

Qwen3.8 27B costs $0.420 per 1M input tokens and $3.00 per 1M output tokens.

Input$0.420 / 1M tokens
Output$3.00 / 1M tokens
Cached input$0.085 / 1M tokens

Pricing updated Sep 6, 2026

Alternatives to Qwen3.8 27B

Other models worth comparing for similar use cases.

Qwen
Qwen3.8 Flash
Qwen3.8-Flash is a multimodal mixture-of-experts model from the Qwen team at Alibaba, and the production counterpart of the open-weight Qwen3.8-Flash-Next preview that introduces the architecture intended for the Qwen4 family. The main model carries 125 billion parameters alongside a separate 51 billion parameter N-gram embedding table, while activating roughly 6 billion parameters per token. It accepts interleaved image and text input and returns text, handling 262,144 tokens of context natively with extension to 1,000,000 tokens using YaRN. The production configuration runs with the 1M context window by default and adds built-in tool support.Four architectural changes separate it from earlier Qwen releases: hybrid attention that pairs Gated DeltaNet for history compression with Qwen Sparse Attention, which uses a lightweight indexer to select micro-blocks of context; a Gated Residual scheme; N-gram embeddings; and training with the Muon optimizer, refined around orthogonalization accuracy and the division of parameters between Muon and AdamW. Qwen reports training cost around one ninth that of Qwen3.7-Plus, with QSA attention kernels measured up to 7.6 times faster in prefill and 4.9 times faster in decode at 1M-token context. Reported scores include 58.7 on DeepSWE 1.1, 62.5 on SWE-bench Pro, 84.5 on AndroidWorld and 95.7 on MathVision.
Qwen
Qwen3.6 27B
Qwen3.6-27B is a dense 27-billion-parameter multimodal language model developed by Alibaba's Qwen team and released on April 22, 2026. It combines a causal language model with an integrated vision encoder, supporting text, image, and video inputs natively. The architecture employs a hybrid attention design that interleaves Gated DeltaNet linear attention blocks with standard Gated Attention layers across 64 transformer layers with a hidden dimension of 5,120. Unlike Mixture-of-Experts variants in the Qwen3.6 family, all 27 billion parameters are active on every inference pass, simplifying deployment and quantization. The model supports a native context window of 262,144 tokens, extensible to approximately 1,010,000 tokens via YaRN scaling. It is released under the Apache 2.0 license with open weights available on Hugging Face and ModelScope.The model introduces two notable capabilities relative to prior Qwen releases: enhanced agentic coding support covering frontend workflows and repository-level reasoning, and a Thinking Preservation mechanism that retains chain-of-thought reasoning context across multi-turn conversation history to reduce redundant token generation in iterative agent sessions. It supports both a thinking mode for multi-step reasoning and a non-thinking mode for faster responses within a single model. On coding benchmarks, Qwen reports scores of 77.2 on SWE-bench Verified, 59.3 on Terminal-Bench 2.0, and 48.2 on SkillsBench. Vision capabilities include chart understanding (CharXiv RQ: 78.4), OCR (CC-OCR: 81.2), and video understanding (VideoMME with subtitles: 87.7).
Google
Gemma 4 31B
Gemma 4 31B is the largest dense model in Google's Gemma 4 family, built from the same research as Gemini 3 and released as open weights under the Apache 2.0 license. It supports a 256K token context window with text and image input, configurable thinking mode for step-by-step reasoning, and multilingual support across 140+ languages. The unquantized model fits on a single 80GB GPU.For vision tasks, Gemma 4 31B supports image understanding with variable aspect ratios and resolutions, and can output structured bounding boxes for UI element detection, making it useful for document parsing and UI understanding. Compared to Gemma 3, it delivers stronger reasoning and multimodal performance. It is part of a four-size family alongside the 26B A4B MoE variant and two on-device models (E2B, E4B), with the 31B dense variant optimized for output quality and fine-tuning over inference speed.
Z.ai
GLM 5.3 Flash
GLM-5.3-Flash is the first natively multimodal model in Z.ai's GLM-5 series, a mixture-of-experts transformer with roughly 320 billion total parameters and 18 billion activated per token. It routes each token through 8 of 288 experts across 45 language layers that interleave KDA linear attention with sparse multi-head latent attention, and pairs them with a 24-layer vision encoder that handles image and video input. The checkpoint declares a maximum context length of 1,048,576 tokens, ships in native FP8, and includes a multi-token prediction draft layer for speculative decoding. Z.ai reports that the hybrid attention design reduces attention computation by 3.01x and KV cache size by 4.44x relative to GLM-5.3.The model starts from a newly trained base built on a 30 trillion token multimodal pre-training corpus and adopts Manifold-Constrained Hyper-Connections to improve scaling efficiency. Vision is integrated into the coding and agent loop, so the model can inspect interfaces, rendered output, and images while operating across code, browsers, and graphical user interfaces. Z.ai reports scores of 84.3 on Terminal-Bench 2.1, 63.4 on DeepSWE 1.1, 55.3 on Humanity's Last Exam with tools, and 48.8 on AutomationBench, and the model exposes low, high, and max thinking modes.
Google
Gemini 3.8 Flash
Gemini 3.8 Flash is a natively multimodal reasoning model in Google's Gemini 3 series, positioned as the speed and cost oriented Flash tier while targeting long-horizon software engineering, autonomous agents, and enterprise workflows. It accepts text, images, video, audio, and PDF documents in a single request and returns text, with an input limit of 1,048,576 tokens and an output limit of 65,536 tokens. Thinking is configurable at low, medium, and high levels, and the model supports function calling, code execution, structured outputs, context caching, search and Maps grounding, file search, and computer use in preview. Image generation, audio generation, and the Live API are not supported.On vision oriented evaluations the model reports 86.2% on CharXiv Reasoning for chart and figure synthesis and 87.8% on LVBench for long video understanding in agentic mode, alongside 90.8% on Terminal-Bench 2.1 and 61.6% on SWE-Bench Pro for coding. Following Gemini API conventions, it can localize objects by emitting bounding boxes as [ymin, xmin, ymax, xmax] integers normalized to a 0 to 1000 range, which supports prompt driven detection and grounding in addition to captioning, document parsing, and visual question answering. The knowledge cutoff is March 2026, though coverage in some domains reflects the January 2025 cutoff shared across the Gemini 3 family.
Anthropic
Claude Sonnet 5
Claude Sonnet 5 is a mid-tier large language model from Anthropic, released on June 30, 2026, as the latest model in the Sonnet series and a direct successor to Claude Sonnet 4.6. It is a hybrid reasoning model designed primarily for agentic workflows, software coding, and professional tasks. The model features a 1 million token context window, a 128k maximum output token limit, and runs adaptive thinking by default, giving API users fine-grained control over reasoning effort across five levels (low, medium, high, max, and extra-high). It uses an updated tokenizer shared with Opus 4.7 and later models, which produces approximately 30% more tokens for equivalent text compared to earlier Claude models. On benchmarks, Sonnet 5 scores 63.2% on agentic coding and 81.2% on OSWorld, narrowing the gap with Opus 4.8 while remaining at Sonnet-tier pricing.The model supports text and image input with text output, and accepts tools including browsers and terminals for autonomous multi-step task execution. Anthropic's safety evaluations report that Sonnet 5 shows a lower rate of undesirable behaviors than Sonnet 4.6 and is generally safer in agentic contexts, with improved resistance to prompt injection and reduced sycophancy. Cybersecurity safeguards equivalent to those on Opus 4.7 and 4.8 are active, though Anthropic notes the model was not deliberately trained on cybersecurity tasks. The model is proprietary and API-only, with no open weights.

Deploy Qwen3.8 27B with an API

Qwen3.8 27B runs as a hosted REST endpoint through Roboflow Workflows. Pick a task, then hand the prompt to your coding agent or copy the code. Deploying the workflow into a free Roboflow workspace replaces the your-workspace and YOUR_API_KEY placeholders with your own.

Connect your agent to Roboflow (once)

Add the Roboflow MCP server

claude mcp add --transport http roboflow https://mcp.roboflow.com/mcp

Run /mcp and authorize Roboflow in your browser when the OAuth flow opens.

Start a new Claude Code session so the MCP loads, then paste the prompt below (it works the same in any agent).

Deploy this workflow to your Roboflow workspace to use it.

Integrate the Roboflow "Qwen3.8 27B" workflow into my app.

- Endpoint: POST https://serverless.roboflow.com/<your-workspace>/workflows/qwen3-8-27b-captioning
- Auth: send my Roboflow API key as `api_key` in the request body, read from the ROBOFLOW_API_KEY env var (never hardcode).
- Body: { "api_key": ..., "inputs": { `image`: { type: "url" | "base64", value } } }.
- Billing: this workflow needs no provider API key — inference runs on my Roboflow credits. A BYO provider key can be added to the model step in the Roboflow workflow editor later.

With the Roboflow MCP connected, call `workflows_get` on "qwen3-8-27b-captioning" to read the exact input schema (the source of truth), then `workflows_run` on a sample image to confirm the output shape before writing code (the MCP is authenticated, so this needs no key). Without the MCP, use the contract above.

Before running the app, set up these keys so it does not error at runtime:
- `ROBOFLOW_API_KEY` (sent as `api_key`) from https://app.roboflow.com/settings/api
Create a .gitignore'd .env with these variables, using placeholder values for any I haven't given you. Then pause and tell me directly, in your reply: the full path to the .env file, exactly which keys I need to paste in, and the link to get each one. Wait for me to confirm I've added them before you run anything. Do not run the app until I confirm.

Then add the integration to my codebase: match my project's language, framework, and conventions; read every key from environment variables (never hardcode); add basic error handling; and include a small runnable example. If you can't tell what language my project uses, ask me.
Installpip install inference-sdk

Deploy this workflow to your Roboflow workspace to use it.

# Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
# 1. Import the library
from inference_sdk import InferenceHTTPClient

# 2. Connect to your workflow
client = InferenceHTTPClient(
  api_url="https://serverless.roboflow.com",
  api_key="YOUR_API_KEY"
)

# 3. Run your workflow on an image
result = client.run_workflow(
  workspace_name="your-workspace",
  workflow_id="qwen3-8-27b-captioning",
  images={
    "image": "YOUR_IMAGE.jpg"  # Path to your image file
  },
  use_cache=True  # cache workflow definition for 15 minutes
)

# 4. Get your results
print(result)

Deploy this workflow to your Roboflow workspace to use it.

// Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
const response = await fetch('https://serverless.roboflow.com/your-workspace/workflows/qwen3-8-27b-captioning', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    api_key: 'YOUR_API_KEY',
    inputs: {
      "image": {"type": "url", "value": "IMAGE_URL"}
    }
  })
});

const result = await response.json();
console.log(result);

Deploy this workflow to your Roboflow workspace to use it.

# Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
curl --location 'https://serverless.roboflow.com/your-workspace/workflows/qwen3-8-27b-captioning' \
--header 'Content-Type: application/json' \
--data '{
  "api_key": "YOUR_API_KEY",
  "inputs": {
    "image": {"type": "url", "value": "IMAGE_URL"}
  }
}'

Qwen3.8 27B License

Apache-2.0 · Permissive license

Qwen3.8 27B is released under Apache-2.0, a permissive license. The Qwen3.8 27B license lets you run, fine-tune, and redistribute the model in commercial products with no obligation to open-source related code changes, so no separate commercial license is required.

Commercial use
Permitted. Because Apache-2.0 is permissive, Qwen3.8 27B can ship inside paid products and internal systems with no commercial license and no revenue threshold.
Modification
Permitted. Fine-tuning, quantizing, and distilling are all allowed, and your code changes can stay closed. Files you change must be marked as changed.
Redistribution
Permitted with attribution. Ship the Apache-2.0 license text and any NOTICE file alongside the weights or derived code.

Apache-2.0 grants an express patent license that terminates if you bring a patent claim over the work, and it disclaims warranties. Validate Qwen3.8 27B on your own data before you depend on it in production.

Read the full Apache 2.0 license ↗

Do I need a commercial license for Qwen3.8 27B?

This is the straightforward case: a permissive license is the best technical solution and you are free to deploy Qwen3.8 27B commercially without open-sourcing your own code.

Do not hesitate to reach out with questions for your commercial project — our team will help you start solving business problems on the first call. See Roboflow commercial licensing for the models included in each plan.

Talk to sales

This model is released under the Apache License 2.0, a permissive open-source license that allows commercial use, modification, distribution, and patent use.

Yes. Under the terms of the Apache 2.0 license, you can freely use this model for commercial purposes, including in proprietary products. You must retain the copyright notice and disclaimers when redistributing.

License information is provided as a guide and is not legal advice.

Frequently Asked Questions About Qwen3.8 27B Vision

Yes. Qwen3.8 27B accepts image input and handles OCR, data extraction, object counting, identification, visual reasoning, and object detection. On Roboflow's Vision Evals its strongest task is Object Detection at 65.7% (#8 of 53 at low effort). You can test it on your own image in the demo above.

Yes, and it is one of the model's strongest vision skills: its transcriptions match the ground truth 92.2% on average (#11 of 53 at low effort) on Vision Evals OCR. Pulling specific fields out of documents (data extraction) scores 78%.

It's serviceable. On Vision Evals, Qwen3.8 27B scores 65.7% mAP@50 on object detection (#8 of 53 at low effort) and 64.9% judge-graded accuracy on object counting.

On our benchmark's task mix, Qwen3.8 27B averages $0.0035 per sample at $0.42 per 1M input and $3.00 per 1M output tokens (#13 of 53 on cost), with an average speed of 18.0s per sample across the benchmark. Actual cost depends on your images and prompts.

On the overall Vision Evals ranking, Qwen3.8 27B sits #17 of 53 at 74.7%, just behind GPT-5.5 (74.8%) and just ahead of GPT-5.6 Luna (73.8%). See the full side-by-side: Qwen3.8 27B vs GPT-5.5.