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

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.