1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/// Provide the assets for image-to-video.
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct V1ImageToVideoCreateBodyAssets {
/// The image to use as the last frame of the video.
///
/// * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
/// * **`kling-2.6`**: Supports 1080p.
/// * **`kling-3.0`**: Supports 720p, 1080p, 4k.
/// * **`kling-4.0`**: Supports 720p, 1080p.
/// * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
/// * **`minimax-h3`**: Supports 480p, 720p, 1080p.
/// * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
/// * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
/// * **`seedance-2.0-fast`**: Supports 480p, 720p.
/// * **`seedance-2.0-mini`**: Supports 480p, 720p.
/// * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
/// * **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.
/// * **`veo3.1-lite`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.
/// * **`wan-2.2`**: Not supported
/// * **`wan-3.0`**: Supports 480p, 720p, 1080p.
///
/// This value is either
/// - a direct URL to the file. The URL path must end in a supported file extension.
/// - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
///
/// See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
///
#[serde(skip_serializing_if = "Option::is_none")]
pub end_image_file_path: Option<String>,
/// The path of the image file. This value is either
/// - a direct URL to the file. The URL path must end in a supported file extension.
/// - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
///
/// See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
///
pub image_file_path: String,
}