diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
index 1db3c96..cb8f458 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
@@ -25,7 +25,7 @@ partial void ProcessPostEditImageResponseContent(
/// Edit
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image
/// should be edited, while the prompt and chosen style type can further guide the edit.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
@@ -299,20 +299,20 @@ partial void ProcessPostEditImageResponseContent(
/// Edit
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image
/// should be edited, while the prompt and chosen style type can further guide the edit.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
///
/// The prompt used to describe the edited result.
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
new file mode 100644
index 0000000..5690b43
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
@@ -0,0 +1,344 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class GenerateClient
+ {
+ partial void PreparePostReframeImageArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Ideogram.ReframeImageRequest request);
+ partial void PreparePostReframeImageRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Ideogram.ReframeImageRequest request);
+ partial void ProcessPostReframeImageResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPostReframeImageResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Reframe
+ /// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.
+ /// Image links are available for a limited period of time; if you would like to keep the image, you must download it
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostReframeImageAsync(
+ global::Ideogram.ReframeImageRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePostReframeImageArguments(
+ httpClient: HttpClient,
+ request: request);
+
+ var __pathBuilder = new PathBuilder(
+ path: "/reframe",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()),
+ name: "image_file",
+ fileName: request.ImageFilename ?? string.Empty);
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Resolution.ToValueString()}"),
+ name: "resolution");
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Model.ToValueString()}"),
+ name: "model");
+ if (request.NumImages != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
+ name: "num_images");
+ }
+ if (request.Seed != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Seed}"),
+ name: "seed");
+ }
+ if (request.StyleType != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
+ name: "style_type");
+ }
+ __httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePostReframeImageRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessPostReframeImageResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ //
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ if (ReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_400,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Prompt or Image failed the safety checks.
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::Ideogram.GenerateImageSafetyError? __value_422 = null;
+ if (ReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = global::Ideogram.GenerateImageSafetyError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = await global::Ideogram.GenerateImageSafetyError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 429)
+ {
+ string? __content_429 = null;
+ if (ReadResponseAsString)
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_429,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessPostReframeImageResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return
+ global::Ideogram.GenerateImageResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.GenerateImageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+
+ ///
+ /// Reframe
+ /// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.
+ /// Image links are available for a limited period of time; if you would like to keep the image, you must download it
+ ///
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// (For model_version for 2.0 only, cannot be used in conjunction with aspect_ratio) The resolution to use for image generation, represented in width x height. If not specified, defaults to using aspect_ratio.
+ /// Example: RESOLUTION_1024_1024
+ ///
+ ///
+ /// The model used to generate an image or edit one. /generate and /remix supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// Default Value: V_2
+ /// Example: V_2_TURBO
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Example: 12345
+ ///
+ ///
+ /// The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.
+ /// Example: REALISTIC
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostReframeImageAsync(
+ byte[] imageFile,
+ string imageFilename,
+ global::Ideogram.Resolution resolution,
+ global::Ideogram.ModelEnum model,
+ int? numImages = default,
+ int? seed = default,
+ global::Ideogram.StyleType? styleType = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Ideogram.ReframeImageRequest
+ {
+ ImageFile = imageFile,
+ ImageFilename = imageFilename,
+ Resolution = resolution,
+ Model = model,
+ NumImages = numImages,
+ Seed = seed,
+ StyleType = styleType,
+ };
+
+ return await PostReframeImageAsync(
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
index 8888ba9..e8aa8d6 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
@@ -25,7 +25,7 @@ partial void ProcessPostRemixImageResponseContent(
/// Remix
/// Remix provided images synchronously based on a given prompt and optional parameters
/// Input images are cropped to the chosen aspect ratio before being remixed.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
@@ -268,17 +268,17 @@ partial void ProcessPostRemixImageResponseContent(
/// Remix
/// Remix provided images synchronously based on a given prompt and optional parameters
/// Input images are cropped to the chosen aspect ratio before being remixed.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
/// A request to generate a new image using a provided image and a prompt.
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
/// The token to cancel the operation with
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
index 511cbcb..a544526 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
@@ -24,7 +24,7 @@ partial void ProcessPostUpscaleImageResponseContent(
///
/// Upscale
/// Upscale provided images synchronously with an optional prompt.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
@@ -266,17 +266,17 @@ partial void ProcessPostUpscaleImageResponseContent(
///
/// Upscale
/// Upscale provided images synchronously with an optional prompt.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
/// A request to upscale a provided image with the help of an optional prompt.
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
/// The token to cancel the operation with
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
index 8f8fd10..4a13487 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
@@ -8,7 +8,7 @@ public partial interface IGenerateClient
/// Edit
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image
/// should be edited, while the prompt and chosen style type can further guide the edit.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
@@ -22,20 +22,20 @@ public partial interface IGenerateClient
/// Edit
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image
/// should be edited, while the prompt and chosen style type can further guide the edit.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
///
/// The prompt used to describe the edited result.
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImage.g.cs
new file mode 100644
index 0000000..45ec175
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImage.g.cs
@@ -0,0 +1,61 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IGenerateClient
+ {
+ ///
+ /// Reframe
+ /// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.
+ /// Image links are available for a limited period of time; if you would like to keep the image, you must download it
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostReframeImageAsync(
+ global::Ideogram.ReframeImageRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Reframe
+ /// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.
+ /// Image links are available for a limited period of time; if you would like to keep the image, you must download it
+ ///
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// (For model_version for 2.0 only, cannot be used in conjunction with aspect_ratio) The resolution to use for image generation, represented in width x height. If not specified, defaults to using aspect_ratio.
+ /// Example: RESOLUTION_1024_1024
+ ///
+ ///
+ /// The model used to generate an image or edit one. /generate and /remix supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// Default Value: V_2
+ /// Example: V_2_TURBO
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Example: 12345
+ ///
+ ///
+ /// The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.
+ /// Example: REALISTIC
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostReframeImageAsync(
+ byte[] imageFile,
+ string imageFilename,
+ global::Ideogram.Resolution resolution,
+ global::Ideogram.ModelEnum model,
+ int? numImages = default,
+ int? seed = default,
+ global::Ideogram.StyleType? styleType = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs
index 8d361dd..7b459f0 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs
@@ -8,7 +8,7 @@ public partial interface IGenerateClient
/// Remix
/// Remix provided images synchronously based on a given prompt and optional parameters
/// Input images are cropped to the chosen aspect ratio before being remixed.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
@@ -22,17 +22,17 @@ public partial interface IGenerateClient
/// Remix
/// Remix provided images synchronously based on a given prompt and optional parameters
/// Input images are cropped to the chosen aspect ratio before being remixed.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
/// A request to generate a new image using a provided image and a prompt.
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
/// The token to cancel the operation with
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs
index fd8747e..de203cc 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs
@@ -7,7 +7,7 @@ public partial interface IGenerateClient
///
/// Upscale
/// Upscale provided images synchronously with an optional prompt.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
@@ -20,17 +20,17 @@ public partial interface IGenerateClient
///
/// Upscale
/// Upscale provided images synchronously with an optional prompt.
- /// Supported image formats include JPEG, PNG, and WEBP.
+ /// Supported image formats include JPEG, PNG, and WebP.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
/// A request to upscale a provided image with the help of an optional prompt.
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
/// The token to cancel the operation with
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs b/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs
index 7fca756..f4fa5cf 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs
@@ -7,7 +7,7 @@ public partial interface IVisionClient
///
/// Describe
/// Describe an image
- /// Supported image formats include JPEG, PNG, and WEBP
+ /// Supported image formats include JPEG, PNG, and WebP
///
///
/// The token to cancel the operation with
@@ -19,7 +19,7 @@ public partial interface IVisionClient
///
/// Describe
/// Describe an image
- /// Supported image formats include JPEG, PNG, and WEBP
+ /// Supported image formats include JPEG, PNG, and WebP
///
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs
index c2cc402..20ae112 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
public sealed partial class DescribeRequest
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs
index f531660..84e1b90 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs
@@ -9,28 +9,28 @@ namespace Ideogram
public sealed partial class EditImageRequest
{
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Text.Json.Serialization.JsonPropertyName("image_file")]
[global::System.Text.Json.Serialization.JsonRequired]
public required byte[] ImageFile { get; set; }
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Text.Json.Serialization.JsonPropertyName("image_filename")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ImageFilename { get; set; }
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
[global::System.Text.Json.Serialization.JsonPropertyName("mask")]
[global::System.Text.Json.Serialization.JsonRequired]
public required byte[] Mask { get; set; }
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
[global::System.Text.Json.Serialization.JsonPropertyName("maskname")]
[global::System.Text.Json.Serialization.JsonRequired]
@@ -98,16 +98,16 @@ public sealed partial class EditImageRequest
/// Initializes a new instance of the class.
///
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// The image being edited; only JPEG, WEBPs and PNGs are supported at this time
+ /// The image being edited; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
///
- /// 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, WEBPs and PNGs are supported at this time
+ /// 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
///
///
/// The prompt used to describe the edited result.
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequest.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequest.Json.g.cs
new file mode 100644
index 0000000..cb31b43
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class ReframeImageRequest
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Ideogram.ReframeImageRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.ReframeImageRequest),
+ jsonSerializerContext) as global::Ideogram.ReframeImageRequest;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Ideogram.ReframeImageRequest? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Ideogram.ReframeImageRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.ReframeImageRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequest.g.cs
new file mode 100644
index 0000000..ef1d47a
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequest.g.cs
@@ -0,0 +1,129 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class ReframeImageRequest
+ {
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("image_file")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required byte[] ImageFile { get; set; }
+
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("image_filename")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string ImageFilename { get; set; }
+
+ ///
+ /// (For model_version for 2.0 only, cannot be used in conjunction with aspect_ratio) The resolution to use for image generation, represented in width x height. If not specified, defaults to using aspect_ratio.
+ /// Example: RESOLUTION_1024_1024
+ ///
+ /// RESOLUTION_1024_1024
+ [global::System.Text.Json.Serialization.JsonPropertyName("resolution")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ResolutionJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Ideogram.Resolution Resolution { get; set; }
+
+ ///
+ /// The model used to generate an image or edit one. /generate and /remix supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// Default Value: V_2
+ /// Example: V_2_TURBO
+ ///
+ /// global::Ideogram.ModelEnum.V2
+ /// V_2_TURBO
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ModelEnumJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Ideogram.ModelEnum Model { get; set; } = global::Ideogram.ModelEnum.V2;
+
+ ///
+ /// Default Value: 1
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_images")]
+ public int? NumImages { get; set; }
+
+ ///
+ /// Example: 12345
+ ///
+ /// 12345
+ [global::System.Text.Json.Serialization.JsonPropertyName("seed")]
+ public int? Seed { get; set; }
+
+ ///
+ /// The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.
+ /// Example: REALISTIC
+ ///
+ /// REALISTIC
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StyleTypeJsonConverter))]
+ public global::Ideogram.StyleType? StyleType { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image being reframed; only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// (For model_version for 2.0 only, cannot be used in conjunction with aspect_ratio) The resolution to use for image generation, represented in width x height. If not specified, defaults to using aspect_ratio.
+ /// Example: RESOLUTION_1024_1024
+ ///
+ ///
+ /// The model used to generate an image or edit one. /generate and /remix supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// Default Value: V_2
+ /// Example: V_2_TURBO
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Example: 12345
+ ///
+ ///
+ /// The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.
+ /// Example: REALISTIC
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public ReframeImageRequest(
+ byte[] imageFile,
+ string imageFilename,
+ global::Ideogram.Resolution resolution,
+ global::Ideogram.ModelEnum model,
+ int? numImages,
+ int? seed,
+ global::Ideogram.StyleType? styleType)
+ {
+ this.ImageFile = imageFile ?? throw new global::System.ArgumentNullException(nameof(imageFile));
+ this.ImageFilename = imageFilename ?? throw new global::System.ArgumentNullException(nameof(imageFilename));
+ this.Resolution = resolution;
+ this.Model = model;
+ this.NumImages = numImages;
+ this.Seed = seed;
+ this.StyleType = styleType;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ReframeImageRequest()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequest.g.cs
index 063849d..72a5893 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequest.g.cs
@@ -16,14 +16,14 @@ public sealed partial class RemixImageRequest
public required global::Ideogram.InitialImageRequest ImageRequest { get; set; }
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Text.Json.Serialization.JsonPropertyName("image_file")]
[global::System.Text.Json.Serialization.JsonRequired]
public required byte[] ImageFile { get; set; }
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Text.Json.Serialization.JsonPropertyName("image_filename")]
[global::System.Text.Json.Serialization.JsonRequired]
@@ -42,10 +42,10 @@ public sealed partial class RemixImageRequest
/// A request to generate a new image using a provided image and a prompt.
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public RemixImageRequest(
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleImageRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleImageRequest.g.cs
index a2798b4..bcc3805 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleImageRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleImageRequest.g.cs
@@ -16,14 +16,14 @@ public sealed partial class UpscaleImageRequest
public required global::Ideogram.UpscaleInitialImageRequest ImageRequest { get; set; }
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Text.Json.Serialization.JsonPropertyName("image_file")]
[global::System.Text.Json.Serialization.JsonRequired]
public required byte[] ImageFile { get; set; }
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Text.Json.Serialization.JsonPropertyName("image_filename")]
[global::System.Text.Json.Serialization.JsonRequired]
@@ -42,10 +42,10 @@ public sealed partial class UpscaleImageRequest
/// A request to upscale a provided image with the help of an optional prompt.
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
///
- /// An image binary; only JPEG, WEBPs and PNGs are supported at this time
+ /// An image binary; only JPEG, WebP and PNG formats are supported at this time
///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public UpscaleImageRequest(
diff --git a/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs b/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs
index c9178f3..e043ec7 100644
--- a/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs
@@ -24,7 +24,7 @@ partial void ProcessPostDescribeResponseContent(
///
/// Describe
/// Describe an image
- /// Supported image formats include JPEG, PNG, and WEBP
+ /// Supported image formats include JPEG, PNG, and WebP
///
///
/// The token to cancel the operation with
@@ -238,7 +238,7 @@ partial void ProcessPostDescribeResponseContent(
///
/// Describe
/// Describe an image
- /// Supported image formats include JPEG, PNG, and WEBP
+ /// Supported image formats include JPEG, PNG, and WebP
///
///
///
diff --git a/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
index e8adbb2..7136a07 100644
--- a/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
@@ -154,106 +154,110 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Ideogram.UpscaleImageRequest? Type32 { get; set; }
+ public global::Ideogram.ReframeImageRequest? Type32 { get; set; }
///
///
///
- public global::Ideogram.UpscaleInitialImageRequest? Type33 { get; set; }
+ public global::Ideogram.UpscaleImageRequest? Type33 { get; set; }
///
///
///
- public global::Ideogram.GenerateImageResponse? Type34 { get; set; }
+ public global::Ideogram.UpscaleInitialImageRequest? Type34 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type35 { get; set; }
+ public global::Ideogram.GenerateImageResponse? Type35 { get; set; }
///
///
///
- public global::Ideogram.ImageObject? Type36 { get; set; }
+ public global::System.Collections.Generic.IList? Type36 { get; set; }
///
///
///
- public bool? Type37 { get; set; }
+ public global::Ideogram.ImageObject? Type37 { get; set; }
///
///
///
- public global::Ideogram.GenerateImageSafetyError? Type38 { get; set; }
+ public bool? Type38 { get; set; }
///
///
///
- public global::Ideogram.ImageSafetyError? Type39 { get; set; }
+ public global::Ideogram.GenerateImageSafetyError? Type39 { get; set; }
///
///
///
- public global::Ideogram.ManageApiSubscriptionResponse? Type40 { get; set; }
+ public global::Ideogram.ImageSafetyError? Type40 { get; set; }
///
///
///
- public global::Ideogram.MetronomeLinks? Type41 { get; set; }
+ public global::Ideogram.ManageApiSubscriptionResponse? Type41 { get; set; }
///
///
///
- public global::Ideogram.RechargeSettingsResponse? Type42 { get; set; }
+ public global::Ideogram.MetronomeLinks? Type42 { get; set; }
///
///
///
- public global::Ideogram.RechargeSettings? Type43 { get; set; }
+ public global::Ideogram.RechargeSettingsResponse? Type43 { get; set; }
///
///
///
- public global::Ideogram.Price? Type44 { get; set; }
+ public global::Ideogram.RechargeSettings? Type44 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionResponse? Type45 { get; set; }
+ public global::Ideogram.Price? Type45 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionError? Type46 { get; set; }
+ public global::Ideogram.PostApiSubscriptionResponse? Type46 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionRequest? Type47 { get; set; }
+ public global::Ideogram.PostApiSubscriptionError? Type47 { get; set; }
///
///
///
- public global::Ideogram.PostApiReactivateResponse? Type48 { get; set; }
+ public global::Ideogram.PostApiSubscriptionRequest? Type48 { get; set; }
///
///
///
- public global::Ideogram.GetApiKeysResponse? Type49 { get; set; }
+ public global::Ideogram.PostApiReactivateResponse? Type49 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type50 { get; set; }
+ public global::Ideogram.GetApiKeysResponse? Type50 { get; set; }
///
///
///
- public global::Ideogram.RedactedApiKey? Type51 { get; set; }
+ public global::System.Collections.Generic.IList? Type51 { get; set; }
///
///
///
- public global::Ideogram.PostApiKeyResponse? Type52 { get; set; }
+ public global::Ideogram.RedactedApiKey? Type52 { get; set; }
///
///
///
- public global::Ideogram.ManageApiStripeSubscriptionResponse? Type53 { get; set; }
+ public global::Ideogram.PostApiKeyResponse? Type53 { get; set; }
///
///
///
- public global::Ideogram.GetApiTermsResponse? Type54 { get; set; }
+ public global::Ideogram.ManageApiStripeSubscriptionResponse? Type54 { get; set; }
///
///
///
- public global::Ideogram.ApiTerms? Type55 { get; set; }
+ public global::Ideogram.GetApiTermsResponse? Type55 { get; set; }
///
///
///
- public global::Ideogram.PostApiTermsRequest? Type56 { get; set; }
+ public global::Ideogram.ApiTerms? Type56 { get; set; }
///
///
///
- public global::Ideogram.PostInternalTesting200Response? Type57 { get; set; }
+ public global::Ideogram.PostApiTermsRequest? Type57 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.PostInternalTesting200Response? Type58 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Ideogram/openapi.yaml b/src/libs/Ideogram/openapi.yaml
index ecc03a5..561102b 100644
--- a/src/libs/Ideogram/openapi.yaml
+++ b/src/libs/Ideogram/openapi.yaml
@@ -11,7 +11,7 @@ paths:
tags:
- vision
summary: Describe
- description: "Describe an image\n\nSupported image formats include JPEG, PNG, and WEBP\n"
+ description: "Describe an image\n\nSupported image formats include JPEG, PNG, and WebP\n"
operationId: post_describe
requestBody:
content:
@@ -42,7 +42,7 @@ paths:
tags:
- generate
summary: Edit
- description: "Edit a given image synchronously using the provided mask. The mask indicates which part of the image\nshould be edited, while the prompt and chosen style type can further guide the edit.\n\nSupported image formats include JPEG, PNG, and WEBP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n"
+ description: "Edit a given image synchronously using the provided mask. The mask indicates which part of the image\nshould be edited, while the prompt and chosen style type can further guide the edit.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n"
operationId: post_edit_image
requestBody:
description: A request to edit an image with Ideogram.
@@ -380,12 +380,47 @@ paths:
security:
- BearerAuth: [ ]
x-openapi-router-controller: external_api.generated.openapi.controllers.manage_controller
+ /reframe:
+ post:
+ tags:
+ - generate
+ summary: Reframe
+ description: "Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.\n\nImage links are available for a limited period of time; if you would like to keep the image, you must download it\n"
+ operationId: post_reframe_image
+ requestBody:
+ description: A request to reframe an image in a new resolution
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ReframeImageRequest'
+ required: true
+ x-body-name: body
+ responses:
+ '200':
+ description: Image re-frames generated successfully.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenerateImageResponse'
+ '400':
+ description: Invalid input provided.
+ '401':
+ description: Not authorized to generate an image.
+ '422':
+ description: Prompt or Image failed the safety checks.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenerateImageSafetyError'
+ '429':
+ description: Too many requests.
+ x-openapi-router-controller: external_api.generated.openapi.controllers.generate_controller
/remix:
post:
tags:
- generate
summary: Remix
- description: "Remix provided images synchronously based on a given prompt and optional parameters\n\nInput images are cropped to the chosen aspect ratio before being remixed.\n\nSupported image formats include JPEG, PNG, and WEBP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n"
+ description: "Remix provided images synchronously based on a given prompt and optional parameters\n\nInput images are cropped to the chosen aspect ratio before being remixed.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n"
operationId: post_remix_image
requestBody:
description: A request to remix a provided image with Ideogram. Input images are cropped to the chosen aspect ratio before being remixed.
@@ -423,7 +458,7 @@ paths:
tags:
- generate
summary: Upscale
- description: "Upscale provided images synchronously with an optional prompt.\n\nSupported image formats include JPEG, PNG, and WEBP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n"
+ description: "Upscale provided images synchronously with an optional prompt.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n"
operationId: post_upscale_image
requestBody:
description: A request to upscale a provided image with Ideogram.
@@ -481,7 +516,7 @@ components:
image_file:
type: string
format: binary
- description: 'An image binary; only JPEG, WEBPs and PNGs are supported at this time'
+ description: 'An image binary; only JPEG, WebP and PNG formats are supported at this time'
EditImageRequest:
required:
- image_file
@@ -492,11 +527,11 @@ components:
properties:
image_file:
type: string
- description: 'The image being edited; only JPEG, WEBPs and PNGs are supported at this time'
+ description: 'The image being edited; only JPEG, WebP and PNG formats are supported at this time'
format: binary
mask:
type: string
- description: '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, WEBPs and PNGs are supported at this time'
+ description: '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'
format: binary
prompt:
type: string
@@ -605,9 +640,30 @@ components:
$ref: '#/components/schemas/InitialImageRequest'
image_file:
type: string
- description: 'An image binary; only JPEG, WEBPs and PNGs are supported at this time'
+ description: 'An image binary; only JPEG, WebP and PNG formats are supported at this time'
format: binary
description: 'A request to generate an image from a source image and a provided caption, provided images are cropped to match the chosen output aspect ratio'
+ ReframeImageRequest:
+ required:
+ - image_file
+ - model
+ - resolution
+ type: object
+ properties:
+ image_file:
+ type: string
+ description: 'The image being reframed; only JPEG, WebP and PNG formats are supported at this time.'
+ format: binary
+ resolution:
+ $ref: '#/components/schemas/Resolution'
+ model:
+ $ref: '#/components/schemas/ModelEnum'
+ num_images:
+ $ref: '#/components/schemas/NumImages'
+ seed:
+ $ref: '#/components/schemas/Seed'
+ style_type:
+ $ref: '#/components/schemas/StyleType'
UpscaleImageRequest:
required:
- image_file
@@ -618,7 +674,7 @@ components:
$ref: '#/components/schemas/UpscaleInitialImageRequest'
image_file:
type: string
- description: 'An image binary; only JPEG, WEBPs and PNGs are supported at this time'
+ description: 'An image binary; only JPEG, WebP and PNG formats are supported at this time'
format: binary
ImageRequest:
title: ImageRequest
@@ -1174,25 +1230,6 @@ components:
type: string
description: The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.
example: REALISTIC
- AspectRatio:
- title: AspectRatio
- enum:
- - ASPECT_10_16
- - ASPECT_16_10
- - ASPECT_9_16
- - ASPECT_16_9
- - ASPECT_3_2
- - ASPECT_2_3
- - ASPECT_4_3
- - ASPECT_3_4
- - ASPECT_1_1
- - ASPECT_1_3
- - ASPECT_3_1
- type: string
- description: '(Cannot be used in conjunction with resolution) The aspect ratio to use for image generation, which determines the image''s resolution. Defaults to ASPECT_1_1.'
- externalDocs:
- url: https://docs.ideogram.ai/usage/advanced-prompting/aspect-ratios
- example: ASPECT_10_16
Resolution:
title: Resolution
enum:
@@ -1277,6 +1314,25 @@ components:
type: string
description: '(For model_version for 2.0 only, cannot be used in conjunction with aspect_ratio) The resolution to use for image generation, represented in width x height. If not specified, defaults to using aspect_ratio.'
example: RESOLUTION_1024_1024
+ AspectRatio:
+ title: AspectRatio
+ enum:
+ - ASPECT_10_16
+ - ASPECT_16_10
+ - ASPECT_9_16
+ - ASPECT_16_9
+ - ASPECT_3_2
+ - ASPECT_2_3
+ - ASPECT_4_3
+ - ASPECT_3_4
+ - ASPECT_1_1
+ - ASPECT_1_3
+ - ASPECT_3_1
+ type: string
+ description: '(Cannot be used in conjunction with resolution) The aspect ratio to use for image generation, which determines the image''s resolution. Defaults to ASPECT_1_1.'
+ externalDocs:
+ url: https://docs.ideogram.ai/usage/advanced-prompting/aspect-ratios
+ example: ASPECT_10_16
ColorPaletteWithPresetNameOrMembers:
title: ColorPaletteWithPresetNameOrMembers
oneOf: