# Qwen Plus

Canonical page: https://agentsky.dev/models/qwen/qwen-plus
JSON record: https://gateway.agentsky.dev/v1/models/qwen/qwen-plus

Qwen Plus is a text-input model by Qwen, available through the AgentSky API as qwen/qwen-plus at $0.44 per million input tokens and $1.32 per million output tokens, with a 998K context window.

The balanced tier, supporting function calling, structured output, and batch inference.

## Facts

- **Model id:** `qwen/qwen-plus`
- **Maker:** Qwen
- **Input modalities:** Text
- **Context:** 998K
- **Max output tokens:** 32,768
- **Aliases:** `qwen/qwen-plus`, `qwen-plus`

## Pricing

USD per million tokens on the default plan. Signed-in pages show your own plan's price; every response carries the cost of that call in `usage.cost`.

| Input context (tokens) | Cache mode | Thinking | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|
| Up to 256,000 | implicit | disabled | $0.44 | $1.32 | $0.088 | $0.44 |
| Up to 256,000 | implicit | enabled | $0.44 | $4.40 | $0.088 | $0.44 |
| Up to 256,000 | explicit | disabled | $0.44 | $1.32 | $0.044 | $0.55 |
| Up to 256,000 | explicit | enabled | $0.44 | $4.40 | $0.044 | $0.55 |
| Up to 1,000,000 | implicit | disabled | $1.32 | $3.96 | $0.264 | $1.32 |
| Up to 1,000,000 | implicit | enabled | $1.32 | $13.20 | $0.264 | $1.32 |
| Up to 1,000,000 | explicit | disabled | $1.32 | $3.96 | $0.132 | $1.65 |
| Up to 1,000,000 | explicit | enabled | $1.32 | $13.20 | $0.132 | $1.65 |

## Use it

Anthropic wire base URL: `https://gateway.agentsky.dev`. OpenAI wire base URL: `https://gateway.agentsky.dev/v1`. Authenticate with an AgentSky API key (`ast_…`) and pass the model id.

### OpenAI SDK

```js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://gateway.agentsky.dev/v1",
  apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});

const completion = await client.chat.completions.create({
  model: "qwen/qwen-plus",
  messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(completion.usage.cost); // USD, in the response
```

### Codex

```bash
export OPENAI_BASE_URL="https://gateway.agentsky.dev/v1"
export OPENAI_API_KEY="$AGENTSKY_API_KEY"

codex --model qwen/qwen-plus
```

### OpenCode

```js
// opencode.json — then switch models any time with /models
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "agentsky": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "AgentSky",
      "options": {
        "baseURL": "https://gateway.agentsky.dev/v1",
        "apiKey": "{env:AGENTSKY_API_KEY}"
      },
      "models": { "qwen/qwen-plus": {} }
    }
  }
}
```

## Questions

### What is Qwen Plus?

Qwen Plus is a model from Qwen. The balanced tier, supporting function calling, structured output, and batch inference.

### How much does Qwen Plus cost?

$0.44 / $1.32 per million tokens at the prices shown, for input and output respectively. The exact price of every call comes back in the response as usage.cost, so you never have to compute it.

### What is the context length of Qwen Plus?

998K tokens, and it writes up to 33K tokens in one reply. These are the limits listed for this model in the current AgentSky catalog.

### Which clients can call Qwen Plus?

Anything that speaks the OpenAI-compatible request format. Point the client's base URL at the gateway, use an AgentSky key, and pass qwen/qwen-plus as the model.

### How do I name Qwen Plus in a request?

The gateway accepts qwen/qwen-plus, qwen-plus. Any of them resolves to the same model, so an existing integration usually needs no change to its model string.

### Can Qwen Plus read images?

No image input is listed for this model. Its supported input types are text. For screenshots or photographs, choose a model that lists image input.

### What output can Qwen Plus produce?

The listed output types are text. This model returns text. Producing image, video or audio files requires a suitable tool or another model; it is not included in text generation.

### How should I plan a long prompt for Qwen Plus?

Plan your instructions, conversation history and source material around the 998K-token context limit, leaving room for the response. The listed response ceiling is 33K tokens. A larger window lets you supply more relevant material; it does not make unrelated content useful.

### What would 10,000 input tokens and 2,000 output tokens cost with Qwen Plus?

At the displayed input and output rates, the model-token subtotal is $0.00704. This example assumes uncached input and excludes additional pricing categories, tool calls and agent runtime. Actual usage determines the final charge.

### How is cached input priced for Qwen Plus?

The catalog lists $0.088 per million cache-read tokens. Cache writes are listed at $0.44 per million tokens. Repeating a prompt does not by itself guarantee a cache hit; only usage reported as cached receives that rate.

### Does the Qwen Plus token price cover an entire agent task?

No. The model price covers the model usage described above. A task can also incur tool and runtime charges, and several model calls may be needed to complete it. Compare total task usage when evaluating cost.

### How do I use Qwen Plus on AgentSky?

The composer above preselects Qwen Plus for a compatible agent. Enter a concrete task, select any tools or connectors it needs, and send. Sign in if prompted; paid execution requires available credits.
