diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
index bd7f0e3..1db3c96 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
@@ -91,6 +91,12 @@ partial void ProcessPostEditImageResponseContent(
content: new global::System.Net.Http.StringContent($"{request.MagicPromptOption?.ToValueString()}"),
name: "magic_prompt_option");
}
+ if (request.NumImages != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
+ name: "num_images");
+ }
if (request.Seed != default)
{
__httpRequestContent.Add(
@@ -313,7 +319,7 @@ partial void ProcessPostEditImageResponseContent(
/// 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 is 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 model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// 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
///
@@ -321,6 +327,9 @@ partial void ProcessPostEditImageResponseContent(
/// Determine if MagicPrompt should be used in generating the request or not
/// Example: ON
///
+ ///
+ /// Default Value: 1
+ ///
///
/// Example: 12345
///
@@ -338,6 +347,7 @@ partial void ProcessPostEditImageResponseContent(
string prompt,
global::Ideogram.ModelEnum model,
global::Ideogram.MagicPromptOption? magicPromptOption = default,
+ int? numImages = default,
int? seed = default,
global::Ideogram.StyleType? styleType = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -351,6 +361,7 @@ partial void ProcessPostEditImageResponseContent(
Prompt = prompt,
Model = model,
MagicPromptOption = magicPromptOption,
+ NumImages = numImages,
Seed = seed,
StyleType = styleType,
};
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
index 2aea789..8f8fd10 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
@@ -42,7 +42,7 @@ public partial interface IGenerateClient
/// 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 is 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 model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// 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
///
@@ -50,6 +50,9 @@ public partial interface IGenerateClient
/// Determine if MagicPrompt should be used in generating the request or not
/// Example: ON
///
+ ///
+ /// Default Value: 1
+ ///
///
/// Example: 12345
///
@@ -67,6 +70,7 @@ public partial interface IGenerateClient
string prompt,
global::Ideogram.ModelEnum model,
global::Ideogram.MagicPromptOption? magicPromptOption = default,
+ int? numImages = default,
int? seed = default,
global::Ideogram.StyleType? styleType = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs
index 902968c..f531660 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequest.g.cs
@@ -46,7 +46,7 @@ public sealed partial class EditImageRequest
public required string Prompt { get; set; }
///
- /// The model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// 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
///
@@ -66,6 +66,12 @@ public sealed partial class EditImageRequest
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; }
+ ///
+ /// Default Value: 1
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_images")]
+ public int? NumImages { get; set; }
+
///
/// Example: 12345
///
@@ -108,7 +114,7 @@ public sealed partial class EditImageRequest
/// 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 is 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 model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// 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
///
@@ -116,6 +122,9 @@ public sealed partial class EditImageRequest
/// Determine if MagicPrompt should be used in generating the request or not
/// Example: ON
///
+ ///
+ /// Default Value: 1
+ ///
///
/// Example: 12345
///
@@ -132,6 +141,7 @@ public EditImageRequest(
string prompt,
global::Ideogram.ModelEnum model,
global::Ideogram.MagicPromptOption? magicPromptOption,
+ int? numImages,
int? seed,
global::Ideogram.StyleType? styleType)
{
@@ -142,6 +152,7 @@ public EditImageRequest(
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.Model = model;
this.MagicPromptOption = magicPromptOption;
+ this.NumImages = numImages;
this.Seed = seed;
this.StyleType = styleType;
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ImageRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ImageRequest.g.cs
index c456d85..f444de2 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ImageRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ImageRequest.g.cs
@@ -27,7 +27,7 @@ public sealed partial class ImageRequest
public global::Ideogram.AspectRatio? AspectRatio { get; set; }
///
- /// The model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// 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
///
@@ -69,6 +69,12 @@ public sealed partial class ImageRequest
[global::System.Text.Json.Serialization.JsonPropertyName("negative_prompt")]
public string? NegativePrompt { get; set; }
+ ///
+ /// Default Value: 1
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_images")]
+ public int? NumImages { 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
@@ -103,7 +109,7 @@ public sealed partial class ImageRequest
/// Example: ASPECT_10_16
///
///
- /// The model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// 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
///
@@ -122,6 +128,9 @@ public sealed partial class ImageRequest
/// Description of what to exclude from an image. Descriptions in the prompt take precedence to descriptions in the negative prompt.
/// Example: brush strokes, painting
///
+ ///
+ /// Default Value: 1
+ ///
///
/// (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
@@ -138,6 +147,7 @@ public ImageRequest(
int? seed,
global::Ideogram.StyleType? styleType,
string? negativePrompt,
+ int? numImages,
global::Ideogram.Resolution? resolution,
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette)
{
@@ -148,6 +158,7 @@ public ImageRequest(
this.Seed = seed;
this.StyleType = styleType;
this.NegativePrompt = negativePrompt;
+ this.NumImages = numImages;
this.Resolution = resolution;
this.ColorPalette = colorPalette;
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ModelEnum.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ModelEnum.g.cs
index 1a96ba3..e74adf7 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ModelEnum.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ModelEnum.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- /// The model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.
+ /// 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
///
@@ -26,6 +26,14 @@ public enum ModelEnum
///
///
V2TURBO,
+ ///
+ ///
+ ///
+ V21,
+ ///
+ ///
+ ///
+ V21TURBO,
}
///
@@ -44,6 +52,8 @@ public static string ToValueString(this ModelEnum value)
ModelEnum.V1TURBO => "V_1_TURBO",
ModelEnum.V2 => "V_2",
ModelEnum.V2TURBO => "V_2_TURBO",
+ ModelEnum.V21 => "V_2_1",
+ ModelEnum.V21TURBO => "V_2_1_TURBO",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -58,6 +68,8 @@ public static string ToValueString(this ModelEnum value)
"V_1_TURBO" => ModelEnum.V1TURBO,
"V_2" => ModelEnum.V2,
"V_2_TURBO" => ModelEnum.V2TURBO,
+ "V_2_1" => ModelEnum.V21,
+ "V_2_1_TURBO" => ModelEnum.V21TURBO,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleInitialImageRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleInitialImageRequest.g.cs
index e396be9..17842da 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleInitialImageRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.UpscaleInitialImageRequest.g.cs
@@ -41,6 +41,12 @@ public sealed partial class UpscaleInitialImageRequest
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; }
+ ///
+ /// Default Value: 1
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_images")]
+ public int? NumImages { get; set; }
+
///
/// Example: 12345
///
@@ -73,6 +79,9 @@ public sealed partial class UpscaleInitialImageRequest
/// Determine if MagicPrompt should be used in generating the request or not
/// Example: ON
///
+ ///
+ /// Default Value: 1
+ ///
///
/// Example: 12345
///
@@ -82,12 +91,14 @@ public UpscaleInitialImageRequest(
int? resemblance,
int? detail,
global::Ideogram.MagicPromptOption? magicPromptOption,
+ int? numImages,
int? seed)
{
this.Prompt = prompt;
this.Resemblance = resemblance;
this.Detail = detail;
this.MagicPromptOption = magicPromptOption;
+ this.NumImages = numImages;
this.Seed = seed;
}
diff --git a/src/libs/Ideogram/openapi.yaml b/src/libs/Ideogram/openapi.yaml
index 54b0cc9..4fe30c7 100644
--- a/src/libs/Ideogram/openapi.yaml
+++ b/src/libs/Ideogram/openapi.yaml
@@ -506,6 +506,8 @@ components:
$ref: '#/components/schemas/ModelEnum'
magic_prompt_option:
$ref: '#/components/schemas/MagicPromptOption'
+ num_images:
+ $ref: '#/components/schemas/NumImages'
seed:
$ref: '#/components/schemas/Seed'
style_type:
@@ -646,6 +648,12 @@ components:
type: string
description: Description of what to exclude from an image. Descriptions in the prompt take precedence to descriptions in the negative prompt.
example: 'brush strokes, painting'
+ num_images:
+ title: num_images
+ maximum: 8
+ minimum: 1
+ type: integer
+ default: 1
resolution:
$ref: '#/components/schemas/Resolution'
color_palette:
@@ -699,6 +707,12 @@ components:
example: 50
magic_prompt_option:
$ref: '#/components/schemas/MagicPromptOption'
+ num_images:
+ title: num_images
+ maximum: 8
+ minimum: 1
+ type: integer
+ default: 1
seed:
title: Seed
maximum: 2147483647
@@ -792,8 +806,10 @@ components:
- V_1_TURBO
- V_2
- V_2_TURBO
+ - V_2_1
+ - V_2_1_TURBO
type: string
- description: 'The model used to generate an image or edit one. /generate supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.'
+ description: '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: V_2
example: V_2_TURBO
GenerateImageSafetyError:
@@ -1121,6 +1137,12 @@ components:
externalDocs:
url: https://docs.ideogram.ai/using-ideogram/ideogram-features/magic-prompt
example: ON
+ NumImages:
+ title: num_images
+ maximum: 8
+ minimum: 1
+ type: integer
+ default: 1
Seed:
title: Seed
maximum: 2147483647