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 @@ -48,7 +48,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
/// - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr<br/>
/// - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - image: png, jpg, jpeg, jpe, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - gif: gif, webp, webm<br/>
/// &gt; Note: `gif` is only supported for face swap API `video_file_path` field.<br/>
/// Once you receive an upload URL, send a `PUT` request to upload the file directly.<br/>
Expand Down Expand Up @@ -105,7 +105,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
/// - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr<br/>
/// - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - image: png, jpg, jpeg, jpe, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - gif: gif, webp, webm<br/>
/// &gt; Note: `gif` is only supported for face swap API `video_file_path` field.<br/>
/// Once you receive an upload URL, send a `PUT` request to upload the file directly.<br/>
Expand Down Expand Up @@ -730,7 +730,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
/// - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr<br/>
/// - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - image: png, jpg, jpeg, jpe, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - gif: gif, webp, webm<br/>
/// &gt; Note: `gif` is only supported for face swap API `video_file_path` field.<br/>
/// Once you receive an upload URL, send a `PUT` request to upload the file directly.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial interface IFilesClient
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
/// - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr<br/>
/// - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - image: png, jpg, jpeg, jpe, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - gif: gif, webp, webm<br/>
/// &gt; Note: `gif` is only supported for face swap API `video_file_path` field.<br/>
/// Once you receive an upload URL, send a `PUT` request to upload the file directly.<br/>
Expand Down Expand Up @@ -58,7 +58,7 @@ public partial interface IFilesClient
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
/// - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr<br/>
/// - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - image: png, jpg, jpeg, jpe, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - gif: gif, webp, webm<br/>
/// &gt; Note: `gif` is only supported for face swap API `video_file_path` field.<br/>
/// Once you receive an upload URL, send a `PUT` request to upload the file directly.<br/>
Expand Down Expand Up @@ -105,7 +105,7 @@ public partial interface IFilesClient
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
/// - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr<br/>
/// - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - image: png, jpg, jpeg, jpe, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp<br/>
/// - gif: gif, webp, webm<br/>
/// &gt; Note: `gif` is only supported for face swap API `video_file_path` field.<br/>
/// Once you receive an upload URL, send a `PUT` request to upload the file directly.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public partial interface IVideoProjectsClient
/// <param name="assets"></param>
/// <param name="script">
/// The words the actor should speak. Character limits apply after trimming:<br/>
/// * kling-3.0: 2500 characters.<br/>
/// * kling-3.0: 2304 characters.<br/>
/// * ltx-2.5: 1804 characters.<br/>
/// * veo3.1: 2500 characters.<br/>
/// LTX's dialogue wrapper counts toward its model prompt limit.<br/>
/// LTX and Kling dialogue wrappers count toward their model prompt limit.<br/>
/// Example: Meet your new everyday essential.
/// </param>
/// <param name="endSeconds">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ public sealed partial class AiUgcAdCreateVideoRequest

/// <summary>
/// The words the actor should speak. Character limits apply after trimming:<br/>
/// * kling-3.0: 2500 characters.<br/>
/// * kling-3.0: 2304 characters.<br/>
/// * ltx-2.5: 1804 characters.<br/>
/// * veo3.1: 2500 characters.<br/>
/// LTX's dialogue wrapper counts toward its model prompt limit.<br/>
/// LTX and Kling dialogue wrappers count toward their model prompt limit.<br/>
/// Example: Meet your new everyday essential.
/// </summary>
/// <example>Meet your new everyday essential.</example>
Expand Down Expand Up @@ -67,10 +67,10 @@ public sealed partial class AiUgcAdCreateVideoRequest
/// <param name="assets"></param>
/// <param name="script">
/// The words the actor should speak. Character limits apply after trimming:<br/>
/// * kling-3.0: 2500 characters.<br/>
/// * kling-3.0: 2304 characters.<br/>
/// * ltx-2.5: 1804 characters.<br/>
/// * veo3.1: 2500 characters.<br/>
/// LTX's dialogue wrapper counts toward its model prompt limit.<br/>
/// LTX and Kling dialogue wrappers count toward their model prompt limit.<br/>
/// Example: Meet your new everyday essential.
/// </param>
/// <param name="endSeconds">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public sealed partial class VideoAssetsGeneratePresignedUrlRequestItem
public required global::MagicHour.VideoAssetsGeneratePresignedUrlRequestItemType Type { get; set; }

/// <summary>
/// The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm<br/>
/// The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jpe,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm<br/>
/// Example: mp4
/// </summary>
/// <example>mp4</example>
Expand All @@ -41,7 +41,7 @@ public sealed partial class VideoAssetsGeneratePresignedUrlRequestItem
/// Example: video
/// </param>
/// <param name="extension">
/// The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm<br/>
/// The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jpe,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm<br/>
/// Example: mp4
/// </param>
#if NET7_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,10 @@ partial void ProcessAiUgcAdCreateVideoResponseContent(
/// <param name="assets"></param>
/// <param name="script">
/// The words the actor should speak. Character limits apply after trimming:<br/>
/// * kling-3.0: 2500 characters.<br/>
/// * kling-3.0: 2304 characters.<br/>
/// * ltx-2.5: 1804 characters.<br/>
/// * veo3.1: 2500 characters.<br/>
/// LTX's dialogue wrapper counts toward its model prompt limit.<br/>
/// LTX and Kling dialogue wrappers count toward their model prompt limit.<br/>
/// Example: Meet your new everyday essential.
/// </param>
/// <param name="endSeconds">
Expand Down
6 changes: 3 additions & 3 deletions src/libs/MagicHour/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@
},
"/v1/files/upload-urls": {
"post": {
"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's 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> Note: `gif` is only supported for face swap API `video_file_path` field.\n\nOnce you receive an upload URL, send a `PUT` request to upload the file directly.\n\nExample:\n\n```\ncurl -X PUT --data '@/path/to/file/video.mp4' \\\n https://videos.magichour.ai/api-assets/id/video.mp4?<auth params from the API response>\n```\n",
"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's 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, jpe, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp\n- gif: gif, webp, webm\n\n> Note: `gif` is only supported for face swap API `video_file_path` field.\n\nOnce you receive an upload URL, send a `PUT` request to upload the file directly.\n\nExample:\n\n```\ncurl -X PUT --data '@/path/to/file/video.mp4' \\\n https://videos.magichour.ai/api-assets/id/video.mp4?<auth params from the API response>\n```\n",
"summary": "Generate asset upload urls",
"tags": ["Files"],
"parameters": [],
Expand All @@ -444,7 +444,7 @@
"extension": {
"type": "string",
"pattern": "^[a-z0-9]+$",
"description": "The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm",
"description": "The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jpe,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm",
"example": "mp4"
}
},
Expand Down Expand Up @@ -1854,7 +1854,7 @@
"script": {
"type": "string",
"minLength": 1,
"description": "The words the actor should speak. Character limits apply after trimming:\n* kling-3.0: 2500 characters.\n* ltx-2.5: 1804 characters.\n* veo3.1: 2500 characters.\nLTX's dialogue wrapper counts toward its model prompt limit.",
"description": "The words the actor should speak. Character limits apply after trimming:\n* kling-3.0: 2304 characters.\n* ltx-2.5: 1804 characters.\n* veo3.1: 2500 characters.\nLTX and Kling dialogue wrappers count toward their model prompt limit.",
"example": "Meet your new everyday essential."
},
"end_seconds": {
Expand Down
Loading