Skip to content

Commit b09f21c

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent b4e8a30 commit b09f21c

66 files changed

Lines changed: 2721 additions & 812 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ partial void ProcessPostBatchResponseContent(
534534
/// Example: MAGIC_PROMPT_NO_TEXT
535535
/// </param>
536536
/// <param name="samplingRequestParams">
537-
/// Example: {"aspect_ratio":"1x1","style_type":"GENERAL","magic_prompt_version":"V_0","seed":12345,"negative_prompt":"brush strokes, painting","magic_prompt_option":"ON","model":"V_2_TURBO","resolution":"1280x800","num_images":1,"color_palette":{"name":"PASTEL"}}
537+
/// Example: {"magic_prompt_system_prompt_config_id":"magic_prompt_system_prompt_config_id","aspect_ratio":"1x1","style_type":"GENERAL","magic_prompt_version":"V_0","seed":12345,"negative_prompt":"brush strokes, painting","magic_prompt_option":"ON","model":"V_2_TURBO","resolution":"1280x800","num_images":1,"color_palette":{"name":"PASTEL"}}
538538
/// </param>
539539
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
540540
/// <param name="cancellationToken">The token to cancel the operation with</param>

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ request.Maskname is null
208208
content: new global::System.Net.Http.StringContent((request.MagicPromptOption).HasValue ? (request.MagicPromptOption).GetValueOrDefault().ToValueString() : string.Empty),
209209
name: "\"magic_prompt_option\"");
210210
}
211+
if (request.MagicPromptSystemPromptConfigId != default)
212+
{
213+
214+
__httpRequestContent.Add(
215+
content: new global::System.Net.Http.StringContent(request.MagicPromptSystemPromptConfigId ?? string.Empty),
216+
name: "\"magic_prompt_system_prompt_config_id\"");
217+
}
211218
if (request.NumImages != default)
212219
{
213220

@@ -663,6 +670,9 @@ request.Maskname is null
663670
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
664671
/// Example: ON
665672
/// </param>
673+
/// <param name="magicPromptSystemPromptConfigId">
674+
/// A base64url-encoded magic prompt system prompt config ID to use for this request.
675+
/// </param>
666676
/// <param name="numImages">
667677
/// The number of images to generate.<br/>
668678
/// Default Value: 1
@@ -686,6 +696,7 @@ request.Maskname is null
686696
string prompt,
687697
global::Ideogram.ModelEnum model = global::Ideogram.ModelEnum.V2,
688698
global::Ideogram.MagicPromptOption? magicPromptOption = default,
699+
string? magicPromptSystemPromptConfigId = default,
689700
int? numImages = default,
690701
int? seed = default,
691702
global::Ideogram.StyleType? styleType = default,
@@ -701,6 +712,7 @@ request.Maskname is null
701712
Prompt = prompt,
702713
Model = model,
703714
MagicPromptOption = magicPromptOption,
715+
MagicPromptSystemPromptConfigId = magicPromptSystemPromptConfigId,
704716
NumImages = numImages,
705717
Seed = seed,
706718
StyleType = styleType,

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ partial void ProcessPostGenerateDesignV3ResponseContent(
158158
content: new global::System.Net.Http.StringContent((request.MagicPrompt).HasValue ? (request.MagicPrompt).GetValueOrDefault().ToValueString() : string.Empty),
159159
name: "\"magic_prompt\"");
160160
}
161+
if (request.MagicPromptSystemPromptConfigId != default)
162+
{
163+
164+
__httpRequestContent.Add(
165+
content: new global::System.Net.Http.StringContent(request.MagicPromptSystemPromptConfigId ?? string.Empty),
166+
name: "\"magic_prompt_system_prompt_config_id\"");
167+
}
161168
if (request.NegativePrompt != default)
162169
{
163170

@@ -864,6 +871,9 @@ request.FontFileSmallname is null
864871
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
865872
/// Example: ON
866873
/// </param>
874+
/// <param name="magicPromptSystemPromptConfigId">
875+
/// A base64url-encoded magic prompt system prompt config ID to use for this request.
876+
/// </param>
867877
/// <param name="negativePrompt">
868878
/// Description of what to exclude from a design. Descriptions in the prompt take precedence<br/>
869879
/// to descriptions in the negative prompt.<br/>
@@ -947,6 +957,7 @@ request.FontFileSmallname is null
947957
global::Ideogram.AspectRatioV3? aspectRatio = default,
948958
global::Ideogram.RenderingSpeed? renderingSpeed = default,
949959
global::Ideogram.MagicPromptOption? magicPrompt = default,
960+
string? magicPromptSystemPromptConfigId = default,
950961
string? negativePrompt = default,
951962
int? numImages = default,
952963
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
@@ -979,6 +990,7 @@ request.FontFileSmallname is null
979990
AspectRatio = aspectRatio,
980991
RenderingSpeed = renderingSpeed,
981992
MagicPrompt = magicPrompt,
993+
MagicPromptSystemPromptConfigId = magicPromptSystemPromptConfigId,
982994
NegativePrompt = negativePrompt,
983995
NumImages = numImages,
984996
ColorPalette = colorPalette,

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ partial void ProcessPostGenerateImageV3ResponseContent(
157157
content: new global::System.Net.Http.StringContent((request.MagicPrompt).HasValue ? (request.MagicPrompt).GetValueOrDefault().ToValueString() : string.Empty),
158158
name: "\"magic_prompt\"");
159159
}
160+
if (request.MagicPromptSystemPromptConfigId != default)
161+
{
162+
163+
__httpRequestContent.Add(
164+
content: new global::System.Net.Http.StringContent(request.MagicPromptSystemPromptConfigId ?? string.Empty),
165+
name: "\"magic_prompt_system_prompt_config_id\"");
166+
}
160167
if (request.NegativePrompt != default)
161168
{
162169

@@ -687,6 +694,9 @@ partial void ProcessPostGenerateImageV3ResponseContent(
687694
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
688695
/// Example: ON
689696
/// </param>
697+
/// <param name="magicPromptSystemPromptConfigId">
698+
/// A base64url-encoded magic prompt system prompt config ID to use for this request.
699+
/// </param>
690700
/// <param name="negativePrompt">
691701
/// Description of what to exclude from an image. Descriptions in the prompt take precedence<br/>
692702
/// to descriptions in the negative prompt.<br/>
@@ -736,6 +746,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
736746
global::Ideogram.AspectRatioV3? aspectRatio = default,
737747
global::Ideogram.RenderingSpeed? renderingSpeed = default,
738748
global::Ideogram.MagicPromptOption? magicPrompt = default,
749+
string? magicPromptSystemPromptConfigId = default,
739750
string? negativePrompt = default,
740751
int? numImages = default,
741752
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
@@ -757,6 +768,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
757768
AspectRatio = aspectRatio,
758769
RenderingSpeed = renderingSpeed,
759770
MagicPrompt = magicPrompt,
771+
MagicPromptSystemPromptConfigId = magicPromptSystemPromptConfigId,
760772
NegativePrompt = negativePrompt,
761773
NumImages = numImages,
762774
ColorPalette = colorPalette,

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ partial void ProcessPostGenerateImageV3TransparentResponseContent(
4747
/// the Ideogram 3.0 model. Images will be generated using maximum supported resolution at the specified aspect ratio<br/>
4848
/// to allow best results with upscaler. The selected resolution is written to the response, not the upscaled final<br/>
4949
/// resolution.<br/>
50+
/// `rendering_speed=FLASH` is not supported for transparent-background generation; the request will return a 400.<br/>
51+
/// Use `TURBO`, `DEFAULT`, or `QUALITY` instead.<br/>
5052
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
5153
/// </summary>
5254
/// <param name="request"></param>
@@ -160,6 +162,13 @@ partial void ProcessPostGenerateImageV3TransparentResponseContent(
160162
content: new global::System.Net.Http.StringContent((request.MagicPrompt).HasValue ? (request.MagicPrompt).GetValueOrDefault().ToValueString() : string.Empty),
161163
name: "\"magic_prompt\"");
162164
}
165+
if (request.MagicPromptSystemPromptConfigId != default)
166+
{
167+
168+
__httpRequestContent.Add(
169+
content: new global::System.Net.Http.StringContent(request.MagicPromptSystemPromptConfigId ?? string.Empty),
170+
name: "\"magic_prompt_system_prompt_config_id\"");
171+
}
163172
if (request.NegativePrompt != default)
164173
{
165174

@@ -589,6 +598,8 @@ partial void ProcessPostGenerateImageV3TransparentResponseContent(
589598
/// the Ideogram 3.0 model. Images will be generated using maximum supported resolution at the specified aspect ratio<br/>
590599
/// to allow best results with upscaler. The selected resolution is written to the response, not the upscaled final<br/>
591600
/// resolution.<br/>
601+
/// `rendering_speed=FLASH` is not supported for transparent-background generation; the request will return a 400.<br/>
602+
/// Use `TURBO`, `DEFAULT`, or `QUALITY` instead.<br/>
592603
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
593604
/// </summary>
594605
/// <param name="prompt">
@@ -615,6 +626,9 @@ partial void ProcessPostGenerateImageV3TransparentResponseContent(
615626
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
616627
/// Example: ON
617628
/// </param>
629+
/// <param name="magicPromptSystemPromptConfigId">
630+
/// A base64url-encoded magic prompt system prompt config ID to use for this request.
631+
/// </param>
618632
/// <param name="negativePrompt">
619633
/// Description of what to exclude from an image. Descriptions in the prompt take precedence<br/>
620634
/// to descriptions in the negative prompt.<br/>
@@ -640,6 +654,7 @@ partial void ProcessPostGenerateImageV3TransparentResponseContent(
640654
global::Ideogram.AspectRatioV3? aspectRatio = default,
641655
global::Ideogram.RenderingSpeed? renderingSpeed = default,
642656
global::Ideogram.MagicPromptOption? magicPrompt = default,
657+
string? magicPromptSystemPromptConfigId = default,
643658
string? negativePrompt = default,
644659
int? numImages = default,
645660
string? customModelUri = default,
@@ -654,6 +669,7 @@ partial void ProcessPostGenerateImageV3TransparentResponseContent(
654669
AspectRatio = aspectRatio,
655670
RenderingSpeed = renderingSpeed,
656671
MagicPrompt = magicPrompt,
672+
MagicPromptSystemPromptConfigId = magicPromptSystemPromptConfigId,
657673
NegativePrompt = negativePrompt,
658674
NumImages = numImages,
659675
CustomModelUri = customModelUri,

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV4.g.cs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,33 @@ partial void ProcessPostGenerateImageV4ResponseContent(
136136
content: new global::System.Net.Http.StringContent((request.MagicPromptOption).HasValue ? (request.MagicPromptOption).GetValueOrDefault().ToValueString() : string.Empty),
137137
name: "\"magic_prompt_option\"");
138138
}
139+
if (request.MagicPromptSystemPromptConfigId != default)
140+
{
141+
142+
__httpRequestContent.Add(
143+
content: new global::System.Net.Http.StringContent(request.MagicPromptSystemPromptConfigId ?? string.Empty),
144+
name: "\"magic_prompt_system_prompt_config_id\"");
145+
}
139146
if (request.CustomModelUri != default)
140147
{
141148

142149
__httpRequestContent.Add(
143150
content: new global::System.Net.Http.StringContent(request.CustomModelUri ?? string.Empty),
144151
name: "\"custom_model_uri\"");
152+
}
153+
if (request.Resolution != default)
154+
{
155+
156+
__httpRequestContent.Add(
157+
content: new global::System.Net.Http.StringContent((request.Resolution).HasValue ? (request.Resolution).GetValueOrDefault().ToValueString() : string.Empty),
158+
name: "\"resolution\"");
159+
}
160+
if (request.RenderingSpeed != default)
161+
{
162+
163+
__httpRequestContent.Add(
164+
content: new global::System.Net.Http.StringContent((request.RenderingSpeed).HasValue ? (request.RenderingSpeed).GetValueOrDefault().ToValueString() : string.Empty),
165+
name: "\"rendering_speed\"");
145166
}
146167
__httpRequest.Content = __httpRequestContent;
147168
global::Ideogram.AutoSDKRequestOptionsSupport.ApplyHeaders(
@@ -560,19 +581,33 @@ partial void ProcessPostGenerateImageV4ResponseContent(
560581
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
561582
/// Example: ON
562583
/// </param>
584+
/// <param name="magicPromptSystemPromptConfigId">
585+
/// A base64url-encoded magic prompt system prompt config ID to use for this request.
586+
/// </param>
563587
/// <param name="customModelUri">
564588
/// A custom model URI in the format model/&lt;model_name&gt;/version/&lt;version_name&gt;.<br/>
565589
/// When provided, the model version and style will be resolved from this URI.<br/>
566590
/// Example: model/my-custom-model/version/0
567591
/// </param>
592+
/// <param name="resolution">
593+
/// The resolutions supported for Ideogram 4.0.<br/>
594+
/// Example: 1280x800
595+
/// </param>
596+
/// <param name="renderingSpeed">
597+
/// The rendering speed to use.<br/>
598+
/// Default Value: DEFAULT
599+
/// </param>
568600
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
569601
/// <param name="cancellationToken">The token to cancel the operation with</param>
570602
/// <exception cref="global::System.InvalidOperationException"></exception>
571603
public async global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV4> PostGenerateImageV4Async(
572604
string prompt,
573605
int? seed = default,
574606
global::Ideogram.MagicPromptOption? magicPromptOption = default,
607+
string? magicPromptSystemPromptConfigId = default,
575608
string? customModelUri = default,
609+
global::Ideogram.ResolutionV4? resolution = default,
610+
global::Ideogram.RenderingSpeed? renderingSpeed = default,
576611
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
577612
global::System.Threading.CancellationToken cancellationToken = default)
578613
{
@@ -581,7 +616,10 @@ partial void ProcessPostGenerateImageV4ResponseContent(
581616
Prompt = prompt,
582617
Seed = seed,
583618
MagicPromptOption = magicPromptOption,
619+
MagicPromptSystemPromptConfigId = magicPromptSystemPromptConfigId,
584620
CustomModelUri = customModelUri,
621+
Resolution = resolution,
622+
RenderingSpeed = renderingSpeed,
585623
};
586624

587625
return await PostGenerateImageV4Async(

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostInpaintImageV3.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,13 @@ request.Maskname is null
205205
content: new global::System.Net.Http.StringContent((request.MagicPrompt).HasValue ? (request.MagicPrompt).GetValueOrDefault().ToValueString() : string.Empty),
206206
name: "\"magic_prompt\"");
207207
}
208+
if (request.MagicPromptSystemPromptConfigId != default)
209+
{
210+
211+
__httpRequestContent.Add(
212+
content: new global::System.Net.Http.StringContent(request.MagicPromptSystemPromptConfigId ?? string.Empty),
213+
name: "\"magic_prompt_system_prompt_config_id\"");
214+
}
208215
if (request.NumImages != default)
209216
{
210217

@@ -741,6 +748,9 @@ request.Maskname is null
741748
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
742749
/// Example: ON
743750
/// </param>
751+
/// <param name="magicPromptSystemPromptConfigId">
752+
/// A base64url-encoded magic prompt system prompt config ID to use for this request.
753+
/// </param>
744754
/// <param name="numImages">
745755
/// The number of images to generate.<br/>
746756
/// Default Value: 1
@@ -793,6 +803,7 @@ request.Maskname is null
793803
string maskname,
794804
string prompt,
795805
global::Ideogram.MagicPromptOption? magicPrompt = default,
806+
string? magicPromptSystemPromptConfigId = default,
796807
int? numImages = default,
797808
int? seed = default,
798809
global::Ideogram.RenderingSpeed? renderingSpeed = default,
@@ -815,6 +826,7 @@ request.Maskname is null
815826
Maskname = maskname,
816827
Prompt = prompt,
817828
MagicPrompt = magicPrompt,
829+
MagicPromptSystemPromptConfigId = magicPromptSystemPromptConfigId,
818830
NumImages = numImages,
819831
Seed = seed,
820832
RenderingSpeed = renderingSpeed,

0 commit comments

Comments
 (0)