Dashscope provides access to Alibaba Cloud’s Qwen family of large language models. Qwen models are multilingual, efficient, and offer strong performance across various tasks including reasoning, coding, and creative writing. We recommend experimenting to find the best-suited model for your use-case. Here are some general recommendations:Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
qwen-plusis good for most general use-cases with balanced performance and cost.qwen-maxoffers the highest quality for complex reasoning tasks.qwen-turboprovides faster inference for simpler tasks.
Authentication
Set yourDASHSCOPE_API_KEY environment variable. You can get one from Alibaba Cloud here.
Base URL
Dashscope provides different base URLs depending on your region:- International users:
https://dashscope-intl.aliyuncs.com/compatible-mode/v1 - China mainland users:
https://dashscope.aliyuncs.com/compatible-mode/v1
If you are located in mainland China, you may need to override
base_url
Example
UseDashScope with your Agent:
Thinking Process
DashScope models support enabling thinking processes for enhanced reasoning: View more examples here.
Params
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "qwen-plus" | The id of the Dashscope Qwen model to use |
name | str | "Qwen" | The name of the model |
provider | str | "Dashscope" | The provider of the model |
api_key | Optional[str] | None | The Dashscope API key for authentication |
base_url | str | "https://dashscope-intl.aliyuncs.com/compatible-mode/v1" | The base URL for the Dashscope API |
enable_thinking | Optional[bool] | None | Enable thinking process for enhanced reasoning |
include_thoughts | Optional[bool] | None | Include thinking process in the response |
DashScope also supports the params of OpenAI.