|
84 | 84 | }, |
85 | 85 | "generate_audio_switch": { |
86 | 86 | "type": "boolean", |
87 | | - "description": "Audio switch. Controls whether the video has audio. true: Audio on, false: Audio off" |
| 87 | + "default": false, |
| 88 | + "description": "Enable audio generation.\n- true: Audio on.\n- false: Audio off." |
88 | 89 | }, |
89 | 90 | "generate_multi_clip_switch": { |
90 | 91 | "type": "boolean", |
91 | | - "description": "Single or multi-clip switch. Controls single-clip and multi-clip generation modes. true: Multi-clip, false: Single-clip" |
| 92 | + "default": false, |
| 93 | + "description": "Enable multi-clip generation with dynamic camera changes.\n- true: Multi-clip. \n- false: Single-clip." |
92 | 94 | }, |
93 | 95 | "thinking_type": { |
94 | 96 | "type": "string", |
|
97 | 99 | "disabled", |
98 | 100 | "auto" |
99 | 101 | ], |
100 | | - "description": "Prompt reasoning enhancement. Controls whether the system should enhance your prompt with internal reasoning and optimization. \"enabled\": Turn on system-level optimization. \"disabled\": Turn off system-level optimization. \"auto\" or omitted: Let the model decide automatically" |
| 102 | + "default": "enabled", |
| 103 | + "description": "Prompt reasoning enhancement mode. \n- \"enabled\": Turn on prompt optimization. \n- \"disabled\": Turn off prompt optimization. \n- \"auto\" or omitted: Let the model decide automatically." |
101 | 104 | } |
102 | 105 | }, |
103 | 106 | "required": [ |
|
199 | 202 | "x-codeSamples": [ |
200 | 203 | { |
201 | 204 | "lang": "JavaScript", |
202 | | - "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\": \"pixverse/v5.5/text-to-video\",\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();" |
| 205 | + "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\": \"pixverse/v5-5-text-to-video\",\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();" |
203 | 206 | }, |
204 | 207 | { |
205 | 208 | "lang": "Python", |
206 | | - "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\": \"pixverse/v5.5/text-to-video\",\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)" |
| 209 | + "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\": \"pixverse/v5-5-text-to-video\",\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)" |
207 | 210 | }, |
208 | 211 | { |
209 | 212 | "lang": "cURL", |
210 | | - "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\": \"pixverse/v5.5/text-to-video\",\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 }'" |
| 213 | + "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\": \"pixverse/v5-5-text-to-video\",\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 }'" |
211 | 214 | }, |
212 | 215 | { |
213 | 216 | "lang": "HTTP", |
214 | | - "source": "POST / HTTP/1.1\nHost: test.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"pixverse/v5.5/text-to-video\",\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}" |
| 217 | + "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\": \"pixverse/v5-5-text-to-video\",\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}" |
215 | 218 | } |
216 | 219 | ] |
217 | 220 | } |
|
0 commit comments