Skip to content

Commit e6b5d48

Browse files
Merge pull request #67 from tryAGI/bot/update-openapi_202504090334
feat:@coderabbitai
2 parents 3a81660 + 94c11b2 commit e6b5d48

File tree

37 files changed

+5351
-140
lines changed

37 files changed

+5351
-140
lines changed

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

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 423 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 376 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 453 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
#nullable enable
2+
3+
namespace Ideogram
4+
{
5+
public partial interface IGenerateClient
6+
{
7+
/// <summary>
8+
/// Edit with Ideogram 3.0<br/>
9+
/// Edit a given image synchronously using the provided mask with Ideogram 3.0. The mask indicates which part of the image<br/>
10+
/// should be edited, while the prompt and chosen style can further guide the edit.<br/>
11+
/// Supported image formats include JPEG, PNG, and WebP.<br/>
12+
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
13+
/// </summary>
14+
/// <param name="request"></param>
15+
/// <param name="cancellationToken">The token to cancel the operation with</param>
16+
/// <exception cref="global::Ideogram.ApiException"></exception>
17+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostEditImageV3Async(
18+
global::Ideogram.EditImageRequestV3 request,
19+
global::System.Threading.CancellationToken cancellationToken = default);
20+
21+
/// <summary>
22+
/// Edit with Ideogram 3.0<br/>
23+
/// Edit a given image synchronously using the provided mask with Ideogram 3.0. The mask indicates which part of the image<br/>
24+
/// should be edited, while the prompt and chosen style can further guide the edit.<br/>
25+
/// Supported image formats include JPEG, PNG, and WebP.<br/>
26+
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
27+
/// </summary>
28+
/// <param name="imageFile">
29+
/// The image being edited; only JPEG, WebP and PNG formats are supported at this time
30+
/// </param>
31+
/// <param name="imageFilename">
32+
/// The image being edited; only JPEG, WebP and PNG formats are supported at this time
33+
/// </param>
34+
/// <param name="mask">
35+
/// A black and white image of the same size as the image being edited. Black regions in the mask should match up with the regions of the image that you would like to edit; only JPEG, WebP and PNG formats are supported at this time
36+
/// </param>
37+
/// <param name="maskname">
38+
/// A black and white image of the same size as the image being edited. Black regions in the mask should match up with the regions of the image that you would like to edit; only JPEG, WebP and PNG formats are supported at this time
39+
/// </param>
40+
/// <param name="prompt">
41+
/// The prompt used to describe the edited result.<br/>
42+
/// Example: A photo of a cat.
43+
/// </param>
44+
/// <param name="magicPrompt">
45+
/// Determine if MagicPrompt should be used in generating the request or not<br/>
46+
/// Example: ON
47+
/// </param>
48+
/// <param name="numImages">
49+
/// Default Value: 1
50+
/// </param>
51+
/// <param name="seed">
52+
/// Example: 12345
53+
/// </param>
54+
/// <param name="renderingSpeed">
55+
/// The rendering speed to use.<br/>
56+
/// Default Value: BALANCED
57+
/// </param>
58+
/// <param name="colorPalette">
59+
/// Only available for model version V_2 and V_2_TURBO. A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members).
60+
/// </param>
61+
/// <param name="styleCodes">
62+
/// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.<br/>
63+
/// Example: [AAFF5733, 0133FF57, DE3357FF]
64+
/// </param>
65+
/// <param name="styleReferenceImages">
66+
/// A set of images to use as style references. The images should be in JPEG, PNG or WebP format.
67+
/// </param>
68+
/// <param name="cancellationToken">The token to cancel the operation with</param>
69+
/// <exception cref="global::System.InvalidOperationException"></exception>
70+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostEditImageV3Async(
71+
byte[] imageFile,
72+
string imageFilename,
73+
byte[] mask,
74+
string maskname,
75+
string prompt,
76+
global::Ideogram.MagicPromptOption? magicPrompt = default,
77+
int? numImages = default,
78+
int? seed = default,
79+
global::Ideogram.RenderingSpeed? renderingSpeed = default,
80+
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
81+
global::System.Collections.Generic.IList<string>? styleCodes = default,
82+
global::System.Collections.Generic.IList<byte[]>? styleReferenceImages = default,
83+
global::System.Threading.CancellationToken cancellationToken = default);
84+
}
85+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#nullable enable
2+
3+
namespace Ideogram
4+
{
5+
public partial interface IGenerateClient
6+
{
7+
/// <summary>
8+
/// Generate with Ideogram 3.0<br/>
9+
/// Generates images synchronously based on a given prompt and optional parameters using the Ideogram 3.0 model.<br/>
10+
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
11+
/// </summary>
12+
/// <param name="request"></param>
13+
/// <param name="cancellationToken">The token to cancel the operation with</param>
14+
/// <exception cref="global::Ideogram.ApiException"></exception>
15+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostGenerateImageV3Async(
16+
global::Ideogram.GenerateImageRequestV3 request,
17+
global::System.Threading.CancellationToken cancellationToken = default);
18+
19+
/// <summary>
20+
/// Generate with Ideogram 3.0<br/>
21+
/// Generates images synchronously based on a given prompt and optional parameters using the Ideogram 3.0 model.<br/>
22+
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
23+
/// </summary>
24+
/// <param name="prompt">
25+
/// The prompt to use to generate the image.<br/>
26+
/// Example: A photo of a cat
27+
/// </param>
28+
/// <param name="seed">
29+
/// Example: 12345
30+
/// </param>
31+
/// <param name="resolution">
32+
/// The resolutions supported for model version V_3.<br/>
33+
/// Example: 1024x1024
34+
/// </param>
35+
/// <param name="aspectRatio">
36+
/// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1:1.
37+
/// </param>
38+
/// <param name="renderingSpeed">
39+
/// The rendering speed to use.<br/>
40+
/// Default Value: BALANCED
41+
/// </param>
42+
/// <param name="magicPrompt">
43+
/// Determine if MagicPrompt should be used in generating the request or not<br/>
44+
/// Example: ON
45+
/// </param>
46+
/// <param name="negativePrompt">
47+
/// Description of what to exclude from an image. Descriptions in the prompt take precedence<br/>
48+
/// to descriptions in the negative prompt.<br/>
49+
/// Example: brush strokes, painting
50+
/// </param>
51+
/// <param name="numImages">
52+
/// Number of images to generate.<br/>
53+
/// Default Value: 1
54+
/// </param>
55+
/// <param name="colorPalette">
56+
/// Only available for model version V_2 and V_2_TURBO. A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members).
57+
/// </param>
58+
/// <param name="styleCodes">
59+
/// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.<br/>
60+
/// Example: [AAFF5733, 0133FF57, DE3357FF]
61+
/// </param>
62+
/// <param name="styleType">
63+
/// The style type to generate with.<br/>
64+
/// Example: REALISTIC
65+
/// </param>
66+
/// <param name="styleReferenceImages">
67+
/// A set of images to use as style references. The images should be in JPEG, PNG or WebP format.
68+
/// </param>
69+
/// <param name="cancellationToken">The token to cancel the operation with</param>
70+
/// <exception cref="global::System.InvalidOperationException"></exception>
71+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostGenerateImageV3Async(
72+
string prompt,
73+
int? seed = default,
74+
global::Ideogram.ResolutionV3? resolution = default,
75+
global::Ideogram.AspectRatioV3? aspectRatio = default,
76+
global::Ideogram.RenderingSpeed? renderingSpeed = default,
77+
global::Ideogram.MagicPromptOption? magicPrompt = default,
78+
string? negativePrompt = default,
79+
int? numImages = default,
80+
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
81+
global::System.Collections.Generic.IList<string>? styleCodes = default,
82+
global::Ideogram.StyleTypeV3? styleType = default,
83+
global::System.Collections.Generic.IList<byte[]>? styleReferenceImages = default,
84+
global::System.Threading.CancellationToken cancellationToken = default);
85+
}
86+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#nullable enable
2+
3+
namespace Ideogram
4+
{
5+
public partial interface IGenerateClient
6+
{
7+
/// <summary>
8+
/// Reframe with Ideogram 3.0<br/>
9+
/// Reframe a square image to a chosen resolution with Ideogram 3.0. The supported image formats include JPEG, PNG, and WebP.<br/>
10+
/// Image links are available for a limited period of time; if you would like to keep the image, you must download it
11+
/// </summary>
12+
/// <param name="request"></param>
13+
/// <param name="cancellationToken">The token to cancel the operation with</param>
14+
/// <exception cref="global::Ideogram.ApiException"></exception>
15+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostReframeImageV3Async(
16+
global::Ideogram.ReframeImageRequestV3 request,
17+
global::System.Threading.CancellationToken cancellationToken = default);
18+
19+
/// <summary>
20+
/// Reframe with Ideogram 3.0<br/>
21+
/// Reframe a square image to a chosen resolution with Ideogram 3.0. The supported image formats include JPEG, PNG, and WebP.<br/>
22+
/// Image links are available for a limited period of time; if you would like to keep the image, you must download it
23+
/// </summary>
24+
/// <param name="imageFile">
25+
/// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
26+
/// </param>
27+
/// <param name="imageFilename">
28+
/// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
29+
/// </param>
30+
/// <param name="resolution">
31+
/// The resolutions supported for model version V_3.<br/>
32+
/// Example: 1024x1024
33+
/// </param>
34+
/// <param name="numImages">
35+
/// Default Value: 1
36+
/// </param>
37+
/// <param name="seed">
38+
/// Example: 12345
39+
/// </param>
40+
/// <param name="renderingSpeed">
41+
/// The rendering speed to use.<br/>
42+
/// Default Value: BALANCED
43+
/// </param>
44+
/// <param name="colorPalette">
45+
/// Only available for model version V_2 and V_2_TURBO. A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members).
46+
/// </param>
47+
/// <param name="styleCodes">
48+
/// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.<br/>
49+
/// Example: [AAFF5733, 0133FF57, DE3357FF]
50+
/// </param>
51+
/// <param name="styleReferenceImages">
52+
/// A set of images to use as style references. The images should be in JPEG, PNG or WebP format.
53+
/// </param>
54+
/// <param name="cancellationToken">The token to cancel the operation with</param>
55+
/// <exception cref="global::System.InvalidOperationException"></exception>
56+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostReframeImageV3Async(
57+
byte[] imageFile,
58+
string imageFilename,
59+
global::Ideogram.ResolutionV3 resolution,
60+
int? numImages = default,
61+
int? seed = default,
62+
global::Ideogram.RenderingSpeed? renderingSpeed = default,
63+
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
64+
global::System.Collections.Generic.IList<string>? styleCodes = default,
65+
global::System.Collections.Generic.IList<byte[]>? styleReferenceImages = default,
66+
global::System.Threading.CancellationToken cancellationToken = default);
67+
}
68+
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
#nullable enable
2+
3+
namespace Ideogram
4+
{
5+
public partial interface IGenerateClient
6+
{
7+
/// <summary>
8+
/// Remix with Ideogram 3.0<br/>
9+
/// Remix provided images synchronously based on a given prompt and optional parameters with the Ideogram 3.0 model.<br/>
10+
/// Input images are cropped to the chosen aspect ratio before being remixed.<br/>
11+
/// Supported image formats include JPEG, PNG, and WebP.<br/>
12+
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
13+
/// </summary>
14+
/// <param name="request"></param>
15+
/// <param name="cancellationToken">The token to cancel the operation with</param>
16+
/// <exception cref="global::Ideogram.ApiException"></exception>
17+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostRemixImageV3Async(
18+
global::Ideogram.RemixImageRequestV3 request,
19+
global::System.Threading.CancellationToken cancellationToken = default);
20+
21+
/// <summary>
22+
/// Remix with Ideogram 3.0<br/>
23+
/// Remix provided images synchronously based on a given prompt and optional parameters with the Ideogram 3.0 model.<br/>
24+
/// Input images are cropped to the chosen aspect ratio before being remixed.<br/>
25+
/// Supported image formats include JPEG, PNG, and WebP.<br/>
26+
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
27+
/// </summary>
28+
/// <param name="imageFile">
29+
/// The image to remix binary; only JPEG, WebP and PNG formats are supported at this time
30+
/// </param>
31+
/// <param name="imageFilename">
32+
/// The image to remix binary; only JPEG, WebP and PNG formats are supported at this time
33+
/// </param>
34+
/// <param name="prompt">
35+
/// The prompt to use to generate the image.<br/>
36+
/// Example: A photo of a cat
37+
/// </param>
38+
/// <param name="imageWeight">
39+
/// Default Value: 50<br/>
40+
/// Example: 50
41+
/// </param>
42+
/// <param name="seed">
43+
/// Example: 12345
44+
/// </param>
45+
/// <param name="resolution">
46+
/// The resolutions supported for model version V_3.<br/>
47+
/// Example: 1024x1024
48+
/// </param>
49+
/// <param name="aspectRatio">
50+
/// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1:1.
51+
/// </param>
52+
/// <param name="renderingSpeed">
53+
/// The rendering speed to use.<br/>
54+
/// Default Value: BALANCED
55+
/// </param>
56+
/// <param name="magicPrompt">
57+
/// Determine if MagicPrompt should be used in generating the request or not<br/>
58+
/// Example: ON
59+
/// </param>
60+
/// <param name="negativePrompt">
61+
/// Description of what to exclude from an image. Descriptions in the prompt take precedence<br/>
62+
/// to descriptions in the negative prompt.<br/>
63+
/// Example: brush strokes, painting
64+
/// </param>
65+
/// <param name="numImages">
66+
/// Number of images to generate.<br/>
67+
/// Default Value: 1
68+
/// </param>
69+
/// <param name="colorPalette">
70+
/// Only available for model version V_2 and V_2_TURBO. A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members).
71+
/// </param>
72+
/// <param name="styleCodes">
73+
/// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.<br/>
74+
/// Example: [AAFF5733, 0133FF57, DE3357FF]
75+
/// </param>
76+
/// <param name="styleType">
77+
/// The style type to generate with.<br/>
78+
/// Example: REALISTIC
79+
/// </param>
80+
/// <param name="styleReferenceImages">
81+
/// A set of images to use as style references. The images should be in JPEG, PNG or WebP format.
82+
/// </param>
83+
/// <param name="cancellationToken">The token to cancel the operation with</param>
84+
/// <exception cref="global::System.InvalidOperationException"></exception>
85+
global::System.Threading.Tasks.Task<global::Ideogram.ImageGenerationResponseV3> PostRemixImageV3Async(
86+
byte[] imageFile,
87+
string imageFilename,
88+
string prompt,
89+
int? imageWeight = default,
90+
int? seed = default,
91+
global::Ideogram.ResolutionV3? resolution = default,
92+
global::Ideogram.AspectRatioV3? aspectRatio = default,
93+
global::Ideogram.RenderingSpeed? renderingSpeed = default,
94+
global::Ideogram.MagicPromptOption? magicPrompt = default,
95+
string? negativePrompt = default,
96+
int? numImages = default,
97+
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
98+
global::System.Collections.Generic.IList<string>? styleCodes = default,
99+
global::Ideogram.StyleTypeV3? styleType = default,
100+
global::System.Collections.Generic.IList<byte[]>? styleReferenceImages = default,
101+
global::System.Threading.CancellationToken cancellationToken = default);
102+
}
103+
}

0 commit comments

Comments
 (0)