


































@@ -6,21 +6,42 @@ read_when:
66 - You need Model Studio or DashScope API key setup for video generation
77---
889-OpenClaw ships a bundled `alibaba` video-generation provider for Wan models on
10-Alibaba Model Studio / DashScope.
11-12-- Provider: `alibaba`
13-- Preferred auth: `MODELSTUDIO_API_KEY`
14-- Also accepted: `DASHSCOPE_API_KEY`, `QWEN_API_KEY`
15-- API: DashScope / Model Studio async video generation
9+OpenClaw ships a bundled `alibaba` plugin that registers a video-generation provider for Wan models on Alibaba Model Studio (the international name for DashScope). The plugin is enabled by default; you only need to set an API key.
10+11+| Property | Value |
12+| ---------------- | ------------------------------------------------------------------------------- |
13+| Provider id | `alibaba` |
14+| Plugin | bundled, `enabledByDefault: true` |
15+| Auth env vars | `MODELSTUDIO_API_KEY` → `DASHSCOPE_API_KEY` → `QWEN_API_KEY` (first match wins) |
16+| Onboarding flag | `--auth-choice alibaba-model-studio-api-key` |
17+| Direct CLI flag | `--alibaba-model-studio-api-key <key>` |
18+| Default model | `alibaba/wan2.6-t2v` |
19+| Default base URL | `https://dashscope-intl.aliyuncs.com` |
16201721## Getting started
18221923<Steps>
2024<Step title="Set an API key">
25+Use onboarding to store the key against the `alibaba` provider:
26+27+```bash
28+openclaw onboard --auth-choice alibaba-model-studio-api-key
29+```
30+31+Or pass the key directly during install/onboarding:
32+2133```bash
22-openclaw onboard --auth-choice qwen-standard-api-key
34+openclaw onboard --alibaba-model-studio-api-key <your-key>
2335```
36+37+Or export any of the accepted env vars before starting the Gateway:
38+39+```bash
40+export MODELSTUDIO_API_KEY=sk-...
41+# or DASHSCOPE_API_KEY=...
42+# or QWEN_API_KEY=...
43+```
44+2445</Step>
2546<Step title="Set a default video model">
2647```json5
@@ -35,66 +56,86 @@ Alibaba Model Studio / DashScope.
3556}
3657```
3758</Step>
38-<Step title="Verify the provider is available">
59+<Step title="Verify the provider is configured">
3960```bash
4061openclaw models list --provider alibaba
4162```
63+64+The list should include all five bundled Wan models. If `MODELSTUDIO_API_KEY` is unresolved, `openclaw models status --json` reports the missing credential under `auth.unusableProfiles`.
65+4266</Step>
4367</Steps>
44684569<Note>
46-Any of the accepted auth keys (`MODELSTUDIO_API_KEY`, `DASHSCOPE_API_KEY`, `QWEN_API_KEY`) will work. The `qwen-standard-api-key` onboarding choice configures the shared DashScope credential.
70+ The Alibaba plugin and the [Qwen plugin](/providers/qwen) both authenticate against DashScope and accept overlapping env vars. Use `alibaba/...` model ids to drive the dedicated Wan video surface; use `qwen/...` ids when you want Qwen's chat, embedding, or media-understanding surface.
4771</Note>
48724973## Built-in Wan models
507451-The bundled `alibaba` provider currently registers:
52-5375| Model ref | Mode |
5476| -------------------------- | ------------------------- |
55-| `alibaba/wan2.6-t2v` | Text-to-video |
77+| `alibaba/wan2.6-t2v` | Text-to-video (default) |
5678| `alibaba/wan2.6-i2v` | Image-to-video |
5779| `alibaba/wan2.6-r2v` | Reference-to-video |
5880| `alibaba/wan2.6-r2v-flash` | Reference-to-video (fast) |
5981| `alibaba/wan2.7-r2v` | Reference-to-video |
608261-## Current limits
83+## Capabilities and limits
84+85+The bundled provider mirrors DashScope's Wan video API caps. All three modes share the same per-request video count and duration cap; only the input shape differs.
628663-| Parameter | Limit |
64-| --------------------- | --------------------------------------------------------- |
65-| Output videos | Up to **1** per request |
66-| Input images | Up to **1** |
67-| Input videos | Up to **4** |
68-| Duration | Up to **10 seconds** |
69-| Supported controls | `size`, `aspectRatio`, `resolution`, `audio`, `watermark` |
70-| Reference image/video | Remote `http(s)` URLs only |
87+| Mode | Max output videos | Max input images | Max input videos | Max duration | Supported controls |
88+| ------------------ | ----------------- | ---------------- | ---------------- | ------------ | --------------------------------------------------------- |
89+| Text-to-video | 1 | n/a | n/a | 10 s | `size`, `aspectRatio`, `resolution`, `audio`, `watermark` |
90+| Image-to-video | 1 | 1 | n/a | 10 s | `size`, `aspectRatio`, `resolution`, `audio`, `watermark` |
91+| Reference-to-video | 1 | n/a | 4 | 10 s | `size`, `aspectRatio`, `resolution`, `audio`, `watermark` |
92+93+When a request omits `durationSeconds`, the provider sends DashScope's accepted default of **5 seconds**. Set `durationSeconds` explicitly on the [video generation tool](/tools/video-generation) to extend up to 10 s.
71947295<Warning>
73-Reference image/video mode currently requires **remote http(s) URLs**. Local file paths are not supported for reference inputs.
96+ Reference image and video inputs must be remote `http(s)` URLs. Local file paths are not accepted by DashScope's reference modes; upload to object storage first or use the [media tool](/tools/media-overview) flow that already produces a public URL.
7497</Warning>
75987699## Advanced configuration
7710078101<AccordionGroup>
79-<Accordion title="Relationship to Qwen">
80-The bundled `qwen` provider also uses Alibaba-hosted DashScope endpoints for
81-Wan video generation. Use:
102+<Accordion title="Override the DashScope base URL">
103+The provider defaults to the international DashScope endpoint. To target the China-region endpoint, set:
8210483-- `qwen/...` when you want the canonical Qwen provider surface
84-- `alibaba/...` when you want the direct vendor-owned Wan video surface
105+```json5
106+{
107+ models: {
108+ providers: {
109+ alibaba: {
110+ baseUrl: "https://dashscope.aliyuncs.com",
111+ },
112+ },
113+ },
114+}
115+```
8511686-See the [Qwen provider docs](/providers/qwen) for more detail.
117+The provider strips trailing slashes before constructing AIGC task URLs.
8711888119</Accordion>
8912090-<Accordion title="Auth key priority">
91-OpenClaw checks for auth keys in this order:
121+<Accordion title="Auth env priority">
122+OpenClaw resolves the Alibaba API key from environment variables in this order, taking the first non-empty value:
9212393-1. `MODELSTUDIO_API_KEY` (preferred)
124+1. `MODELSTUDIO_API_KEY`
941252. `DASHSCOPE_API_KEY`
951263. `QWEN_API_KEY`
9612797-Any of these will authenticate the `alibaba` provider.
128+Configured `auth.profiles` entries (set via `openclaw models auth login`) override env-var resolution. See [Auth profiles in the models FAQ](/help/faq-models#what-is-an-auth-profile) for profile rotation, cooldown, and override mechanics.
129+130+</Accordion>
131+132+<Accordion title="Relationship to the Qwen plugin">
133+Both bundled plugins talk to DashScope and accept overlapping API keys. Use:
134+135+- `alibaba/wan*.*` ids to drive the dedicated Wan video provider documented on this page.
136+- `qwen/*` ids for Qwen chat, embedding, and media understanding (see [Qwen](/providers/qwen)).
137+138+Setting `MODELSTUDIO_API_KEY` once authenticates both plugins because the auth env var list intentionally overlaps; you do not need to onboard each plugin separately.
9813999140</Accordion>
100141</AccordionGroup>
@@ -106,9 +147,12 @@ Reference image/video mode currently requires **remote http(s) URLs**. Local fil
106147Shared video tool parameters and provider selection.
107148</Card>
108149<Card title="Qwen" href="/providers/qwen" icon="microchip">
109-Qwen provider setup and DashScope integration.
150+Qwen chat, embedding, and media-understanding setup on the same DashScope auth.
110151</Card>
111152<Card title="Configuration reference" href="/gateway/config-agents#agent-defaults" icon="gear">
112153Agent defaults and model configuration.
113154</Card>
155+<Card title="Models FAQ" href="/help/faq-models" icon="circle-question">
156+Auth profiles, switching models, and resolving "no profile" errors.
157+</Card>
114158</CardGroup>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。