Skip to content

Commit d369689

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#16)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent d9afccc commit d369689

20 files changed

Lines changed: 3018 additions & 873 deletions

src/libs/MagicHour/Generated/MagicHour.IImageProjectsClient.AiImageEditorCreateImage.g.cs

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,29 @@ public partial interface IImageProjectsClient
6060
/// The AI model to use for image editing. Each model has different capabilities and costs.<br/>
6161
/// **Models:**<br/>
6262
/// - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.<br/>
63-
/// - `qwen-edit` - 10 credits/image<br/>
63+
/// - `qwen-edit` - from 10 credits/image<br/>
64+
/// - Supported resolutions: 640px, 1k, 2k<br/>
6465
/// - Available for tiers: free, creator, pro, business<br/>
65-
/// - Image count allowed: 1<br/>
6666
/// - Max additional input images: 2<br/>
67-
/// - `nano-banana` - 50 credits/image<br/>
67+
/// - `nano-banana` - from 50 credits/image<br/>
68+
/// - Supported resolutions: 640px, 1k<br/>
6869
/// - Available for tiers: free, creator, pro, business<br/>
69-
/// - Image count allowed: 1<br/>
7070
/// - Max additional input images: 9<br/>
71-
/// - `nano-banana-2` - 100 credits/image<br/>
71+
/// - `nano-banana-2` - from 100 credits/image<br/>
72+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
7273
/// - Available for tiers: free, creator, pro, business<br/>
73-
/// - Image count allowed: 1<br/>
7474
/// - Max additional input images: 9<br/>
75-
/// - `seedream-v4` - 50 credits/image<br/>
75+
/// - `seedream-v4` - from 40 credits/image<br/>
76+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
7677
/// - Available for tiers: free, creator, pro, business<br/>
77-
/// - Image count allowed: 1<br/>
7878
/// - Max additional input images: 9<br/>
79-
/// - `nano-banana-pro` - 150 credits/image<br/>
79+
/// - `nano-banana-pro` - from 150 credits/image<br/>
80+
/// - Supported resolutions: 1k, 2k, 4k<br/>
8081
/// - Available for tiers: creator, pro, business<br/>
81-
/// - Image count allowed: 1, 4, 9, 16<br/>
8282
/// - Max additional input images: 9<br/>
83-
/// - `seedream-v4.5` - 100 credits/image<br/>
83+
/// - `seedream-v4.5` - from 50 credits/image<br/>
84+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
8485
/// - Available for tiers: creator, pro, business<br/>
85-
/// - Image count allowed: 1<br/>
8686
/// - Max additional input images: 9<br/>
8787
/// Example: default
8888
/// </param>
@@ -91,13 +91,22 @@ public partial interface IImageProjectsClient
9191
/// Example: 1:1
9292
/// </param>
9393
/// <param name="resolution">
94-
/// Maximum resolution for the generated image.<br/>
94+
/// Maximum resolution (longest edge) for the output image.<br/>
9595
/// **Options:**<br/>
96-
/// - `auto` - Automatic resolution (all tiers, default)<br/>
97-
/// - `2k` - Up to 2048px (requires Pro or Business tier)<br/>
98-
/// - `4k` - Up to 4096px (requires Business tier)<br/>
99-
/// Note: Resolution availability depends on your subscription tier. Defaults to `auto` if not specified.<br/>
100-
/// Example: auto
96+
/// - `640px` — up to 640px<br/>
97+
/// - `1k` — up to 1024px<br/>
98+
/// - `2k` — up to 2048px<br/>
99+
/// - `4k` — up to 4096px<br/>
100+
/// - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports<br/>
101+
/// **Per-model support:**<br/>
102+
/// - `qwen-edit` - 640px, 1k, 2k<br/>
103+
/// - `nano-banana` - 640px, 1k<br/>
104+
/// - `nano-banana-2` - 640px, 1k, 2k, 4k<br/>
105+
/// - `seedream-v4` - 640px, 1k, 2k, 4k<br/>
106+
/// - `nano-banana-pro` - 1k, 2k, 4k<br/>
107+
/// - `seedream-v4.5` - 640px, 1k, 2k, 4k<br/>
108+
/// Note: Resolution availability depends on the model and your subscription tier.<br/>
109+
/// Example: 1k
101110
/// </param>
102111
/// <param name="style"></param>
103112
/// <param name="assets">

