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 @@ -49,6 +49,24 @@ partial void ProcessAiMusicGeneratorCreateAudioResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::MagicHour.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.magichour.ai/v1/ai-music-generator \<br/>
/// --header 'accept: application/json' \<br/>
/// --header "authorization: Bearer $MAGIC_HOUR_API_KEY" \<br/>
/// --header 'content-type: application/json' \<br/>
/// --data '<br/>
/// {<br/>
/// "name": "My Music Generator audio",<br/>
/// "duration": 120,<br/>
/// "style": {<br/>
/// "prompt": "Dreamy synthwave with warm bass and soft vocals",<br/>
/// "instrumental": false,<br/>
/// "lyrics": "City lights are fading..."<br/>
/// }<br/>
/// }<br/>
/// '
/// </remarks>
public async global::System.Threading.Tasks.Task<global::MagicHour.AiMusicGeneratorCreateAudioResponse> AiMusicGeneratorCreateAudioAsync(

global::MagicHour.AiMusicGeneratorCreateAudioRequest request,
Expand All @@ -72,6 +90,24 @@ partial void ProcessAiMusicGeneratorCreateAudioResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::MagicHour.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.magichour.ai/v1/ai-music-generator \<br/>
/// --header 'accept: application/json' \<br/>
/// --header "authorization: Bearer $MAGIC_HOUR_API_KEY" \<br/>
/// --header 'content-type: application/json' \<br/>
/// --data '<br/>
/// {<br/>
/// "name": "My Music Generator audio",<br/>
/// "duration": 120,<br/>
/// "style": {<br/>
/// "prompt": "Dreamy synthwave with warm bass and soft vocals",<br/>
/// "instrumental": false,<br/>
/// "lyrics": "City lights are fading..."<br/>
/// }<br/>
/// }<br/>
/// '
/// </remarks>
public async global::System.Threading.Tasks.Task<global::MagicHour.AutoSDKHttpResponse<global::MagicHour.AiMusicGeneratorCreateAudioResponse>> AiMusicGeneratorCreateAudioAsResponseAsync(

global::MagicHour.AiMusicGeneratorCreateAudioRequest request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ public partial interface IAudioProjectsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::MagicHour.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.magichour.ai/v1/ai-music-generator \<br/>
/// --header 'accept: application/json' \<br/>
/// --header "authorization: Bearer $MAGIC_HOUR_API_KEY" \<br/>
/// --header 'content-type: application/json' \<br/>
/// --data '<br/>
/// {<br/>
/// "name": "My Music Generator audio",<br/>
/// "duration": 120,<br/>
/// "style": {<br/>
/// "prompt": "Dreamy synthwave with warm bass and soft vocals",<br/>
/// "instrumental": false,<br/>
/// "lyrics": "City lights are fading..."<br/>
/// }<br/>
/// }<br/>
/// '
/// </remarks>
global::System.Threading.Tasks.Task<global::MagicHour.AiMusicGeneratorCreateAudioResponse> AiMusicGeneratorCreateAudioAsync(

global::MagicHour.AiMusicGeneratorCreateAudioRequest request,
Expand All @@ -25,6 +43,24 @@ public partial interface IAudioProjectsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::MagicHour.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.magichour.ai/v1/ai-music-generator \<br/>
/// --header 'accept: application/json' \<br/>
/// --header "authorization: Bearer $MAGIC_HOUR_API_KEY" \<br/>
/// --header 'content-type: application/json' \<br/>
/// --data '<br/>
/// {<br/>
/// "name": "My Music Generator audio",<br/>
/// "duration": 120,<br/>
/// "style": {<br/>
/// "prompt": "Dreamy synthwave with warm bass and soft vocals",<br/>
/// "instrumental": false,<br/>
/// "lyrics": "City lights are fading..."<br/>
/// }<br/>
/// }<br/>
/// '
/// </remarks>
global::System.Threading.Tasks.Task<global::MagicHour.AutoSDKHttpResponse<global::MagicHour.AiMusicGeneratorCreateAudioResponse>> AiMusicGeneratorCreateAudioAsResponseAsync(

global::MagicHour.AiMusicGeneratorCreateAudioRequest request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ 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 depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 60s (30s at 1080p).<br/>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.1`: 3-10s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p).<br/>
/// Example: 5
/// </param>
/// <param name="model">
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `wan-3.0` requires a paid tier. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Example: ltx-2.5
/// </param>
/// <param name="resolution">
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.<br/>
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.<br/>
/// Example: 480p
/// </param>
/// <param name="style"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public partial interface IVideoProjectsClient
/// * **`gemini-omni-1.1`**: any integer from 3 to 10<br/>
/// * **`kling-2.6`**: 5, 10<br/>
/// * **`kling-3.0`**: any integer from 3 to 15<br/>
/// * **`kling-4.0`**: any integer from 3 to 30<br/>
/// * **`ltx-2.5`**: any integer from 1 to 60<br/>
/// * **`minimax-h3`**: any integer from 1 to 30<br/>
/// * **`seedance-1.5`**: any integer from 4 to 12<br/>
Expand All @@ -157,6 +158,7 @@ public partial interface IVideoProjectsClient
/// * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.<br/>
/// * `kling-2.6`: Best for action, motion blur, and controlled camera moves.<br/>
/// * `kling-3.0`: Best for cinematic stories, references, and optional audio.<br/>
/// * `kling-4.0`: Create cinematic videos with image and video references and optional audio.<br/>
/// * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.<br/>
/// * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.<br/>
/// * `seedance-1.5`: Best for smooth, consistent motion with an end frame.<br/>
Expand All @@ -177,6 +179,7 @@ public partial interface IVideoProjectsClient
/// * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.<br/>
/// * **`kling-2.6`**: Supports 720p, 1080p.<br/>
/// * **`kling-3.0`**: Supports 720p, 1080p, 4k.<br/>
/// * **`kling-4.0`**: Supports 720p, 1080p.<br/>
/// * **`ltx-2.5`**: Supports 480p, 720p, 1080p.<br/>
/// * **`minimax-h3`**: Supports 480p, 720p, 1080p.<br/>
/// * **`seedance-1.5`**: Supports 480p, 720p, 1080p.<br/>
Expand All @@ -196,6 +199,7 @@ public partial interface IVideoProjectsClient
/// * **`gemini-omni-1.1`**: Not supported<br/>
/// * **`kling-2.6`**: Not supported<br/>
/// * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled<br/>
/// * **`kling-4.0`**: Toggle-able: no additional credits for audio<br/>
/// * **`ltx-2.5`**: Toggle-able: no additional credits for audio<br/>
/// * **`minimax-h3`**: Toggle-able: no additional credits for audio<br/>
/// * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public partial interface IVideoProjectsClient
/// * **`gemini-omni-1.1`**: any integer from 3 to 10<br/>
/// * **`kling-2.6`**: 5, 10<br/>
/// * **`kling-3.0`**: any integer from 3 to 15<br/>
/// * **`kling-4.0`**: any integer from 3 to 30<br/>
/// * **`ltx-2.5`**: any integer from 1 to 60<br/>
/// * **`minimax-h3`**: any integer from 1 to 30<br/>
/// * **`seedance-1.5`**: any integer from 4 to 12<br/>
Expand All @@ -142,6 +143,7 @@ public partial interface IVideoProjectsClient
/// * **`gemini-omni-1.1`**: Supports 16:9, 9:16.<br/>
/// * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.<br/>
/// * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.<br/>
/// * **`kling-4.0`**: Supports 9:16, 16:9, 1:1.<br/>
/// * **`ltx-2.5`**: Supports 9:16, 16:9, 1:1.<br/>
/// * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.<br/>
/// * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.<br/>
Expand All @@ -160,6 +162,7 @@ public partial interface IVideoProjectsClient
/// * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.<br/>
/// * **`kling-2.6`**: Supports 720p, 1080p.<br/>
/// * **`kling-3.0`**: Supports 720p, 1080p, 4k.<br/>
/// * **`kling-4.0`**: Supports 720p, 1080p.<br/>
/// * **`ltx-2.5`**: Supports 480p, 720p, 1080p.<br/>
/// * **`minimax-h3`**: Supports 480p, 720p, 1080p.<br/>
/// * **`seedance-1.5`**: Supports 480p, 720p, 1080p.<br/>
Expand All @@ -179,6 +182,7 @@ public partial interface IVideoProjectsClient
/// * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.<br/>
/// * `kling-2.6`: Best for action, motion blur, and controlled camera moves.<br/>
/// * `kling-3.0`: Best for cinematic stories, references, and optional audio.<br/>
/// * `kling-4.0`: Create cinematic videos with image and video references and optional audio.<br/>
/// * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.<br/>
/// * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.<br/>
/// * `seedance-1.5`: Best for smooth, consistent motion with an end frame.<br/>
Expand All @@ -200,6 +204,7 @@ public partial interface IVideoProjectsClient
/// * **`gemini-omni-1.1`**: Not supported<br/>
/// * **`kling-2.6`**: Not supported<br/>
/// * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled<br/>
/// * **`kling-4.0`**: Toggle-able: no additional credits for audio<br/>
/// * **`ltx-2.5`**: Toggle-able: no additional credits for audio<br/>
/// * **`minimax-h3`**: Toggle-able: no additional credits for audio<br/>
/// * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled<br/>
Expand All @@ -219,7 +224,8 @@ public partial interface IVideoProjectsClient
/// Supported models and reference media:<br/>
/// * **`gemini-omni-1.1`**: Supports images, videos. Up to 10 references.<br/>
/// * **`kling-3.0`**: Supports images, videos.<br/>
/// * **`minimax-h3`**: Supports images, videos, audio.<br/>
/// * **`kling-4.0`**: Supports images, videos. Up to 10 references.<br/>
/// * **`minimax-h3`**: Supports images, videos, audio. Video references must be 2–15 seconds each and 15 seconds combined, and are used in full.<br/>
/// * **`seedance-2.0`**: Supports images, videos, audio.<br/>
/// * **`seedance-2.0-fast`**: Supports images, videos, audio.<br/>
/// * **`seedance-2.0-mini`**: Supports images, videos, audio.<br/>
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 depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 60s (30s at 1080p).<br/>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.1`: 3-10s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p).<br/>
/// Example: 5
/// </summary>
/// <example>5</example>
Expand All @@ -36,7 +36,7 @@ public sealed partial class AiVideoEditorCreateVideoRequest
public required float EndSeconds { get; set; }

/// <summary>
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `wan-3.0` requires a paid tier. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Example: ltx-2.5
/// </summary>
/// <example>ltx-2.5</example>
Expand All @@ -45,7 +45,7 @@ public sealed partial class AiVideoEditorCreateVideoRequest
public global::MagicHour.AiVideoEditorCreateVideoRequestModel? Model { get; set; }

/// <summary>
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.<br/>
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.<br/>
/// Example: 480p
/// </summary>
/// <example>480p</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 depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 60s (30s at 1080p).<br/>
/// End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.1`: 3-10s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p).<br/>
/// Example: 5
/// </param>
/// <param name="style"></param>
Expand All @@ -95,11 +95,11 @@ public sealed partial class AiVideoEditorCreateVideoRequest
/// Example: 0
/// </param>
/// <param name="model">
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `wan-3.0` requires a paid tier. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Example: ltx-2.5
/// </param>
/// <param name="resolution">
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.<br/>
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.<br/>
/// Example: 480p
/// </param>
#if NET7_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace MagicHour
{
/// <summary>
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `wan-3.0` requires a paid tier. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.<br/>
/// Example: ltx-2.5
/// </summary>
public enum AiVideoEditorCreateVideoRequestModel
Expand All @@ -25,6 +25,10 @@ public enum AiVideoEditorCreateVideoRequestModel
///
/// </summary>
Ltx25,
/// <summary>
///
/// </summary>
Wan30,
}

/// <summary>
Expand All @@ -43,6 +47,7 @@ public static string ToValueString(this AiVideoEditorCreateVideoRequestModel val
AiVideoEditorCreateVideoRequestModel.GeminiOmni11 => "gemini-omni-1.1",
AiVideoEditorCreateVideoRequestModel.Ltx23 => "ltx-2.3",
AiVideoEditorCreateVideoRequestModel.Ltx25 => "ltx-2.5",
AiVideoEditorCreateVideoRequestModel.Wan30 => "wan-3.0",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -57,6 +62,7 @@ public static string ToValueString(this AiVideoEditorCreateVideoRequestModel val
"gemini-omni-1.1" => AiVideoEditorCreateVideoRequestModel.GeminiOmni11,
"ltx-2.3" => AiVideoEditorCreateVideoRequestModel.Ltx23,
"ltx-2.5" => AiVideoEditorCreateVideoRequestModel.Ltx25,
"wan-3.0" => AiVideoEditorCreateVideoRequestModel.Wan30,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
namespace MagicHour
{
/// <summary>
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.<br/>
/// Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.<br/>
/// Example: 480p
/// </summary>
public enum AiVideoEditorCreateVideoRequestResolution
{
/// <summary>
///
/// `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
/// </summary>
x1080p,
/// <summary>
///
/// `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
/// </summary>
x480p,
/// <summary>
///
/// `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
/// </summary>
x720p,
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Loading