diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
index 069f680..a41f98c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
@@ -137,6 +137,12 @@ partial void ProcessPostGenerateImageV3ResponseContent(
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
name: "style_reference_images");
+ }
+ if (request.CharacterReferenceImages != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImages, x => x))}]"),
+ name: "character_reference_images");
}
__httpRequest.Content = __httpRequestContent;
@@ -420,6 +426,9 @@ partial void ProcessPostGenerateImageV3ResponseContent(
///
/// 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.
///
+ ///
+ /// A set of images to use as character references (maximum total size 10MB across all character 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 PostGenerateImageV3Async(
@@ -435,6 +444,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
global::System.Collections.Generic.IList? styleCodes = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
+ global::System.Collections.Generic.IList? characterReferenceImages = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ideogram.GenerateImageRequestV3
@@ -451,6 +461,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
StyleCodes = styleCodes,
StyleType = styleType,
StyleReferenceImages = styleReferenceImages,
+ CharacterReferenceImages = characterReferenceImages,
};
return await PostGenerateImageV3Async(
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
index 0b6a7b5..bcde6fd 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
@@ -68,6 +68,9 @@ public partial interface IGenerateClient
///
/// 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.
///
+ ///
+ /// A set of images to use as character references (maximum total size 10MB across all character references). The images should be in JPEG, PNG or WebP format.
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostGenerateImageV3Async(
@@ -83,6 +86,7 @@ public partial interface IGenerateClient
global::System.Collections.Generic.IList? styleCodes = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
+ global::System.Collections.Generic.IList? characterReferenceImages = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs b/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs
index 4acfd1c..82d4d55 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs
@@ -41,6 +41,13 @@ public partial interface IPromptClient
/// Random seed for reproducible generation
/// Example: 12345
///
+ ///
+ /// A set of images to use as character references. The images should be in JPEG, PNG or WebP format.
+ ///
+ ///
+ /// A system prompt to use for the magic prompt.
+ /// Example: You are a helpful assistant that generates magic prompts for images.
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostMagicPromptAsync(
@@ -49,6 +56,8 @@ public partial interface IPromptClient
bool classifyPromptCategory,
global::Ideogram.StyleTypeV3? styleType = default,
int? seed = default,
+ global::System.Collections.Generic.IList? characterReferenceImages = default,
+ string? systemPrompt = 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 883b14e..20a963a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageRequestV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageRequestV3.g.cs
@@ -105,6 +105,12 @@ public sealed partial class GenerateImageRequestV3
[global::System.Text.Json.Serialization.JsonPropertyName("style_reference_images")]
public global::System.Collections.Generic.IList? StyleReferenceImages { get; set; }
+ ///
+ /// A set of images to use as character references (maximum total size 10MB across all character references). The images should be in JPEG, PNG or WebP format.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("character_reference_images")]
+ public global::System.Collections.Generic.IList? CharacterReferenceImages { get; set; }
+
///
/// Additional properties that are not explicitly defined in the schema
///
@@ -161,6 +167,9 @@ public sealed partial class GenerateImageRequestV3
///
/// 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.
///
+ ///
+ /// A set of images to use as character references (maximum total size 10MB across all character references). The images should be in JPEG, PNG or WebP format.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -176,7 +185,8 @@ public GenerateImageRequestV3(
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette,
global::System.Collections.Generic.IList? styleCodes,
global::Ideogram.StyleTypeV3? styleType,
- global::System.Collections.Generic.IList? styleReferenceImages)
+ global::System.Collections.Generic.IList? styleReferenceImages,
+ global::System.Collections.Generic.IList? characterReferenceImages)
{
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.Seed = seed;
@@ -190,6 +200,7 @@ public GenerateImageRequestV3(
this.StyleCodes = styleCodes;
this.StyleType = styleType;
this.StyleReferenceImages = styleReferenceImages;
+ this.CharacterReferenceImages = characterReferenceImages;
}
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.MagicPromptRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.MagicPromptRequest.g.cs
index d87ee7d..b34ea4e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.MagicPromptRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.MagicPromptRequest.g.cs
@@ -56,6 +56,20 @@ public sealed partial class MagicPromptRequest
[global::System.Text.Json.Serialization.JsonPropertyName("seed")]
public int? Seed { get; set; }
+ ///
+ /// A set of images to use as character references. The images should be in JPEG, PNG or WebP format.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("character_reference_images")]
+ public global::System.Collections.Generic.IList? CharacterReferenceImages { get; set; }
+
+ ///
+ /// A system prompt to use for the magic prompt.
+ /// Example: You are a helpful assistant that generates magic prompts for images.
+ ///
+ /// You are a helpful assistant that generates magic prompts for images.
+ [global::System.Text.Json.Serialization.JsonPropertyName("system_prompt")]
+ public string? SystemPrompt { get; set; }
+
///
/// Additional properties that are not explicitly defined in the schema
///
@@ -87,6 +101,13 @@ public sealed partial class MagicPromptRequest
/// Random seed for reproducible generation
/// Example: 12345
///
+ ///
+ /// A set of images to use as character references. The images should be in JPEG, PNG or WebP format.
+ ///
+ ///
+ /// A system prompt to use for the magic prompt.
+ /// Example: You are a helpful assistant that generates magic prompts for images.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -95,13 +116,17 @@ public MagicPromptRequest(
global::Ideogram.MagicPromptVersionEnum magicPromptVersion,
bool classifyPromptCategory,
global::Ideogram.StyleTypeV3? styleType,
- int? seed)
+ int? seed,
+ global::System.Collections.Generic.IList? characterReferenceImages,
+ string? systemPrompt)
{
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.MagicPromptVersion = magicPromptVersion;
this.ClassifyPromptCategory = classifyPromptCategory;
this.StyleType = styleType;
this.Seed = seed;
+ this.CharacterReferenceImages = characterReferenceImages;
+ this.SystemPrompt = systemPrompt;
}
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs
index 5300a3f..ad550e9 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs
@@ -20,6 +20,10 @@ public enum StyleType
///
///
///
+ FICTION,
+ ///
+ ///
+ ///
REALISTIC,
///
///
@@ -53,6 +57,7 @@ public static string ToValueString(this StyleType value)
{
StyleType.AUTO => "AUTO",
StyleType.GENERAL => "GENERAL",
+ StyleType.FICTION => "FICTION",
StyleType.REALISTIC => "REALISTIC",
StyleType.DESIGN => "DESIGN",
StyleType.RENDER3D => "RENDER_3D",
@@ -70,6 +75,7 @@ public static string ToValueString(this StyleType value)
{
"AUTO" => StyleType.AUTO,
"GENERAL" => StyleType.GENERAL,
+ "FICTION" => StyleType.FICTION,
"REALISTIC" => StyleType.REALISTIC,
"DESIGN" => StyleType.DESIGN,
"RENDER_3D" => StyleType.RENDER3D,
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.StyleTypeV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.StyleTypeV3.g.cs
index 4ee481a..5b3d423 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.StyleTypeV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.StyleTypeV3.g.cs
@@ -30,6 +30,10 @@ public enum StyleTypeV3
///
///
CUSTOM,
+ ///
+ ///
+ ///
+ FICTION,
}
///
@@ -49,6 +53,7 @@ public static string ToValueString(this StyleTypeV3 value)
StyleTypeV3.REALISTIC => "REALISTIC",
StyleTypeV3.DESIGN => "DESIGN",
StyleTypeV3.CUSTOM => "CUSTOM",
+ StyleTypeV3.FICTION => "FICTION",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -64,6 +69,7 @@ public static string ToValueString(this StyleTypeV3 value)
"REALISTIC" => StyleTypeV3.REALISTIC,
"DESIGN" => StyleTypeV3.DESIGN,
"CUSTOM" => StyleTypeV3.CUSTOM,
+ "FICTION" => StyleTypeV3.FICTION,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs b/src/libs/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs
index 931cea5..053a7cd 100644
--- a/src/libs/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs
@@ -67,11 +67,40 @@ partial void ProcessPostMagicPromptResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
- var __httpRequestContent = new global::System.Net.Http.StringContent(
- content: __httpRequestContentBody,
- encoding: global::System.Text.Encoding.UTF8,
- mediaType: "application/json");
+ using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
+ name: "prompt");
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.MagicPromptVersion.ToValueString()}"),
+ name: "magic_prompt_version");
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.ClassifyPromptCategory}"),
+ name: "classify_prompt_category");
+ if (request.StyleType != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
+ name: "style_type");
+ }
+ if (request.Seed != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Seed}"),
+ name: "seed");
+ }
+ if (request.CharacterReferenceImages != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImages, x => x))}]"),
+ name: "character_reference_images");
+ }
+ if (request.SystemPrompt != default)
+ {
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.SystemPrompt}"),
+ name: "system_prompt");
+ }
__httpRequest.Content = __httpRequestContent;
PrepareRequest(
@@ -324,6 +353,13 @@ partial void ProcessPostMagicPromptResponseContent(
/// Random seed for reproducible generation
/// Example: 12345
///
+ ///
+ /// A set of images to use as character references. The images should be in JPEG, PNG or WebP format.
+ ///
+ ///
+ /// A system prompt to use for the magic prompt.
+ /// Example: You are a helpful assistant that generates magic prompts for images.
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostMagicPromptAsync(
@@ -332,6 +368,8 @@ partial void ProcessPostMagicPromptResponseContent(
bool classifyPromptCategory,
global::Ideogram.StyleTypeV3? styleType = default,
int? seed = default,
+ global::System.Collections.Generic.IList? characterReferenceImages = default,
+ string? systemPrompt = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ideogram.MagicPromptRequest
@@ -341,6 +379,8 @@ partial void ProcessPostMagicPromptResponseContent(
ClassifyPromptCategory = classifyPromptCategory,
StyleType = styleType,
Seed = seed,
+ CharacterReferenceImages = characterReferenceImages,
+ SystemPrompt = systemPrompt,
};
return await PostMagicPromptAsync(
diff --git a/src/libs/Ideogram/openapi.yaml b/src/libs/Ideogram/openapi.yaml
index 22f036b..65f8f31 100644
--- a/src/libs/Ideogram/openapi.yaml
+++ b/src/libs/Ideogram/openapi.yaml
@@ -185,11 +185,14 @@ paths:
requestBody:
description: A request to generate a magic prompt
content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/MagicPromptRequest'
application/json:
schema:
$ref: '#/components/schemas/MagicPromptRequest'
required: true
- x-body-name: magic_prompt_request
+ x-body-name: body
responses:
'200':
description: Magic prompt generated successfully.
@@ -1012,6 +1015,12 @@ 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.'
+ character_reference_images:
+ type: array
+ items:
+ type: string
+ format: binary
+ description: 'A set of images to use as character references (maximum total size 10MB across all character references). The images should be in JPEG, PNG or WebP format.'
RemixImageRequestV3:
required:
- image
@@ -1608,6 +1617,16 @@ components:
type: integer
description: Random seed for reproducible generation
example: 12345
+ character_reference_images:
+ type: array
+ items:
+ type: string
+ format: binary
+ description: 'A set of images to use as character references. The images should be in JPEG, PNG or WebP format.'
+ system_prompt:
+ type: string
+ description: A system prompt to use for the magic prompt.
+ example: You are a helpful assistant that generates magic prompts for images.
description: A request to generate a magic prompt
example:
prompt: a cat
@@ -2019,6 +2038,7 @@ components:
enum:
- AUTO
- GENERAL
+ - FICTION
- REALISTIC
- DESIGN
- RENDER_3D
@@ -2258,6 +2278,7 @@ components:
- REALISTIC
- DESIGN
- CUSTOM
+ - FICTION
type: string
description: The style type to generate with.
default: GENERAL