src/libs/MagicHour/Generated/MagicHour.IImageProjectsClient.AiImageGeneratorCreateImage.g.cs

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,43 +54,54 @@ public partial interface IImageProjectsClient
5454
/// The AI model to use for image generation. Each model has different capabilities and costs.<br/>
5555
/// **Models:**<br/>
5656
/// - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.<br/>
57-
/// - `flux-schnell` - 5 credits/image<br/>
58-
/// - Supported resolutions: auto<br/>
57+
/// - `flux-schnell` - from 5 credits/image<br/>
58+
/// - Supported resolutions: 640px, 1k, 2k<br/>
5959
/// - Available for tiers: free, creator, pro, business<br/>
6060
/// - Image count allowed: 1, 2, 3, 4<br/>
61-
/// - `z-image-turbo` - 5 credits/image<br/>
62-
/// - Supported resolutions: auto, 2k<br/>
61+
/// - `z-image-turbo` - from 5 credits/image<br/>
62+
/// - Supported resolutions: 640px, 1k, 2k<br/>
6363
/// - Available for tiers: free, creator, pro, business<br/>
6464
/// - Image count allowed: 1, 2, 3, 4<br/>
65-
/// - `seedream` - 30 credits/image<br/>
66-
/// - Supported resolutions: auto, 2k, 4k<br/>
65+
/// - `seedream-v4` - from 40 credits/image<br/>
66+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
6767
/// - Available for tiers: free, creator, pro, business<br/>
6868
/// - Image count allowed: 1, 2, 3, 4<br/>
69-
/// - `nano-banana` - 50 credits/image<br/>
70-
/// - Supported resolutions: auto<br/>
69+
/// - `nano-banana` - from 50 credits/image<br/>
70+
/// - Supported resolutions: 640px, 1k<br/>
7171
/// - Available for tiers: free, creator, pro, business<br/>
7272
/// - Image count allowed: 1, 2, 3, 4<br/>
73-
/// - `nano-banana-2` - 100 credits/image<br/>
74-
/// - Supported resolutions: auto, 2k, 4k<br/>
73+
/// - `nano-banana-2` - from 100 credits/image<br/>
74+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
7575
/// - Available for tiers: free, creator, pro, business<br/>
7676
/// - Image count allowed: 1, 2, 3, 4<br/>
77-
/// - `nano-banana-pro` - 150 credits/image<br/>
78-
/// - Supported resolutions: auto, 2k, 4k<br/>
77+
/// - `nano-banana-pro` - from 150 credits/image<br/>
78+
/// - Supported resolutions: 1k, 2k, 4k<br/>
7979
/// - Available for tiers: creator, pro, business<br/>
8080
/// - Image count allowed: 1, 4, 9, 16<br/>
81+
/// **Deprecated Enum Values:**<br/>
82+
/// - `seedream` - Use `seedream-v4` instead.<br/>
8183
/// Example: default
8284
/// </param>
8385
/// <param name="aspectRatio">
8486
/// The aspect ratio of the output image(s). If not specified, defaults to `1:1` (square).<br/>
8587
/// Example: 1:1
8688
/// </param>
8789
/// <param name="resolution">
88-
/// Maximum resolution for the generated image.<br/>
90+
/// Maximum resolution (longest edge) for the output image.<br/>
8991
/// **Options:**<br/>
90-
/// - `auto` - Automatic resolution (all tiers, default)<br/>
91-
/// - `2k` - Up to 2048px (requires Pro or Business tier)<br/>
92-
/// - `4k` - Up to 4096px (requires Business tier)<br/>
93-
/// Note: Resolution availability depends on the model and your subscription tier. See `model` field for which resolutions each model supports. Defaults to `auto` if not specified.<br/>
92+
/// - `640px` — up to 640px<br/>
93+
/// - `1k` — up to 1024px<br/>
94+
/// - `2k` — up to 2048px<br/>
95+
/// - `4k` — up to 4096px<br/>
96+
/// - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports<br/>
97+
/// **Per-model support:**<br/>
98+
/// - `flux-schnell` - 640px, 1k, 2k<br/>
99+
/// - `z-image-turbo` - 640px, 1k, 2k<br/>
100+
/// - `seedream-v4` - 640px, 1k, 2k, 4k<br/>
101+
/// - `nano-banana` - 640px, 1k<br/>
102+
/// - `nano-banana-2` - 640px, 1k, 2k, 4k<br/>
103+
/// - `nano-banana-pro` - 1k, 2k, 4k<br/>
104+
/// Note: Resolution availability depends on the model and your subscription tier.<br/>
94105
/// Default Value: auto<br/>
95106
/// Example: auto
96107
/// </param>

