Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,20 @@ partial void ProcessPostGenerateImageResponseContent(
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="styleRefEmbeddings">
/// A list of base64 encoded binary embeddings
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.GenerateImageResponse> PostGenerateImageAsync(
global::Ideogram.ImageRequest imageRequest,
global::System.Collections.Generic.IList<string>? styleRefEmbeddings = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ideogram.GenerateImageRequest
{
ImageRequest = imageRequest,
StyleRefEmbeddings = styleRefEmbeddings,
};

return await PostGenerateImageAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ public partial interface IGenerateClient
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="styleRefEmbeddings">
/// A list of base64 encoded binary embeddings
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.GenerateImageResponse> PostGenerateImageAsync(
global::Ideogram.ImageRequest imageRequest,
global::System.Collections.Generic.IList<string>? styleRefEmbeddings = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ public sealed partial class GenerateImageRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Ideogram.ImageRequest ImageRequest { get; set; }

/// <summary>
/// A list of base64 encoded binary embeddings
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("style_ref_embeddings")]
public global::System.Collections.Generic.IList<string>? StyleRefEmbeddings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -25,13 +31,18 @@ public sealed partial class GenerateImageRequest
/// Initializes a new instance of the <see cref="GenerateImageRequest" /> class.
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="styleRefEmbeddings">
/// A list of base64 encoded binary embeddings
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public GenerateImageRequest(
global::Ideogram.ImageRequest imageRequest)
global::Ideogram.ImageRequest imageRequest,
global::System.Collections.Generic.IList<string>? styleRefEmbeddings)
{
this.ImageRequest = imageRequest ?? throw new global::System.ArgumentNullException(nameof(imageRequest));
this.StyleRefEmbeddings = styleRefEmbeddings;
}

/// <summary>
Expand Down
6 changes: 6 additions & 0 deletions src/libs/Ideogram/Generated/Ideogram.Models.ModelEnum.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public enum ModelEnum
///
/// </summary>
V2ATURBO,
/// <summary>
///
/// </summary>
V3,
}

/// <summary>
Expand All @@ -54,6 +58,7 @@ public static string ToValueString(this ModelEnum value)
ModelEnum.V2TURBO => "V_2_TURBO",
ModelEnum.V2A => "V_2A",
ModelEnum.V2ATURBO => "V_2A_TURBO",
ModelEnum.V3 => "V_3",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -70,6 +75,7 @@ public static string ToValueString(this ModelEnum value)
"V_2_TURBO" => ModelEnum.V2TURBO,
"V_2A" => ModelEnum.V2A,
"V_2A_TURBO" => ModelEnum.V2ATURBO,
"V_3" => ModelEnum.V3,
_ => null,
};
}
Expand Down
10 changes: 5 additions & 5 deletions src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,23 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ideogram.InternalTestingRequest? Type23 { get; set; }
public global::System.Collections.Generic.IList<string>? Type23 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.InternalTestingNestedObject? Type24 { get; set; }
public global::Ideogram.InternalTestingRequest? Type24 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type25 { get; set; }
public global::Ideogram.InternalTestingNestedObject? Type25 { get; set; }
/// <summary>
///
/// </summary>
public global::System.DateTime? Type26 { get; set; }
public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type26 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<string>? Type27 { get; set; }
public global::System.DateTime? Type27 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions src/libs/Ideogram/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,16 @@ components:
properties:
image_request:
$ref: '#/components/schemas/ImageRequest'
style_ref_embeddings:
title: style_ref_embeddings
type: array
items:
type: string
description: A list of base64 encoded binary embeddings
example:
style_ref_embeddings:
- style_ref_embeddings
- style_ref_embeddings
image_request:
aspect_ratio: ASPECT_10_16
magic_prompt_option: AUTO
Expand Down Expand Up @@ -877,6 +886,7 @@ components:
- V_2_TURBO
- V_2A
- V_2A_TURBO
- V_3
type: string
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
Expand Down
Loading