enable_sync_mode set to true (some models do not support this parameter, but you still need to query the result by id), you must call the Query Result endpoint to retrieve the final output.
data.id – the unique identifier of the predictiondata.urls[0].get – a ready-to-use GET URL that already embeds the id| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
prompt | string | ✅ Yes | - | - | The positive prompt for the generation. Must not exceed 2,500 characters. |
negative_prompt | string | ❌ No | - | - | The negative prompt for the generation. Must not exceed 2,500 characters. |
image | string | ❌ No | - | - | Source image for image-to-video generation. |
sound | boolean | ❌ No | true | true, false | Whether to include synchronized sound with the video. |
aspect_ratio | string | ❌ No | 16:9 | 16:9, 1:1, 9:16 | The aspect ratio of the generated video. This parameter is required when the image-to-video or video editing features are not used. |
duration | integer | ❌ No | 5 | 5, 10 | The duration of the generated media in seconds. |
voice_list | array | ❌ No | - | - | The list of voices id to use for the generated video, Only V2.6 and subsequent versions of the model supports the current parameters. see Custom Voice to get the voices id. |
voice_list.voice_id | string | ✅ Yes | - | - | The voice id to use for the generated video. A video generation task can reference up to 2 voices at most |
voice_list is List of tones referenced when generating videos,The value of voice_id parameter is returned through the voice customization interface
You can customize your voice by calling the endpoint below; please note:
audio parameter Supports .mp3 / .wav audio file and .mp4 / .mov video file.data.id – the unique identifier of the predictiondata.urls[0].get – a ready-to-use GET URL that already embeds the iddata.id is the voice id you need.
voice_list parameter when calling the video generation interface.
| Error Code | Error Name | Description |
|---|---|---|
| 401 | Unauthorized | API key is missing or invalid |
| 403 | Forbidden | Your API key doesn’t have permission to access this resource, or insufficient balance for the requested operation |
| 429 | Too Many Requests | You’ve exceeded your rate limit |
| 500 | Internal server error | An internal server error occurred |
| 503 | Content policy violation | Content blocked due to safety concerns (actual status code is 400) |