diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
index 826bc3a..d76ebc0 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
@@ -346,7 +346,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
/// Example: 12345
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
index a1cc0d0..7731406 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
@@ -318,7 +318,7 @@ partial void ProcessPostReframeImageV3ResponseContent(
/// The image being reframed (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
index 942ed20..23d445e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
@@ -370,7 +370,7 @@ partial void ProcessPostRemixImageV3ResponseContent(
/// Example: 12345
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
new file mode 100644
index 0000000..b00a103
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
@@ -0,0 +1,394 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class GenerateClient
+ {
+ partial void PreparePostReplaceBackgroundV3Arguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Ideogram.ReplaceBackgroundRequestV3 request);
+ partial void PreparePostReplaceBackgroundV3Request(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Ideogram.ReplaceBackgroundRequestV3 request);
+ partial void ProcessPostReplaceBackgroundV3Response(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPostReplaceBackgroundV3ResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Replace Background with Ideogram 3.0
+ /// Replace the background of a given image synchronously using a prompt with Ideogram 3.0. The foreground subject
+ /// will be identified and kept, while the background is replaced based on the prompt and chosen style.
+ /// 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 token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostReplaceBackgroundV3Async(
+ global::Ideogram.ReplaceBackgroundRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePostReplaceBackgroundV3Arguments(
+ httpClient: HttpClient,
+ request: request);
+
+ var __pathBuilder = new PathBuilder(
+ path: "/v1/ideogram-v3/replace-background",
+ 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.Image ?? global::System.Array.Empty()),
+ name: "image",
+ fileName: request.Imagename ?? string.Empty);
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
+ name: "prompt");
+ if (request.MagicPrompt != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
+ name: "magic_prompt");
+ }
+ 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.RenderingSpeed != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
+ name: "rendering_speed");
+ }
+ if (request.ColorPalette != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.ColorPalette?.ToString() ?? string.Empty),
+ name: "color_palette");
+ }
+ if (request.StyleCodes != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleCodes, x => x))}]"),
+ name: "style_codes");
+ }
+ if (request.StyleReferenceImages != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
+ name: "style_reference_images");
+ }
+ __httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePostReplaceBackgroundV3Request(
+ 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);
+ ProcessPostReplaceBackgroundV3Response(
+ 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: __content_400 ?? __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: __content_401 ?? __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 Initial 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: __content_422 ?? __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: __content_429 ?? __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(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessPostReplaceBackgroundV3ResponseContent(
+ 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.ImageGenerationResponseV3.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(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.ImageGenerationResponseV3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+
+ ///
+ /// Replace Background with Ideogram 3.0
+ /// Replace the background of a given image synchronously using a prompt with Ideogram 3.0. The foreground subject
+ /// will be identified and kept, while the background is replaced based on the prompt and chosen style.
+ /// 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 whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The prompt describing the desired new background.
+ /// Example: A vibrant cityscape at night.
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// The number of images to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: BALANCED
+ ///
+ ///
+ /// 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). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ ///
+ /// 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.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostReplaceBackgroundV3Async(
+ byte[] image,
+ string imagename,
+ string prompt,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ int? numImages = default,
+ int? seed = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
+ global::System.Collections.Generic.IList? styleCodes = default,
+ global::System.Collections.Generic.IList? styleReferenceImages = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Ideogram.ReplaceBackgroundRequestV3
+ {
+ Image = image,
+ Imagename = imagename,
+ Prompt = prompt,
+ MagicPrompt = magicPrompt,
+ NumImages = numImages,
+ Seed = seed,
+ RenderingSpeed = renderingSpeed,
+ ColorPalette = colorPalette,
+ StyleCodes = styleCodes,
+ StyleReferenceImages = styleReferenceImages,
+ };
+
+ return await PostReplaceBackgroundV3Async(
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
index 78dc7ab..8637a18 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
@@ -30,7 +30,7 @@ public partial interface IGenerateClient
/// Example: 12345
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs
index 04cb77c..3bc1323 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs
@@ -28,7 +28,7 @@ public partial interface IGenerateClient
/// The image being reframed (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs
index 0b12368..59231cf 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs
@@ -44,7 +44,7 @@ public partial interface IGenerateClient
/// Example: 12345
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReplaceBackgroundV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReplaceBackgroundV3.g.cs
new file mode 100644
index 0000000..2c7a491
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReplaceBackgroundV3.g.cs
@@ -0,0 +1,79 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IGenerateClient
+ {
+ ///
+ /// Replace Background with Ideogram 3.0
+ /// Replace the background of a given image synchronously using a prompt with Ideogram 3.0. The foreground subject
+ /// will be identified and kept, while the background is replaced based on the prompt and chosen style.
+ /// 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 token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostReplaceBackgroundV3Async(
+ global::Ideogram.ReplaceBackgroundRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Replace Background with Ideogram 3.0
+ /// Replace the background of a given image synchronously using a prompt with Ideogram 3.0. The foreground subject
+ /// will be identified and kept, while the background is replaced based on the prompt and chosen style.
+ /// 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 whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The prompt describing the desired new background.
+ /// Example: A vibrant cityscape at night.
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// The number of images to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: BALANCED
+ ///
+ ///
+ /// 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). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ ///
+ /// 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.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostReplaceBackgroundV3Async(
+ byte[] image,
+ string imagename,
+ string prompt,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ int? numImages = default,
+ int? seed = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
+ global::System.Collections.Generic.IList? styleCodes = default,
+ global::System.Collections.Generic.IList? styleReferenceImages = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageRequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageRequestV3.g.cs
index d561344..a275597 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageRequestV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageRequestV3.g.cs
@@ -26,7 +26,7 @@ public sealed partial class GenerateImageRequestV3
public int? Seed { get; set; }
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
/// 1280x800
@@ -122,7 +122,7 @@ public sealed partial class GenerateImageRequestV3
/// Example: 12345
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObjectV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObjectV3.g.cs
index 08ce312..4ef28a5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObjectV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObjectV3.g.cs
@@ -26,7 +26,7 @@ public sealed partial class ImageGenerationObjectV3
public required string Prompt { get; set; }
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
/// 1280x800
@@ -78,7 +78,7 @@ public sealed partial class ImageGenerationObjectV3
/// Example: A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there's an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequestV3.g.cs
index b93594a..1b97178 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequestV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ReframeImageRequestV3.g.cs
@@ -23,7 +23,7 @@ public sealed partial class ReframeImageRequestV3
public required string Imagename { get; set; }
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
/// 1280x800
@@ -92,7 +92,7 @@ public sealed partial class ReframeImageRequestV3
/// The image being reframed (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequestV3.g.cs
index b5c05ab..832360c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequestV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.RemixImageRequestV3.g.cs
@@ -48,7 +48,7 @@ public sealed partial class RemixImageRequestV3
public int? Seed { get; set; }
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
/// 1280x800
@@ -154,7 +154,7 @@ public sealed partial class RemixImageRequestV3
/// Example: 12345
///
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ReplaceBackgroundRequestV3.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ReplaceBackgroundRequestV3.Json.g.cs
new file mode 100644
index 0000000..13a2c54
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ReplaceBackgroundRequestV3.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class ReplaceBackgroundRequestV3
+ {
+ ///
+ /// 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.ReplaceBackgroundRequestV3? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.ReplaceBackgroundRequestV3),
+ jsonSerializerContext) as global::Ideogram.ReplaceBackgroundRequestV3;
+ }
+
+ ///
+ /// 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.ReplaceBackgroundRequestV3? 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.ReplaceBackgroundRequestV3),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.ReplaceBackgroundRequestV3;
+ }
+
+ ///
+ /// 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.ReplaceBackgroundRequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ReplaceBackgroundRequestV3.g.cs
new file mode 100644
index 0000000..dc29622
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ReplaceBackgroundRequestV3.g.cs
@@ -0,0 +1,166 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class ReplaceBackgroundRequestV3
+ {
+ ///
+ /// The image whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("image")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required byte[] Image { get; set; }
+
+ ///
+ /// The image whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("imagename")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Imagename { get; set; }
+
+ ///
+ /// The prompt describing the desired new background.
+ /// Example: A vibrant cityscape at night.
+ ///
+ /// A vibrant cityscape at night.
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Prompt { get; set; }
+
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ /// ON
+ [global::System.Text.Json.Serialization.JsonPropertyName("magic_prompt")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
+ public global::Ideogram.MagicPromptOption? MagicPrompt { get; set; }
+
+ ///
+ /// The number of images to generate.
+ /// Default Value: 1
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_images")]
+ public int? NumImages { get; set; }
+
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ /// 12345
+ [global::System.Text.Json.Serialization.JsonPropertyName("seed")]
+ public int? Seed { get; set; }
+
+ ///
+ /// The rendering speed to use.
+ /// Default Value: BALANCED
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("rendering_speed")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.RenderingSpeedJsonConverter))]
+ public global::Ideogram.RenderingSpeed? RenderingSpeed { get; set; }
+
+ ///
+ /// 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). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("color_palette")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembersJsonConverter))]
+ public global::Ideogram.ColorPaletteWithPresetNameOrMembers? ColorPalette { get; set; }
+
+ ///
+ /// 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.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ /// [AAFF5733, 0133FF57, DE3357FF]
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_codes")]
+ public global::System.Collections.Generic.IList? StyleCodes { get; set; }
+
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_reference_images")]
+ public global::System.Collections.Generic.IList? StyleReferenceImages { 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 whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The prompt describing the desired new background.
+ /// Example: A vibrant cityscape at night.
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// The number of images to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: BALANCED
+ ///
+ ///
+ /// 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). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ ///
+ /// 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.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public ReplaceBackgroundRequestV3(
+ byte[] image,
+ string imagename,
+ string prompt,
+ global::Ideogram.MagicPromptOption? magicPrompt,
+ int? numImages,
+ int? seed,
+ global::Ideogram.RenderingSpeed? renderingSpeed,
+ global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette,
+ global::System.Collections.Generic.IList? styleCodes,
+ global::System.Collections.Generic.IList? styleReferenceImages)
+ {
+ this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
+ this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
+ this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
+ this.MagicPrompt = magicPrompt;
+ this.NumImages = numImages;
+ this.Seed = seed;
+ this.RenderingSpeed = renderingSpeed;
+ this.ColorPalette = colorPalette;
+ this.StyleCodes = styleCodes;
+ this.StyleReferenceImages = styleReferenceImages;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ReplaceBackgroundRequestV3()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ResolutionV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ResolutionV3.g.cs
index d7b4eee..85f1ca3 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ResolutionV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ResolutionV3.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- /// The resolutions supported for model version V_3.
+ /// The resolutions supported for Ideogram 3.0.
/// Example: 1280x800
///
public enum ResolutionV3
diff --git a/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
index 338a5e6..2385b94 100644
--- a/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
@@ -158,166 +158,170 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Ideogram.InternalTestingRequest? Type33 { get; set; }
+ public global::Ideogram.ReplaceBackgroundRequestV3? Type33 { get; set; }
///
///
///
- public global::Ideogram.InternalTestingNestedObject? Type34 { get; set; }
+ public global::Ideogram.InternalTestingRequest? Type34 { get; set; }
///
///
///
- public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type35 { get; set; }
+ public global::Ideogram.InternalTestingNestedObject? Type35 { get; set; }
///
///
///
- public global::System.DateTime? Type36 { get; set; }
+ public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type36 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type37 { get; set; }
+ public global::System.DateTime? Type37 { get; set; }
///
///
///
- public global::Ideogram.InternalTestingEnumField? Type38 { get; set; }
+ public global::System.Collections.Generic.IList? Type38 { get; set; }
///
///
///
- public global::Ideogram.RemixImageRequest? Type39 { get; set; }
+ public global::Ideogram.InternalTestingEnumField? Type39 { get; set; }
///
///
///
- public global::Ideogram.InitialImageRequest? Type40 { get; set; }
+ public global::Ideogram.RemixImageRequest? Type40 { get; set; }
///
///
///
- public global::Ideogram.ReframeImageRequest? Type41 { get; set; }
+ public global::Ideogram.InitialImageRequest? Type41 { get; set; }
///
///
///
- public global::Ideogram.UpscaleImageRequest? Type42 { get; set; }
+ public global::Ideogram.ReframeImageRequest? Type42 { get; set; }
///
///
///
- public global::Ideogram.UpscaleInitialImageRequest? Type43 { get; set; }
+ public global::Ideogram.UpscaleImageRequest? Type43 { get; set; }
///
///
///
- public global::Ideogram.GenerateImageResponse? Type44 { get; set; }
+ public global::Ideogram.UpscaleInitialImageRequest? Type44 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type45 { get; set; }
+ public global::Ideogram.GenerateImageResponse? Type45 { get; set; }
///
///
///
- public global::Ideogram.ImageObject? Type46 { get; set; }
+ public global::System.Collections.Generic.IList? Type46 { get; set; }
///
///
///
- public bool? Type47 { get; set; }
+ public global::Ideogram.ImageObject? Type47 { get; set; }
///
///
///
- public global::Ideogram.ImageGenerationResponseV3? Type48 { get; set; }
+ public bool? Type48 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type49 { get; set; }
+ public global::Ideogram.ImageGenerationResponseV3? Type49 { get; set; }
///
///
///
- public global::Ideogram.ImageGenerationObjectV3? Type50 { get; set; }
+ public global::System.Collections.Generic.IList? Type50 { get; set; }
///
///
///
- public global::Ideogram.GenerateImageSafetyError? Type51 { get; set; }
+ public global::Ideogram.ImageGenerationObjectV3? Type51 { get; set; }
///
///
///
- public global::Ideogram.ImageSafetyError? Type52 { get; set; }
+ public global::Ideogram.GenerateImageSafetyError? Type52 { get; set; }
///
///
///
- public global::Ideogram.ManageApiSubscriptionResponse? Type53 { get; set; }
+ public global::Ideogram.ImageSafetyError? Type53 { get; set; }
///
///
///
- public global::Ideogram.MetronomeLinks? Type54 { get; set; }
+ public global::Ideogram.ManageApiSubscriptionResponse? Type54 { get; set; }
///
///
///
- public global::Ideogram.RechargeSettingsResponse? Type55 { get; set; }
+ public global::Ideogram.MetronomeLinks? Type55 { get; set; }
///
///
///
- public global::Ideogram.RechargeSettings? Type56 { get; set; }
+ public global::Ideogram.RechargeSettingsResponse? Type56 { get; set; }
///
///
///
- public global::Ideogram.Price? Type57 { get; set; }
+ public global::Ideogram.RechargeSettings? Type57 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionResponse? Type58 { get; set; }
+ public global::Ideogram.Price? Type58 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionError? Type59 { get; set; }
+ public global::Ideogram.PostApiSubscriptionResponse? Type59 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionRequest? Type60 { get; set; }
+ public global::Ideogram.PostApiSubscriptionError? Type60 { get; set; }
///
///
///
- public global::Ideogram.PostApiReactivateResponse? Type61 { get; set; }
+ public global::Ideogram.PostApiSubscriptionRequest? Type61 { get; set; }
///
///
///
- public global::Ideogram.GetApiKeysResponse? Type62 { get; set; }
+ public global::Ideogram.PostApiReactivateResponse? Type62 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type63 { get; set; }
+ public global::Ideogram.GetApiKeysResponse? Type63 { get; set; }
///
///
///
- public global::Ideogram.RedactedApiKey? Type64 { get; set; }
+ public global::System.Collections.Generic.IList? Type64 { get; set; }
///
///
///
- public global::Ideogram.PostApiKeyResponse? Type65 { get; set; }
+ public global::Ideogram.RedactedApiKey? Type65 { get; set; }
///
///
///
- public global::Ideogram.ManageApiStripeSubscriptionResponse? Type66 { get; set; }
+ public global::Ideogram.PostApiKeyResponse? Type66 { get; set; }
///
///
///
- public global::Ideogram.GetApiTermsResponse? Type67 { get; set; }
+ public global::Ideogram.ManageApiStripeSubscriptionResponse? Type67 { get; set; }
///
///
///
- public global::Ideogram.ApiTerms? Type68 { get; set; }
+ public global::Ideogram.GetApiTermsResponse? Type68 { get; set; }
///
///
///
- public global::Ideogram.PostApiTermsRequest? Type69 { get; set; }
+ public global::Ideogram.ApiTerms? Type69 { get; set; }
///
///
///
- public global::Ideogram.PostAddCreditsResponse? Type70 { get; set; }
+ public global::Ideogram.PostApiTermsRequest? Type70 { get; set; }
///
///
///
- public global::Ideogram.PostAddCreditsError? Type71 { get; set; }
+ public global::Ideogram.PostAddCreditsResponse? Type71 { get; set; }
///
///
///
- public global::Ideogram.PostAddCreditsRequest? Type72 { get; set; }
+ public global::Ideogram.PostAddCreditsError? Type72 { get; set; }
///
///
///
- public global::Ideogram.PostInternalTesting200Response? Type73 { get; set; }
+ public global::Ideogram.PostAddCreditsRequest? Type73 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.PostInternalTesting200Response? Type74 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Ideogram/openapi.yaml b/src/libs/Ideogram/openapi.yaml
index c724c06..60ad9a6 100644
--- a/src/libs/Ideogram/openapi.yaml
+++ b/src/libs/Ideogram/openapi.yaml
@@ -684,6 +684,45 @@ paths:
'429':
description: Too many requests.
x-openapi-router-controller: external_api.generated.openapi.controllers.generate_controller
+ /v1/ideogram-v3/replace-background:
+ post:
+ tags:
+ - generate
+ summary: Replace Background with Ideogram 3.0
+ description: "Replace the background of a given image synchronously using a prompt with Ideogram 3.0. The foreground subject\nwill be identified and kept, while the background is replaced based on the prompt and chosen style.\nSupported image formats include JPEG, PNG, and WebP.\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_replace_background_v3
+ requestBody:
+ description: A request to replace the background of an image with Ideogram 3.0.
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ReplaceBackgroundRequestV3'
+ encoding:
+ color_palette:
+ contentType: application/json
+ style: form
+ required: true
+ x-body-name: body
+ responses:
+ '200':
+ description: Background replacement generated successfully.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ImageGenerationResponseV3'
+ '400':
+ description: Invalid input provided.
+ '401':
+ description: Not authorized to generate an image.
+ '422':
+ description: Prompt or Initial 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
components:
schemas:
DescribeResponse:
@@ -933,6 +972,38 @@ components:
type: string
format: binary
description: 'A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.'
+ ReplaceBackgroundRequestV3:
+ required:
+ - image
+ - prompt
+ type: object
+ properties:
+ image:
+ type: string
+ description: 'The image whose background is being replaced (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.'
+ format: binary
+ prompt:
+ type: string
+ description: The prompt describing the desired new background.
+ example: A vibrant cityscape at night.
+ magic_prompt:
+ $ref: '#/components/schemas/MagicPromptOption'
+ num_images:
+ $ref: '#/components/schemas/NumImages'
+ seed:
+ $ref: '#/components/schemas/Seed'
+ rendering_speed:
+ $ref: '#/components/schemas/RenderingSpeed'
+ color_palette:
+ $ref: '#/components/schemas/ColorPaletteWithPresetNameOrMembers'
+ style_codes:
+ $ref: '#/components/schemas/StyleCodes'
+ style_reference_images:
+ type: array
+ items:
+ type: string
+ format: binary
+ description: 'A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.'
InternalTestingRequest:
required:
- required_date_type_field
@@ -1814,7 +1885,7 @@ components:
- 1536x576
- 1536x640
type: string
- description: The resolutions supported for model version V_3.
+ description: The resolutions supported for Ideogram 3.0.
example: 1280x800
AspectRatioV3:
title: AspectRatioV3