How do I use Qwen 3.7 Flash in OpenCode or Cline?
Qwen 3.7 Flash is on every Standard Compute plan from $19 a month as qwen/qwen3.7-flash, so OpenCode, Cline and Kilo Code use it with one key and no Alibaba Cloud account; new requests get HTTP 402 when the plan's compute budget reaches 100%.
| Model | Alibaba's fast Qwen 3.7 vision-language model, aimed at multimodal agents, visual coding and computer use. |
|---|---|
| Model ID | qwen/qwen3.7-flashShort form qwen3.7-flash also works |
| Base URL | https://api.stdcmpt.com/v1 |
| Context | 1M tokensA request here takes up to about 850K input and 50K output tokens |
| Input | Text, images and video |
| Reasoning | minimal, low, medium or high |
Copy a working config
Paste the config for your agent. Kilo Code also needs the context size so it knows when to compact.
{
"$schema": "https://opencode.ai/config.json",
"model": "standardcompute/qwen/qwen3.7-flash",
"provider": {
"standardcompute": {
"npm": "@ai-sdk/openai-compatible",
"name": "Standard Compute",
"options": {
"baseURL": "https://api.stdcmpt.com/v1",
"apiKey": "{env:STANDARDCOMPUTE_API_KEY}"
},
"models": {
"qwen/qwen3.7-flash": { "name": "Qwen 3.7 Flash" },
"standardcompute": { "name": "Smart routing" }
}
}
}
}
Replace YOUR_API_KEY with a key from the dashboard. This config reads your key from STANDARDCOMPUTE_API_KEY; export it with a key from the dashboard. Full setup: OpenCode, Cline, Aider and other tools, Kilo Code.
What it costs
| Per 1M tokens | Prompt up to 32K | 32K to 256K | 256K to 1M |
|---|---|---|---|
| Input | $0.03 | $0.10 | $0.20 |
| Output | $0.13 | $0.40 | $0.80 |
Alibaba Cloud Model Studio, international (Singapore) deployment, the same with thinking on or off. Source: Alibaba Cloud Model Studio pricing, checked October 13, 2026.
Coding agents send prompts far past 32K, so the middle and right columns are what an agent session pays. Even there, a Flash-only month rarely needs a plan; a plan fits when Flash takes the volume next to a stronger model.
What works differently here
- Qwen 3.8 Flash is newer and lists at one rate across its whole context ($0.15 / $0.47). Both read images; only 3.7 Flash takes video.
- Alibaba's prices vary by deployment region. The table shows the international one; this gateway does not ask you to pick a region.
Other ways to run Qwen 3.7 Flash
| Alibaba Model StudioPay per token | First-party, with tiered rates by prompt length and region. |
|---|---|
| OpenRouterPay per token | Served by Alibaba, with one account for other vendors. |
| Standard ComputeMonthly plan | 3.7 Flash next to Qwen 3.7 Plus, the Qwen 3.8 line and other vendors on one key. |
FAQ
Why did my Qwen 3.7 Flash bill exceed the headline rate?
The lowest rate covers prompts up to 32K tokens. Longer prompts bill at the higher tiers, and coding agents resend a growing context every step.
Do I need an Alibaba Cloud account?
No. One Standard Compute key covers it, without an Alibaba Cloud sign-up, region choice or top-up.
Sources: Alibaba Cloud Model Studio pricing; OpenRouter: Qwen3.7 Flash
Create your key
Sign in, create a key in the dashboard and paste it into the config above.