Skip to main content
Getting Started

Build with QwenCloud

AI models for text, vision, speech, and image & video generation.

Developer quickstart

Make your first API request in minutes. Seamlessly integrate with any OpenAI SDK or client.

Get started →
import os
from openai import OpenAI

client = OpenAI(
  api_key=os.getenv("DASHSCOPE_API_KEY"),
  base_url="https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1"
)
completion = client.chat.completions.create(
  model="qwen3.8-max",
  messages=[{"role": "user", "content": "Summarize the benefits of solar energy in three bullet points."}]
)
print(completion.choices[0].message.content)
Examples use the Singapore Base URL and an API key created in Singapore. To call another region, use that region's Base URL and an API key created there. Switching the region in the console does not change your code. See Regions and endpoints.

Models

Start building


Pricing | API Reference | Free Quota