Skip to main content
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:
  • qwen-plus is good for most general use-cases with balanced performance and cost.
  • qwen-max offers the highest quality for complex reasoning tasks.
  • qwen-turbo provides faster inference for simpler tasks.
Dashscope also supports advanced features like structured outputs and thinking processes for enhanced reasoning capabilities.

Authentication

Set your DASHSCOPE_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
By default, Agno uses the international endpoint.
If you are located in mainland China, you may need to override base_url

Example

Use DashScope with your Agent:

Thinking Process

DashScope models support enabling thinking processes for enhanced reasoning:
View more examples here.

Params

DashScope also supports the params of OpenAI.