magic_hour 0.72.0

Magic Hour Rust SDK
Documentation
/// Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
#[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.
    /// * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
    /// * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
    /// * **`minimax-h3`**: Not supported
    /// * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
    /// * **`seedance-2.0`**: Supports 480p, 720p.
    /// * **`seedance-2.0-mini`**: Supports 480p, 720p.
    /// * **`seedance-2.5`**: Supports 480p, 720p.
    /// * **`sora-2`**: Not supported
    /// * **`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
    ///
    #[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 video file
    /// - `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,
}