Qwen3.8 27B API

5x cheaper

Alibaba's dense 27B generalist with a 262K context, built for everyday coding and agent work at a low price. $0.04 input, $0.01 cached input and $1.25 output per 1M tokens, with a 262,144 tokens context.

Input / 1M
$0.04market $0.21
Cached input / 1M
$0.01market $0.04
Output / 1M
$1.25market $2.55
Context
262Ktokens
Same price around the clock. On a plan? Forge gives you more usage for the same money.Compare plans

Qwen3.8 27B price per 1M tokens

Qwen3.8 27B price in USD per 1M tokens
ModeInputCached inputOutput
Standard$0.04$0.01$1.25

Market price is $0.21 input, $0.04 cached input and $2.55 output per 1M tokens.

Prices are USD per 1M tokens. Cached input is a prompt prefix the model has seen before, which agents resend on every turn. You pay only for the tokens you use. Compare it with every model on OpenScale.

Specs

Qwen3.8 27B specs
SpecValue
Model idqwen/qwen3.8-27b
DeveloperAlibaba
Context length262,144 tokens
Max output131,072 tokens per request
Rate limit100 requests and 10M tokens per minute per account
  • Text and image input, text output.
  • Tool calling.
  • Structured outputs with a JSON schema, and JSON mode.
  • Reasoning you can turn on or off; the reasoning is returned as reasoning. Reasoning effort: low, medium, xhigh.

Versions

qwen/qwen3.8-27b always serves the latest version we have tested, now 0805. Pinned ids never change. Every version has the same price.

Qwen3.8 27B versions
Model idVersionReleasedBehavior
qwen/qwen3.8-27b08055 Aug 2026Moves to each new version

Call Qwen3.8 27B from your code

Use any OpenAI SDK with the base URL https://api.openscale.so/v1, or any Anthropic SDK with https://api.openscale.so/anthropic. Set your API key as OPENSCALE_API_KEY.

curl
curl https://api.openscale.so/v1/chat/completions \
  -H "Authorization: Bearer $OPENSCALE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen3.8-27b",
    "messages": [{"role": "user", "content": "Explain what a token is in one sentence."}]
  }'
OpenAI SDK (Python)
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.openscale.so/v1",
    api_key=os.environ["OPENSCALE_API_KEY"],
)

response = client.chat.completions.create(
    model="qwen/qwen3.8-27b",
    messages=[{"role": "user", "content": "Explain what a token is in one sentence."}],
)
print(response.choices[0].message.content)
Anthropic SDK (Python)
import os
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.openscale.so/anthropic",
    api_key=os.environ["OPENSCALE_API_KEY"],
)

message = client.messages.create(
    model="qwen/qwen3.8-27b",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Explain what a token is in one sentence."}],
)
print(next(block.text for block in message.content if block.type == "text"))

Every parameter, streaming and errors are in the API reference.

Use Qwen3.8 27B in your coding agent

Each guide is a tested setup that keeps your existing configuration. Select qwen/qwen3.8-27b as the model.

Or pick your agent and copy one setup prompt on the agent setup page.

FAQs

How much does the Qwen3.8 27B API cost?

$0.04 per 1M input tokens, $0.01 per 1M cached input tokens and $1.25 per 1M output tokens. That is 5x cheaper than the market price of $0.21 input and $2.55 output. You pay only for the tokens you use, from prepaid credit.

Is the Qwen3.8 27B API OpenAI compatible?

Yes. Point any OpenAI SDK at https://api.openscale.so/v1 and use the model id qwen/qwen3.8-27b, with Chat Completions or Responses. Anthropic SDKs work too, at https://api.openscale.so/anthropic.

What is the context length of Qwen3.8 27B?

262,144 tokens in total, input and output together, with up to 131,072 tokens of output per request.

Can I use Qwen3.8 27B in a coding agent?

Yes. OpenScale has a tested setup for 12 coding agents, including Claude Code, Codex, OpenCode, OpenClaw. One API key works for every agent.

What are the rate limits for Qwen3.8 27B?

100 requests and 10,000,000 tokens per minute per model on each account, shared by its API keys. Need more? Email hello@openscale.so.

How do I start?

Create an account, add credit and create an API key. New accounts get free credit to try it.

Create an account to get an API key. Plain Markdown version of this page: /models/qwen3.8-27b.md.