src/libs/MagicHour/Generated/MagicHour.IVideoProjectsClient.ImageToVideoCreateVideo.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ public partial interface IVideoProjectsClient
8383
/// </param>
8484
/// <param name="endSeconds">
8585
/// The total duration of the output video in seconds. Supported durations depend on the chosen model:<br/>
86-
/// * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30<br/>
86+
/// * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30<br/>
8787
/// * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15<br/>
8888
/// * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12<br/>
8989
/// * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15<br/>
9090
/// * **`kling-2.5`**: 5, 10<br/>
9191
/// * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15<br/>
9292
/// * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60<br/>
9393
/// * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56<br/>
94-
/// * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56<br/>
94+
/// * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56<br/>
9595
/// Legacy models:<br/>
9696
/// * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60<br/>
9797
/// Example: 5
@@ -140,7 +140,7 @@ public partial interface IVideoProjectsClient
140140
/// * **`kling-3.0`**: Toggle-able (can enable/disable)<br/>
141141
/// * **`sora-2`**: Automatically included with no extra credits<br/>
142142
/// * **`veo3.1`**: Toggle-able (can enable/disable)<br/>
143-
/// * **`veo3.1-lite`**: Automatically included with no extra credits<br/>
143+
/// * **`veo3.1-lite`**: Toggle-able (can enable/disable)<br/>
144144
/// Legacy models:<br/>
145145
/// * **`kling-1.6`**: Not supported<br/>
146146
/// Example: true

src/libs/MagicHour/Generated/MagicHour.IVideoProjectsClient.TextToVideoCreateVideo.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ public partial interface IVideoProjectsClient
8080
/// </param>
8181
/// <param name="endSeconds">
8282
/// The total duration of the output video in seconds. Supported durations depend on the chosen model:<br/>
83-
/// * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30<br/>
83+
/// * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30<br/>
8484
/// * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15<br/>
8585
/// * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12<br/>
8686
/// * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15<br/>
8787
/// * **`kling-2.5`**: 5, 10<br/>
8888
/// * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15<br/>
8989
/// * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60<br/>
9090
/// * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56<br/>
91-
/// * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56<br/>
91+
/// * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56<br/>
9292
/// Legacy models:<br/>
9393
/// * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60<br/>
9494
/// Example: 5
@@ -152,7 +152,7 @@ public partial interface IVideoProjectsClient
152152
/// * **`kling-3.0`**: Toggle-able (can enable/disable)<br/>
153153
/// * **`sora-2`**: Automatically included with no extra credits<br/>
154154
/// * **`veo3.1`**: Toggle-able (can enable/disable)<br/>
155-
/// * **`veo3.1-lite`**: Automatically included with no extra credits<br/>
155+
/// * **`veo3.1-lite`**: Toggle-able (can enable/disable)<br/>
156156
/// Legacy models:<br/>
157157
/// * **`kling-1.6`**: Not supported<br/>
158158
/// Example: true

