|
23 | 23 | "model": { |
24 | 24 | "type": "string", |
25 | 25 | "enum": [ |
26 | | - "alibaba/wan2.6-t2v" |
| 26 | + "alibaba/wan-2-6-t2v" |
27 | 27 | ] |
28 | 28 | }, |
29 | 29 | "prompt": { |
|
98 | 98 | "model", |
99 | 99 | "prompt" |
100 | 100 | ], |
101 | | - "title": "alibaba/wan2.6-t2v" |
| 101 | + "title": "alibaba/wan-2-6-t2v" |
102 | 102 | } |
103 | 103 | } |
104 | 104 | } |
|
193 | 193 | "x-codeSamples": [ |
194 | 194 | { |
195 | 195 | "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 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();" |
| 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/wan-2-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();" |
197 | 197 | }, |
198 | 198 | { |
199 | 199 | "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 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)" |
| 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/wan-2-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)" |
201 | 201 | }, |
202 | 202 | { |
203 | 203 | "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 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 }'" |
| 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/wan-2-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 }'" |
205 | 205 | }, |
206 | 206 | { |
207 | 207 | "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 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}" |
| 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/wan-2-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}" |
209 | 209 | } |
210 | 210 | ] |
211 | 211 | } |
|
0 commit comments