← All models
Generate video with audio from videos using LTX-2 Distilled and custom LoRA
Example
Details
- Accepts
- video
Pricing
- Price
- 0.125 cr / megapixel
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| fps | number | The frames per second of the generated video. |
| seed | — | The seed for the random number generator. |
| lorasrequired | array | The LoRAs to use for the generation. |
| promptrequired | string | The prompt to generate the video from. |
| ic_lora | stringenum: match_preprocessor, canny, depth, pose, detailer, none | The type of IC-LoRA to load. In-Context LoRA weights are used to condition the video based on edge, depth, or pose videos. Only change this from `match_preprocessor` if your videos are already preprocessed (or you are using the detailer.) |
| audio_url | — | An optional URL of an audio to use as the audio for the video. If not provided, any audio present in the input video will be used. |
| image_url | — | An optional URL of an image to use as the first frame of the video. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| video_urlrequired | string | The URL of the video to generate the video from. |
| num_frames | integer | The number of frames to generate. |
| video_size | — | The size of the generated video. |
| camera_lora | stringenum: dolly_in, dolly_out, dolly_left, dolly_right, jib_up, jib_down… | The camera LoRA to use. This allows you to control the camera movement of the generated video more accurately than just prompting the model to move the camera. |
| acceleration | stringenum: none, regular, high, full | The acceleration level to use. |
| preprocessor | stringenum: depth, canny, pose, none | The preprocessor to use for the video. When a preprocessor is used and `ic_lora_type` is set to `match_preprocessor`, the IC-LoRA will be loaded based on the preprocessor type. |
| end_image_url | — | The URL of the image to use as the end of the video. |
| ic_lora_scale | number | The scale of the IC-LoRA to use. This allows you to control the strength of the IC-LoRA. |
| video_quality | stringenum: low, medium, high, maximum | The quality of the generated video. |
| audio_strength | number | Audio conditioning strength. Lower values represent more freedom given to the model to change the audio content. |
| generate_audio | boolean | Whether to generate audio for the video. |
| image_strength | number | The strength of the image to use for the video generation. |
| use_multiscale | boolean | Whether to use multi-scale generation. If True, the model will generate the video at a smaller scale first, then use the smaller video to guide the generation of a video at or above your requested size. This results in better coherence and details. |
| video_strength | number | Video conditioning strength. Lower values represent more freedom given to the model to change the video content. |
| match_input_fps | boolean | When true, match the output FPS to the input video's FPS instead of using the default target FPS. |
| negative_prompt | string | The negative prompt to generate the video from. |
| video_write_mode | stringenum: fast, balanced, small | The write mode of the generated video. |
| camera_lora_scale | number | The scale of the camera LoRA to use. This allows you to control the camera movement of the generated video more accurately than just prompting the model to move the camera. |
| video_output_type | stringenum: X264 (.mp4), VP9 (.webm), PRORES4444 (.mov), GIF (.gif) | The output type of the generated video. |
| end_image_strength | number | The strength of the end image to use for the video generation. |
| match_video_length | boolean | When enabled, the number of frames will be calculated based on the video duration and FPS. When disabled, use the specified num_frames. |
| enable_safety_checker | boolean | Whether to enable the safety checker. |
| enable_prompt_expansion | boolean | Whether to enable prompt expansion. |
Output
| Field | Type | Description |
|---|---|---|
| seed | integer | The seed used for the random number generator. |
| video | — | The generated video. |
| prompt | string | The prompt used for the generation. |