Qwen Flash
Qwen Flash is a text-input model by Qwen, available through the AgentSky API as qwen/qwen-flash at $0.055 per million input tokens and $0.44 per million output tokens, with a 998K context window.
A speed- and cost-oriented model with switchable thinking mode.
Get an API key
Send a request
curl https://gateway.agentsky.dev/v1/chat/completions \ -H "authorization: Bearer $AGENTSKY_API_KEY" \ -H "content-type: application/json" \ -d '{"model":"qwen/qwen-flash","messages":[{"role":"user","content":"In one sentence, what can you help me with?"}],"max_tokens":128}'Run it here, no terminal needed
Or hand it to your agent
Use Qwen Flash through AgentSky. Model id: qwen/qwen-flash OpenAI-compatible base URL: https://gateway.agentsky.dev/v1 · Anthropic base URL: https://gateway.agentsky.dev Docs: https://agentsky.dev/models/qwen/qwen-flash.md Key: <your AgentSky API key>
Pricing
USD per million tokens, using your plan when signed in. Each request uses the tier matching its full input context, including cached input; output tokens do not choose the tier.
| Input context (tokens) | Cache mode | Thinking | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|
| Up to 256,000 | Implicit | Standard | Price: $0.055 | Price: $0.44 | Price: $0.011 | Price: $0.055 |
| Up to 256,000 | Explicit | Standard | Price: $0.055 | Price: $0.44 | Price: $0.0055 | Price: $0.06875 |
| 256,001–1,000,000 | Implicit | Standard | Price: $0.275 | Price: $2.20 | Price: $0.055 | Price: $0.275 |
| 256,001–1,000,000 | Explicit | Standard | Price: $0.275 | Price: $2.20 | Price: $0.0275 | Price: $0.34375 |
Use it
Point your client at the gateway and pass this model id. Nothing else changes.
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-flash",
messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(completion.usage.cost); // USD, in the response