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 13, 2026

Overall score#17 of 53
74.7%
Avg cost / sample#13 of 53
$0.0027
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.0027 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.214 per 1M input tokens and $2.55 per 1M output tokens.

Input$0.214 / 1M tokens
Output$2.55 / 1M tokens
Cached input$0.150 / 1M tokens

Pricing updated Sep 13, 2026

Alternatives to Qwen3.8 27B

Other models worth comparing for similar use cases.

Qwen
Qwen3.7 Flash
Qwen3.7 Flash is the low-latency, cost-oriented tier of Alibaba's Qwen3.7 series, a vision-language reasoning model that accepts interleaved text and image input and returns text. It is built as a hybrid thinking model: like the rest of the Qwen3.7, Qwen3.6, and Qwen3.5 families served through Alibaba Cloud Model Studio, it can either emit an explicit reasoning trace before answering or respond directly, with thinking behavior controlled by an enable_thinking switch that defaults to on for the Qwen3.7 generation. The model exposes a context window of roughly one million tokens and a maximum generation length of 65,536 tokens, which allows long multi-image sequences, long documents, and extended agent trajectories to be held in a single request.Functionally, Qwen3.7 Flash targets multimodal agent workloads rather than pure chat. Reported strengths include object recognition, spatial understanding, and perception of real-world scenes, alongside visual coding, search, and computer-use style interaction where the model reads screen content and reasons over interface state. Weights are not published; the model is a proprietary endpoint positioned below Qwen3.7 Plus and Qwen3.7 Max in the same series, and it supports function calling and tool use for agentic pipelines.
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.
Google
Gemini 3.7 Flash
Gemini 3.7 Flash is a proprietary multimodal model from Google, positioned in the Flash branch of the Gemini 3 series that trades some of the capacity of the larger Pro models for lower latency and lower cost per token. It accepts interleaved text and image input alongside other modalities handled by the Gemini family and returns text, and it continues the series pattern of exposing a configurable thinking budget so that reasoning effort can be scaled up for harder problems or reduced for high throughput extraction, routing and classification work. The model is announced roughly three weeks after Gemini 3.6 Flash, part of an unusually fast iteration cadence within the Flash line.Google reports gains concentrated in agentic coding and front end generation, citing a WebDev Arena Elo of 1588 for this release compared with 1538 for the preceding Flash model, and describes it as producing more functional layouts and more feature complete applications in fewer prompts. Weights are not published and the architecture, parameter count and training corpus are undisclosed, consistent with prior Gemini releases. Visual capability follows the Flash lineage, covering image and document understanding, chart and diagram interpretation, text recognition in images, and general visual question answering.
OpenAI
GPT-5.6 Terra
GPT-5.6 Terra is the mid-tier reasoning model in OpenAI's GPT-5.6 family, which also includes the flagship Sol and the lightweight Luna. Introduced in a limited preview on June 26, 2026, and made broadly available on July 9, 2026, Terra accepts text and image input and produces text output, supporting vision, function calling, tool use, and agentic workflows. It is designed as a balanced option for everyday professional and production workloads — including coding assistance, document analysis, customer support, and multi-step agent tasks — where both output quality and cost efficiency matter. OpenAI positions Terra as delivering performance competitive with GPT-5.5 at approximately half the price, with a context window of around 1,050,000 tokens. On Terminal-Bench 2.1, Terra scores 84.3%, matching Claude Fable 5 on that benchmark. Under OpenAI's Preparedness Framework, Terra is rated High for cybersecurity and biological capabilities, meaning it demonstrates meaningful capability in those domains without reaching the Critical threshold.GPT-5.6 introduces a new naming convention in which the generation number (5.6) is paired with a durable capability tier name (Sol, Terra, or Luna), allowing each tier to advance on its own schedule. Terra carries the API identifier gpt-5.6-terra and supports the same reasoning effort controls available across the family, including adjustable reasoning depth. The model includes prompt caching with explicit cache breakpoints and a 30-minute minimum cache life, with cache writes billed at 1.25x the uncached input rate and cache reads receiving a 90% discount. GPT-5.6 Terra is a proprietary, closed-weights model served through the OpenAI API, Codex, and ChatGPT.
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.0027 per sample at $0.21 per 1M input and $2.55 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.