Qwen / Alibaba DashScope (Model Studio) API keys

25 community-sourced Qwen / Alibaba DashScope (Model Studio) keys, re-checked against the API. Copy a key below, export it as DASHSCOPE_API_KEY, and send requests to https://dashscope.aliyuncs.com/compatible-mode/v1.

Keys

Using your Qwen / Alibaba DashScope (Model Studio) key

Export the key as DASHSCOPE_API_KEY, then call the API at https://dashscope.aliyuncs.com/compatible-mode/v1.

export DASHSCOPE_API_KEY="your-key-here"

curl

curl https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.8-max-prime",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Python (OpenAI SDK)

from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["DASHSCOPE_API_KEY"],
    base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
)

resp = client.chat.completions.create(
    model="qwen3.8-max-prime",
    messages=[{"role": "user", "content": "Say hello"}],
)
print(resp.choices[0].message.content)

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.DASHSCOPE_API_KEY,
  baseURL: "https://dashscope.aliyuncs.com/compatible-mode/v1",
});

const resp = await client.chat.completions.create({
  model: "qwen3.8-max-prime",
  messages: [{ role: "user", content: "Say hello" }],
});
console.log(resp.choices[0].message.content);

Latest Qwen / Alibaba DashScope (Model Studio) models

Key collections