Qwen 3.8 27B API

alibaba/qwen3.8-27b
Qwen3.8-27B is Alibaba Cloud's newest open-weight vision-language model, accepting text, image, and video input with per-request tunable reasoning for coding, research, and long-running agent tasks.
Context
256K tokens
Input
$0.61893 / 1M tokens
Output
$4.40128 / 1M tokens
Released
Aug 14, 2026

Overview

What Is Qwen3.8-27B API?

Qwen3.8-27B is Alibaba Cloud's latest open-weight, dense vision-language model. It accepts text, image, and video input and is built for coding, professional workflows, research, multimodal interaction, and long-running agent tasks, with reasoning effort that can be tuned per request.

Technical Reference

Specification Details
Developer Alibaba Cloud (Qwen)
Model ID alibaba/qwen3.8-27b
Release Date August 14, 2026
Architecture Dense, open-weight vision-language model
Context Window 262,144 tokens (~256K)
Max Output Tokens 131,072
Modalities (input) Text · Image · Video
Modalities (output) Text
Capabilities Vision, tunable reasoning, streaming, structured output

What Qwen3.8-27B Brings to the Table

Native multimodal input

Text, images, and video are all first-class inputs, so the model can be used for document QA, visual analysis, and video-aware tasks without bolting on a separate vision pipeline.

Tunable reasoning per request

Reasoning effort can be adjusted low, medium, or high depending on the task — fast and cheap for simple queries, deeper and slower when a problem needs more careful multi-step thinking.

Structured output and streaming

Responses can be returned as strict structured JSON or streamed token-by-token, making the model workable both for user-facing chat interfaces and for backend pipelines that need machine-readable output.

API Pricing

  • Input: $0.585 per 1M tokens
  • Output: $4.16 per 1M tokens

Where Qwen3.8-27B Makes the Most Sense

Multimodal document and video analysis

Native text, image, and video input means it can be used directly on screenshots, scanned documents, or video frames without a separate vision model in front of it.

Coding and research workflows

Tunable reasoning effort lets you dial up depth for harder coding or research tasks, and dial it back down for quick, low-latency queries.

Long-running agent tasks

Built with agentic workflows in mind, making it a reasonable fit for multi-step tasks that call tools and reason over multimodal context along the way.

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 100%
  • Availability (24h): 94.0%
  • Error rate (24h): 6.0%
  • End-to-end latency (24h median): 16.7s
  • Throughput (24h median): 78.4 tok/s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

Qwen3.8 27B is documented as suited to coding and software engineering tasks, including repository-level code generation, refactoring, bug fixing, and multi-file edits.

It is also documented as suited to long-horizon agentic work, such as autonomous planning, multi-step task execution, and tool orchestration across long sessions.

The model is documented for multimodal vision-language use, including image and video understanding, OCR, visual question answering, and chart, diagram, and document understanding.

It is also documented for complex problem solving and professional work, including multi-step reasoning, mathematical problem solving, research, and decision support.

How to use Qwen 3.8 27B API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to alibaba/qwen3.8-27b.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "alibaba/qwen3.8-27b",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "alibaba/qwen3.8-27b",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"alibaba/qwen3.8-27b","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Qwen 3.8 27B API Pricing

TypePrice
Input
$0.61893 / 1M tokens
Output
$4.40128 / 1M tokens

Qwen 3.8 27B Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
33.9
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Coding
68.1
Composite score across standardised coding evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Terminal-Bench
73.0
Autonomous shell/terminal task completionSourceSeptember 22, 2026
LiveCodeBench
90.3
Contamination-free competitive programming problemsSourceSeptember 22, 2026
OSWorld
84.3
Computer-use across real desktop applicationsSourceSeptember 22, 2026
GPQA Diamond
89.2
Google-proof graduate science questions (hardest subset)SourceSeptember 22, 2026
Humanity's Last Exam
30.8
Expert-level questions across many domainsSourceSeptember 22, 2026

Qwen 3.8 27B vs other models

ModelInputOutputContextBest for
Qwen 3.8 27B
This page
$0.61893 / 1M tokens
$4.40128 / 1M tokens
256K tokens
Multimodal + agents
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Qwen 3.8 27B has a 262,144 tokens context window and can return up to 131,072 tokens.

Qwen 3.8 27B takes image, text, video as input and returns text.

Use alibaba/qwen3.8-27b as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

Qwen 3.8 27B became available on August 14, 2026.

Qwen 3.8 27B is priced at input $0.61893 / 1M tokens, output $4.40128 / 1M tokens.

Yes, Qwen 3.8 27B can stream responses as they are generated.

Yes, Qwen 3.8 27B accepts image input alongside text.

Qwen 3.8 27B was built by Alibaba Cloud.

It is an open-weight dense vision-language chat model from Alibaba Cloud, designed for coding, research, multimodal interaction and long-running agent tasks.

Yes, it accepts image and video inputs in addition to text, and produces text output.

Yes, it includes a reasoning capability that can be tuned per request.

Yes, it supports structured output generation.

Start building with Qwen 3.8 27B

Get API Key
1000+ models, one API.