Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(

/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -100,7 +100,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(
}
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -688,7 +688,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(
}
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IFilesClient
{
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -53,7 +53,7 @@ public partial interface IFilesClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -100,7 +100,7 @@ public partial interface IFilesClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public partial interface IVideoProjectsClient
/// Example: 0
/// </param>
/// <param name="endSeconds">
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration is 3 seconds. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// Example: 5
/// </param>
/// <param name="model">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public sealed partial class AiVideoEditorCreateVideoRequest
public float? StartSeconds { get; set; }

/// <summary>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration is 3 seconds. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// Example: 5
/// </summary>
/// <example>5</example>
Expand Down Expand Up @@ -77,7 +77,7 @@ public sealed partial class AiVideoEditorCreateVideoRequest
/// Initializes a new instance of the <see cref="AiVideoEditorCreateVideoRequest" /> class.
/// </summary>
/// <param name="endSeconds">
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration is 3 seconds. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// Example: 5
/// </param>
/// <param name="style"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace MagicHour
public sealed partial class VideoAssetsGeneratePresignedUrlResponse
{
/// <summary>
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// Example: [{"upload_url":"https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/video.mp4"}, {"upload_url":"https://videos.magichour.ai/api-assets/id/audio.mp3?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/audio.mp3"}]
/// </summary>
/// <example>[{"upload_url":"https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/video.mp4"}, {"upload_url":"https://videos.magichour.ai/api-assets/id/audio.mp3?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/audio.mp3"}]</example>
Expand All @@ -27,7 +27,7 @@ public sealed partial class VideoAssetsGeneratePresignedUrlResponse
/// Initializes a new instance of the <see cref="VideoAssetsGeneratePresignedUrlResponse" /> class.
/// </summary>
/// <param name="items">
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.<br/>
/// Example: [{"upload_url":"https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/video.mp4"}, {"upload_url":"https://videos.magichour.ai/api-assets/id/audio.mp3?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/audio.mp3"}]
/// </param>
#if NET7_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed partial class VideoProjectsGetDetailsResponse
public required global::MagicHour.VideoProjectsGetDetailsResponseStatus Status { get; set; }

/// <summary>
/// The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD<br/>
/// The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD<br/>
/// Example: FACE_SWAP
/// </summary>
/// <example>FACE_SWAP</example>
Expand Down Expand Up @@ -160,7 +160,7 @@ public sealed partial class VideoProjectsGetDetailsResponse
/// Example: complete
/// </param>
/// <param name="type">
/// The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD<br/>
/// The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD<br/>
/// Example: FACE_SWAP
/// </param>
/// <param name="createdAt"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ partial void ProcessAiVideoEditorCreateVideoResponseContent(
/// Example: 0
/// </param>
/// <param name="endSeconds">
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration is 3 seconds. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.<br/>
/// Example: 5
/// </param>
/// <param name="model">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"Order": 7,
"Title": "Generate asset upload urls",
"Slug": "videoassets-generatepresignedurl",
"Description": "Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour\u0027s storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.\n\nThe response array will match the order of items in the request body.\n\n**Valid file extensions per asset type**:\n- video: mp4, m4v, mov, webm\n- audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr\n- image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp\n- gif: gif, webp, webm\n\n\u003E Note: \u0060gif\u0060 is only supported for face swap API \u0060video_file_path\u0060 field.\n\nOnce you receive an upload URL, send a \u0060PUT\u0060 request to upload the file directly.\n\nExample:\n\n\u0060\u0060\u0060\ncurl -X PUT --data \u0027@/path/to/file/video.mp4\u0027 \\\n https://videos.magichour.ai/api-assets/id/video.mp4?\u003Cauth params from the API response\u003E\n\u0060\u0060\u0060",
"Description": "Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour\u0027s storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.\n\nThe response array will match the order of items in the request body.\n\n**Valid file extensions per asset type**:\n- video: mp4, m4v, mov, webm\n- audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr\n- image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp\n- gif: gif, webp, webm\n\n\u003E Note: \u0060gif\u0060 is only supported for face swap API \u0060video_file_path\u0060 field.\n\nOnce you receive an upload URL, send a \u0060PUT\u0060 request to upload the file directly.\n\nExample:\n\n\u0060\u0060\u0060\ncurl -X PUT --data \u0027@/path/to/file/video.mp4\u0027 \\\n https://videos.magichour.ai/api-assets/id/video.mp4?\u003Cauth params from the API response\u003E\n\u0060\u0060\u0060",
"Language": "http",
"Code": "### Generate asset upload urls\n# @name videoAssets.generatePresignedUrl\nPOST {{host}}/v1/files/upload-urls\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022items\u0022: [\n {\n \u0022type\u0022: \u0022video\u0022,\n \u0022extension\u0022: \u0022mp4\u0022\n },\n {\n \u0022type\u0022: \u0022audio\u0022,\n \u0022extension\u0022: \u0022mp3\u0022\n }\n ]\n}\n\n## Responses\n# 200\n# Description: Success\n# Content-Type: application/json\n# 400\n# Description: Invalid Request\n# Content-Type: application/json\n# 401\n# Description: Unauthorized\n# Content-Type: application/json\n# 402\n# Description: Payment Required\n# Content-Type: application/json\n# 404\n# Description: Not Found\n# Content-Type: application/json\n# 422\n# Description: Unprocessable Entity\n# Content-Type: application/json",
"Format": "http",
Expand Down
Loading