Qwen Provider¶
The default and recommended provider for Dial Code.
Quick Start¶
On first run, your browser opens for Qwen OAuth authentication.
Free Tier¶
Qwen offers a generous free tier:
| Limit | Value |
|---|---|
| Requests per day | 2,000 |
| Requests per minute | 60 |
| Token limit | None (per-request) |
| Cost | Free |
Authentication¶
OAuth Flow¶
- Run
dial - Browser opens to qwen.ai
- Log in or create account
- Authorize Dial Code
- Credentials cached locally
Re-authenticate¶
Clear Credentials¶
Available Models¶
| Model | Description |
|---|---|
qwen3-coder |
Code-focused model |
qwen3-coder-plus |
Enhanced code model |
qwen-vl-max-latest |
Vision-capable model |
Set default model:
Vision Support¶
Qwen supports vision models for image analysis:
Configure auto-switching:
Options:
| Mode | Behavior |
|---|---|
once |
Switch for one query, then revert |
session |
Switch for entire session |
persist |
Stay with vision model |
Regional Endpoints¶
International (Default)¶
Automatic - no configuration needed.
China (Mainland)¶
Use Alibaba Cloud Bailian:
export OPENAI_API_KEY="your_key"
export OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
export OPENAI_MODEL="qwen3-coder-plus"
Or ModelScope (free tier):
export OPENAI_API_KEY="your_key"
export OPENAI_BASE_URL="https://api-inference.modelscope.cn/v1"
export OPENAI_MODEL="Qwen/Qwen3-Coder-480B-A35B-Instruct"
Troubleshooting¶
"Rate Limited"¶
- Free tier: 60 requests/minute
- Wait briefly and retry
- Heavy use may trigger limits
"Authentication Failed"¶
"Model Fallback"¶
During high load, the service may use fallback models. This is automatic and maintains service quality.
Next Steps¶
- OpenAI Provider - Alternative provider
- Configuration - Customize settings