Skip to content

Commit 1f2b933

Browse files
feat: re-gen alibaba/wan-2-6-r2v
1 parent dcaae1f commit 1f2b933

2 files changed

Lines changed: 29 additions & 18 deletions

File tree

docs/api-references/video-models/Alibaba-Cloud/wan2.6-r2v.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,25 @@
190190
}
191191
}
192192
},
193-
"x-hideTryItPanel": true
193+
"x-hideTryItPanel": true,
194+
"x-codeSamples": [
195+
{
196+
"lang": "JavaScript",
197+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v2/video/generations', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"model\": \"alibaba/wan-2-6-r2v\",\n \"prompt\": \"Add a small fairy as a rider on the raccoon’s back. She must have a black-and-golden face and a cloak in the colors of a dark emerald tropical butterfly with bright blue shimmering spots.\",\n \"video_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/racoon-in-the-forest.mp4\"\n ],\n \"duration\": \"5\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
198+
},
199+
{
200+
"lang": "Python",
201+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v2/video/generations\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"alibaba/wan-2-6-r2v\",\n \"prompt\": \"Add a small fairy as a rider on the raccoon’s back. She must have a black-and-golden face and a cloak in the colors of a dark emerald tropical butterfly with bright blue shimmering spots.\",\n \"video_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/racoon-in-the-forest.mp4\"\n ],\n \"duration\": \"5\"\n }\n)\n\ndata = response.json()\nprint(data)"
202+
},
203+
{
204+
"lang": "cURL",
205+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v2/video/generations' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"alibaba/wan-2-6-r2v\",\n \"prompt\": \"Add a small fairy as a rider on the raccoon’s back. She must have a black-and-golden face and a cloak in the colors of a dark emerald tropical butterfly with bright blue shimmering spots.\",\n \"video_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/racoon-in-the-forest.mp4\"\n ],\n \"duration\": \"5\"\n }'"
206+
},
207+
{
208+
"lang": "HTTP",
209+
"source": "POST /v2/video/generations HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"alibaba/wan-2-6-r2v\",\n \"prompt\": \"Add a small fairy as a rider on the raccoon’s back. She must have a black-and-golden face and a cloak in the colors of a dark emerald tropical butterfly with bright blue shimmering spots.\",\n \"video_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/racoon-in-the-forest.mp4\"\n ],\n \"duration\": \"5\"\n}"
210+
}
211+
]
194212
}
195213
}
196214
},
Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
[
2-
{
3-
"name": "alibaba/wan-2-6-t2v",
4-
"alias": "wan2.6-t2v",
5-
"category": "video-models",
6-
"vendor": "Alibaba Cloud",
7-
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=alibaba/wan-2-6-t2v",
8-
"codeSamples": "video:video"
9-
},
10-
{
11-
"name": "alibaba/wan-2-6-i2v",
12-
"alias": "wan2.6-i2v",
13-
"category": "video-models",
14-
"vendor": "Alibaba Cloud",
15-
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=alibaba/wan-2-6-i2v",
16-
"codeSamples": "video:video"
17-
},
182
{
193
"name": "alibaba/wan-2-6-r2v",
204
"alias": "wan2.6-r2v",
215
"category": "video-models",
226
"vendor": "Alibaba Cloud",
237
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=alibaba/wan-2-6-r2v",
24-
"codeSamples": "video:video"
8+
"codeSamples": "custom",
9+
"customUrlApi": "https://api.aimlapi.com/v2/video/generations",
10+
"customParams":{
11+
"model": "alibaba/wan-2-6-r2v",
12+
"prompt": "Add a small fairy as a rider on the raccoon’s back. She must have a black-and-golden face and a cloak in the colors of a dark emerald tropical butterfly with bright blue shimmering spots.",
13+
"video_urls":[
14+
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/racoon-in-the-forest.mp4"
15+
],
16+
"duration": "5"
17+
}
2518
}
2619
]

0 commit comments

Comments
 (0)