# Qwen3.8 27B API

Alibaba's dense 27B generalist with a 262K context, built for everyday coding and agent work at a low price.

Model id: `qwen/qwen3.8-27b`. Page: https://openscale.so/models/qwen3.8-27b

## Price per 1M tokens (USD)

| Mode | Input | Cached input | Output |
| --- | --- | --- | --- |
| Standard | $0.04 | $0.01 | $1.25 |

That is 5x cheaper than the market price of $0.21 input and $2.55 output.

## Specs

- Context length: 262,144 tokens
- Max output: 131,072 tokens per request
- Rate limits: 100 requests and 10,000,000 tokens per minute per model on each account, shared by its API keys
- 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

| Model id | Version | Released | Behavior |
| --- | --- | --- | --- |
| `qwen/qwen3.8-27b` | 0805 | 5 Aug 2026 | Moves to each new tested version |

## Quick start

### curl

```bash
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)

```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)

```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"))
```

## Set up a coding agent

- [Claude Code](https://openscale.so/setup/claude-code.md)
- [Codex](https://openscale.so/setup/codex.md)
- [OpenCode](https://openscale.so/setup/opencode.md)
- [OpenClaw](https://openscale.so/setup/openclaw.md)
- [Cline](https://openscale.so/setup/cline.md)
- [GitHub Copilot](https://openscale.so/setup/copilot.md)
- [DeepSeek Harness](https://openscale.so/setup/deepseek-harness.md)
- [Hermes](https://openscale.so/setup/hermes.md)
- [Kilo Code](https://openscale.so/setup/kilo-code.md)
- [Pi](https://openscale.so/setup/pi.md)
- [Zed](https://openscale.so/setup/zed.md)
- [Factory Droid](https://openscale.so/setup/droid.md)

API reference: https://openscale.so/docs. Live model catalog: https://api.openscale.so/v1/models.

## FAQ

### 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.
