Skip to content

Commit 301d2be

Browse files
feat: re-gen 3 alibaba/wan2-6
1 parent 512a91f commit 301d2be

3 files changed

Lines changed: 12 additions & 20 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,19 +187,19 @@
187187
"x-codeSamples": [
188188
{
189189
"lang": "JavaScript",
190-
"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/wan2.6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
190+
"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/wan2-6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
191191
},
192192
{
193193
"lang": "Python",
194-
"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/wan2.6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n }\n)\n\ndata = response.json()\nprint(data)"
194+
"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/wan2-6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n }\n)\n\ndata = response.json()\nprint(data)"
195195
},
196196
{
197197
"lang": "cURL",
198-
"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/wan2.6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n }'"
198+
"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/wan2-6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n }'"
199199
},
200200
{
201201
"lang": "HTTP",
202-
"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/wan2.6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n}"
202+
"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/wan2-6-i2v\",\n \"prompt\": \"Mona Lisa puts on glasses with her hands.\",\n \"image_url\": \"https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg\"\n}"
203203
}
204204
]
205205
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,19 @@
193193
"x-codeSamples": [
194194
{
195195
"lang": "JavaScript",
196-
"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/wan2.6-t2v\",\n \"prompt\": \"A racoon is happily eating an ice cream. Suddenly, he pauses, looks directly into the camera, and says with full confidence: ’Hello, two-legged!’ His lip movements perfectly match the speech. Then, in a strong Irish accent, he adds: ’Wanna some?’ — while extending the half-eaten ice cream toward the camera.\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
196+
"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/wan2-6-t2v\",\n \"prompt\": \"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it’s coming.\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
197197
},
198198
{
199199
"lang": "Python",
200-
"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/wan2.6-t2v\",\n \"prompt\": \"A racoon is happily eating an ice cream. Suddenly, he pauses, looks directly into the camera, and says with full confidence: ’Hello, two-legged!’ His lip movements perfectly match the speech. Then, in a strong Irish accent, he adds: ’Wanna some?’ — while extending the half-eaten ice cream toward the camera.\"\n }\n)\n\ndata = response.json()\nprint(data)"
200+
"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/wan2-6-t2v\",\n \"prompt\": \"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it’s coming.\"\n }\n)\n\ndata = response.json()\nprint(data)"
201201
},
202202
{
203203
"lang": "cURL",
204-
"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/wan2.6-t2v\",\n \"prompt\": \"A racoon is happily eating an ice cream. Suddenly, he pauses, looks directly into the camera, and says with full confidence: ’Hello, two-legged!’ His lip movements perfectly match the speech. Then, in a strong Irish accent, he adds: ’Wanna some?’ — while extending the half-eaten ice cream toward the camera.\"\n }'"
204+
"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/wan2-6-t2v\",\n \"prompt\": \"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it’s coming.\"\n }'"
205205
},
206206
{
207207
"lang": "HTTP",
208-
"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/wan2.6-t2v\",\n \"prompt\": \"A racoon is happily eating an ice cream. Suddenly, he pauses, looks directly into the camera, and says with full confidence: ’Hello, two-legged!’ His lip movements perfectly match the speech. Then, in a strong Irish accent, he adds: ’Wanna some?’ — while extending the half-eaten ice cream toward the camera.\"\n}"
208+
"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/wan2-6-t2v\",\n \"prompt\": \"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it’s coming.\"\n}"
209209
}
210210
]
211211
}

packages/generators-v2/src/json_for-docs_generation.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
[
22
{
3-
"name": "alibaba/wan-2-6-image",
4-
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=alibaba/wan-2-6-image",
5-
"alias": "wan-2-6-image",
6-
"category": "image-models",
7-
"vendor": "Alibaba-Cloud",
8-
"codeSamples": "image-to-image"
9-
},
10-
{
11-
"name": "alibaba/wan2.6-t2v",
3+
"name": "alibaba/wan2-6-t2v",
124
"alias": "wan2.6-t2v",
135
"category": "video-models",
146
"vendor": "Alibaba Cloud",
157
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=alibaba/wan2.6-t2v",
16-
"codeSamples": "video:lipsync"
8+
"codeSamples": "video:video"
179
},
1810
{
19-
"name": "alibaba/wan2.6-i2v",
11+
"name": "alibaba/wan2-6-i2v",
2012
"alias": "wan2.6-i2v",
2113
"category": "video-models",
2214
"vendor": "Alibaba Cloud",
2315
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=alibaba/wan2.6-i2v",
2416
"codeSamples": "video:video"
2517
},
2618
{
27-
"name": "alibaba/wan2.6-r2v",
19+
"name": "alibaba/wan2-6-r2v",
2820
"alias": "wan2.6-r2v",
2921
"category": "video-models",
3022
"vendor": "Alibaba Cloud",

0 commit comments

Comments
 (0)