Model providers
Using Alibaba Model Studio with OpenClaw
Browse more in Model providers.
All model providers guides →This guide shows you how to wire Alibaba Model Studio’s Wan video models into OpenClaw using the built-in `alibaba` provider. You will configure authentication, set a default video model, and verify that OpenClaw can see and use the Wan models.
By the end, your agents can call Alibaba Wan for text-to-video, image-to-video, and reference-to-video generation through OpenClaw.
Prerequisites
- ✓Access to Alibaba Model Studio / DashScope with a valid API key that can be used as MODELSTUDIO_API_KEY, DASHSCOPE_API_KEY, or QWEN_API_KEY.
- ✓An existing OpenClaw installation with the CLI available so you can run `openclaw onboard` and `openclaw models list`.
- ✓At least one Wan video model enabled in your Alibaba Model Studio account so calls to `alibaba/wan2.6-t2v` and related models succeed.
Steps
- 1
Choose which Alibaba credential you want OpenClaw to use
OpenClaw’s `alibaba` provider accepts three different auth keys and checks them in a specific order. Decide whether you want to authenticate with a Model Studio key, a DashScope key, or a Qwen key so you know which secret to provision in your environment.
textOpenClaw ships a bundled `alibaba` video-generation provider for Wan models on Alibaba Model Studio / DashScope. * Provider: `alibaba` * Preferred auth: `MODELSTUDIO_API_KEY` * Also accepted: `DASHSCOPE_API_KEY`, `QWEN_API_KEY` * API: DashScope / Model Studio async video generation - 2
Run OpenClaw onboarding with the Qwen standard API key flow
Use the onboarding command to register your Alibaba / DashScope credential with OpenClaw. The `qwen-standard-api-key` choice configures the shared DashScope credential that the `alibaba` provider can also use.
bashopenclaw onboard --auth-choice qwen-standard-api-key - 3
Set a default Wan video model for your agents
Configure your agent defaults so OpenClaw knows which Alibaba Wan model to call when you request video generation. This keeps your prompts clean and ensures all agents share the same primary video model unless you override it.
json{ agents: { defaults: { videoGenerationModel: { primary: "alibaba/wan2.6-t2v", }, }, }, } - 4
Verify the Alibaba provider and Wan models are available
List models for the `alibaba` provider to confirm that authentication works and the Wan models are registered. If this command returns the Wan models, your OpenClaw instance is ready to generate video through Alibaba Model Studio.
bashopenclaw models list --provider alibaba - 5
Pick the right Wan model mode for your use case
Alibaba Wan exposes several modes (text-to-video, image-to-video, and reference-to-video) under different model refs. Choose the specific model ref that matches how you plan to drive video generation from your agents.
textThe bundled `alibaba` provider currently registers: | Model ref | Mode | | --- | --- | | `alibaba/wan2.6-t2v` | Text-to-video | | `alibaba/wan2.6-i2v` | Image-to-video | | `alibaba/wan2.6-r2v` | Reference-to-video | | `alibaba/wan2.6-r2v-flash` | Reference-to-video (fast) | | `alibaba/wan2.7-r2v` | Reference-to-video | - 6
Respect current Wan video limits when designing prompts
Alibaba Wan has strict limits on video duration, number of inputs, and supported controls. Keep these in mind when building tools or prompts so you don’t send requests that the provider will reject.
text| Parameter | Limit | | --- | --- | | Output videos | Up to **1** per request | | Input images | Up to **1** | | Input videos | Up to **4** | | Duration | Up to **10 seconds** | | Supported controls | `size`, `aspectRatio`, `resolution`, `audio`, `watermark` | | Reference image/video | Remote `http(s)` URLs only | Reference image/video mode currently requires **remote http(s) URLs**. Local file paths are not supported for reference inputs.
Configuration
| Option | Description | Example |
|---|---|---|
| MODELSTUDIO_API_KEY | Preferred API key used by OpenClaw to authenticate the bundled `alibaba` provider against Alibaba Model Studio. | sk-modelstudio-abc123 |
| DASHSCOPE_API_KEY | DashScope API key that OpenClaw can use for the `alibaba` provider if MODELSTUDIO_API_KEY is not set. | sk-dashscope-xyz789 |
| QWEN_API_KEY | Qwen API key that OpenClaw can fall back to for Wan video generation when using the `alibaba` provider. | sk-qwen-456def |
Troubleshooting
openclaw models list --provider alibaba returns no models or the alibaba provider is missing
This usually means OpenClaw cannot authenticate to Alibaba Model Studio / DashScope. Set one of MODELSTUDIO_API_KEY, DASHSCOPE_API_KEY, or QWEN_API_KEY (in that priority order) and rerun the onboarding flow with the Qwen standard API key choice so the shared DashScope credential is configured.
openclaw onboard --auth-choice qwen-standard-api-keyReference-to-video requests fail when you pass a local file path as the reference
The Wan reference image/video mode only supports remote http(s) URLs. Upload your reference asset somewhere accessible over HTTPS and pass that URL instead of a local path.
Reference image/video mode currently requires **remote http(s) URLs**. Local file paths are not supported for reference inputs.Frequently asked questions
Powered by Mem0
Add persistent memory to OpenClaw
Official Mem0 plugin for OpenClaw keeps context across chats and tools. Smaller prompts, lower cost, better continuity for your agents.