src/libs/MagicHour/Generated/MagicHour.ImageProjectsClient.AiImageEditorCreateImage.g.cs

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -620,29 +620,29 @@ partial void ProcessAiImageEditorCreateImageResponseContent(
620620
/// The AI model to use for image editing. Each model has different capabilities and costs.<br/>
621621
/// **Models:**<br/>
622622
/// - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.<br/>
623-
/// - `qwen-edit` - 10 credits/image<br/>
623+
/// - `qwen-edit` - from 10 credits/image<br/>
624+
/// - Supported resolutions: 640px, 1k, 2k<br/>
624625
/// - Available for tiers: free, creator, pro, business<br/>
625-
/// - Image count allowed: 1<br/>
626626
/// - Max additional input images: 2<br/>
627-
/// - `nano-banana` - 50 credits/image<br/>
627+
/// - `nano-banana` - from 50 credits/image<br/>
628+
/// - Supported resolutions: 640px, 1k<br/>
628629
/// - Available for tiers: free, creator, pro, business<br/>
629-
/// - Image count allowed: 1<br/>
630630
/// - Max additional input images: 9<br/>
631-
/// - `nano-banana-2` - 100 credits/image<br/>
631+
/// - `nano-banana-2` - from 100 credits/image<br/>
632+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
632633
/// - Available for tiers: free, creator, pro, business<br/>
633-
/// - Image count allowed: 1<br/>
634634
/// - Max additional input images: 9<br/>
635-
/// - `seedream-v4` - 50 credits/image<br/>
635+
/// - `seedream-v4` - from 40 credits/image<br/>
636+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
636637
/// - Available for tiers: free, creator, pro, business<br/>
637-
/// - Image count allowed: 1<br/>
638638
/// - Max additional input images: 9<br/>
639-
/// - `nano-banana-pro` - 150 credits/image<br/>
639+
/// - `nano-banana-pro` - from 150 credits/image<br/>
640+
/// - Supported resolutions: 1k, 2k, 4k<br/>
640641
/// - Available for tiers: creator, pro, business<br/>
641-
/// - Image count allowed: 1, 4, 9, 16<br/>
642642
/// - Max additional input images: 9<br/>
643-
/// - `seedream-v4.5` - 100 credits/image<br/>
643+
/// - `seedream-v4.5` - from 50 credits/image<br/>
644+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
644645
/// - Available for tiers: creator, pro, business<br/>
645-
/// - Image count allowed: 1<br/>
646646
/// - Max additional input images: 9<br/>
647647
/// Example: default
648648
/// </param>
@@ -651,13 +651,22 @@ partial void ProcessAiImageEditorCreateImageResponseContent(
651651
/// Example: 1:1
652652
/// </param>
653653
/// <param name="resolution">
654-
/// Maximum resolution for the generated image.<br/>
654+
/// Maximum resolution (longest edge) for the output image.<br/>
655655
/// **Options:**<br/>
656-
/// - `auto` - Automatic resolution (all tiers, default)<br/>
657-
/// - `2k` - Up to 2048px (requires Pro or Business tier)<br/>
658-
/// - `4k` - Up to 4096px (requires Business tier)<br/>
659-
/// Note: Resolution availability depends on your subscription tier. Defaults to `auto` if not specified.<br/>
660-
/// Example: auto
656+
/// - `640px` — up to 640px<br/>
657+
/// - `1k` — up to 1024px<br/>
658+
/// - `2k` — up to 2048px<br/>
659+
/// - `4k` — up to 4096px<br/>
660+
/// - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports<br/>
661+
/// **Per-model support:**<br/>
662+
/// - `qwen-edit` - 640px, 1k, 2k<br/>
663+
/// - `nano-banana` - 640px, 1k<br/>
664+
/// - `nano-banana-2` - 640px, 1k, 2k, 4k<br/>
665+
/// - `seedream-v4` - 640px, 1k, 2k, 4k<br/>
666+
/// - `nano-banana-pro` - 1k, 2k, 4k<br/>
667+
/// - `seedream-v4.5` - 640px, 1k, 2k, 4k<br/>
668+
/// Note: Resolution availability depends on the model and your subscription tier.<br/>
669+
/// Example: 1k
661670
/// </param>
662671
/// <param name="style"></param>
663672
/// <param name="assets">

src/libs/MagicHour/Generated/MagicHour.ImageProjectsClient.AiImageGeneratorCreateImage.g.cs

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -614,43 +614,54 @@ partial void ProcessAiImageGeneratorCreateImageResponseContent(
614614
/// The AI model to use for image generation. Each model has different capabilities and costs.<br/>
615615
/// **Models:**<br/>
616616
/// - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.<br/>
617-
/// - `flux-schnell` - 5 credits/image<br/>
618-
/// - Supported resolutions: auto<br/>
617+
/// - `flux-schnell` - from 5 credits/image<br/>
618+
/// - Supported resolutions: 640px, 1k, 2k<br/>
619619
/// - Available for tiers: free, creator, pro, business<br/>
620620
/// - Image count allowed: 1, 2, 3, 4<br/>
621-
/// - `z-image-turbo` - 5 credits/image<br/>
622-
/// - Supported resolutions: auto, 2k<br/>
621+
/// - `z-image-turbo` - from 5 credits/image<br/>
622+
/// - Supported resolutions: 640px, 1k, 2k<br/>
623623
/// - Available for tiers: free, creator, pro, business<br/>
624624
/// - Image count allowed: 1, 2, 3, 4<br/>
625-
/// - `seedream` - 30 credits/image<br/>
626-
/// - Supported resolutions: auto, 2k, 4k<br/>
625+
/// - `seedream-v4` - from 40 credits/image<br/>
626+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
627627
/// - Available for tiers: free, creator, pro, business<br/>
628628
/// - Image count allowed: 1, 2, 3, 4<br/>
629-
/// - `nano-banana` - 50 credits/image<br/>
630-
/// - Supported resolutions: auto<br/>
629+
/// - `nano-banana` - from 50 credits/image<br/>
630+
/// - Supported resolutions: 640px, 1k<br/>
631631
/// - Available for tiers: free, creator, pro, business<br/>
632632
/// - Image count allowed: 1, 2, 3, 4<br/>
633-
/// - `nano-banana-2` - 100 credits/image<br/>
634-
/// - Supported resolutions: auto, 2k, 4k<br/>
633+
/// - `nano-banana-2` - from 100 credits/image<br/>
634+
/// - Supported resolutions: 640px, 1k, 2k, 4k<br/>
635635
/// - Available for tiers: free, creator, pro, business<br/>
636636
/// - Image count allowed: 1, 2, 3, 4<br/>
637-
/// - `nano-banana-pro` - 150 credits/image<br/>
638-
/// - Supported resolutions: auto, 2k, 4k<br/>
637+
/// - `nano-banana-pro` - from 150 credits/image<br/>
638+
/// - Supported resolutions: 1k, 2k, 4k<br/>
639639
/// - Available for tiers: creator, pro, business<br/>
640640
/// - Image count allowed: 1, 4, 9, 16<br/>
641+
/// **Deprecated Enum Values:**<br/>
642+
/// - `seedream` - Use `seedream-v4` instead.<br/>
641643
/// Example: default
642644
/// </param>
643645
/// <param name="aspectRatio">
644646
/// The aspect ratio of the output image(s). If not specified, defaults to `1:1` (square).<br/>
645647
/// Example: 1:1
646648
/// </param>
647649
/// <param name="resolution">
648-
/// Maximum resolution for the generated image.<br/>
650+
/// Maximum resolution (longest edge) for the output image.<br/>
649651
/// **Options:**<br/>
650-
/// - `auto` - Automatic resolution (all tiers, default)<br/>
651-
/// - `2k` - Up to 2048px (requires Pro or Business tier)<br/>
652-
/// - `4k` - Up to 4096px (requires Business tier)<br/>
653-
/// Note: Resolution availability depends on the model and your subscription tier. See `model` field for which resolutions each model supports. Defaults to `auto` if not specified.<br/>
652+
/// - `640px` — up to 640px<br/>
653+
/// - `1k` — up to 1024px<br/>
654+
/// - `2k` — up to 2048px<br/>
655+
/// - `4k` — up to 4096px<br/>
656+
/// - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports<br/>
657+
/// **Per-model support:**<br/>
658+
/// - `flux-schnell` - 640px, 1k, 2k<br/>
659+
/// - `z-image-turbo` - 640px, 1k, 2k<br/>
660+
/// - `seedream-v4` - 640px, 1k, 2k, 4k<br/>
661+
/// - `nano-banana` - 640px, 1k<br/>
662+
/// - `nano-banana-2` - 640px, 1k, 2k, 4k<br/>
663+
/// - `nano-banana-pro` - 1k, 2k, 4k<br/>
664+
/// Note: Resolution availability depends on the model and your subscription tier.<br/>
654665
/// Default Value: auto<br/>
655666
/// Example: auto
656667
/// </param>

0 commit comments

Comments
 (0)