diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerationResponseDataInner.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerationResponseDataInner.g.cs index 9690a82..1bf1abf 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.GenerationResponseDataInner.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerationResponseDataInner.g.cs @@ -53,7 +53,7 @@ public bool TryPickImageWithoutPromptOrSeed( /// /// A single generated image. Model-agnostic shape returned by the generation polling endpoint.
- /// Example: {"seed":12345,"object_type":"image.generation","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true} + /// Example: {"seed":12345,"object_type":"image.generation","asset_id":"asset_id","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true} ///
#if NET6_0_OR_GREATER public global::Ideogram.ImageGenerationObject? ImageGeneration { get; init; } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObject.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObject.g.cs index cb3cf31..c06447c 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObject.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObject.g.cs @@ -5,7 +5,7 @@ namespace Ideogram { /// /// A single generated image. Model-agnostic shape returned by the generation polling endpoint.
- /// Example: {"seed":12345,"object_type":"image.generation","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true} + /// Example: {"seed":12345,"object_type":"image.generation","asset_id":"asset_id","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true} ///
public sealed partial class ImageGenerationObject { @@ -24,6 +24,12 @@ public sealed partial class ImageGenerationObject [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } + /// + /// The base64url-encoded identifier of the generated image asset. Present for safe workflow-owned outputs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("asset_id")] + public string? AssetId { get; set; } + /// /// The prompt used for the generation. This may be different from the original prompt. /// @@ -86,6 +92,9 @@ public sealed partial class ImageGenerationObject /// The direct link to the image generated.
/// Example: https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89 /// + /// + /// The base64url-encoded identifier of the generated image asset. Present for safe workflow-owned outputs. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -95,10 +104,12 @@ public ImageGenerationObject( bool isImageSafe, int seed, global::Ideogram.ImageGenerationObjectObjectType? objectType, - string? url) + string? url, + string? assetId) { this.ObjectType = objectType; this.Url = url; + this.AssetId = assetId; this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); this.Resolution = resolution ?? throw new global::System.ArgumentNullException(nameof(resolution)); this.IsImageSafe = isImageSafe; diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationResponse.g.cs index 21ea398..7558a3c 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationResponse.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationResponse.g.cs @@ -5,7 +5,7 @@ namespace Ideogram { /// /// The response for self-hosted open-source model generation endpoints. Uses a free-form resolution string (not a grid enum) because these models accept arbitrary dimensions.
- /// Example: {"data":[{"seed":12345,"object_type":"image.generation","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true},{"seed":12345,"object_type":"image.generation","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true}],"created":"2000-01-23T04:56:07\u002B00:00"} + /// Example: {"data":[{"seed":12345,"object_type":"image.generation","asset_id":"asset_id","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true},{"seed":12345,"object_type":"image.generation","asset_id":"asset_id","prompt":"prompt","resolution":"2048x2048","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true}],"created":"2000-01-23T04:56:07\u002B00:00"} ///
public sealed partial class ImageGenerationResponse { diff --git a/src/libs/Ideogram/openapi.json b/src/libs/Ideogram/openapi.json index eba3e61..323217f 100644 --- a/src/libs/Ideogram/openapi.json +++ b/src/libs/Ideogram/openapi.json @@ -17121,6 +17121,7 @@ "example": { "seed": 12345, "object_type": "image.generation", + "asset_id": "asset_id", "prompt": "prompt", "resolution": "2048x2048", "url": "https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89", @@ -17143,6 +17144,12 @@ "title": "url", "type": "string" }, + "asset_id": { + "description": "The base64url-encoded identifier of the generated image asset. Present for safe workflow-owned outputs.", + "nullable": true, + "title": "asset_id", + "type": "string" + }, "prompt": { "description": "The prompt used for the generation. This may be different from the original prompt.", "title": "prompt", @@ -17235,6 +17242,7 @@ { "seed": 12345, "object_type": "image.generation", + "asset_id": "asset_id", "prompt": "prompt", "resolution": "2048x2048", "url": "https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89", @@ -17243,6 +17251,7 @@ { "seed": 12345, "object_type": "image.generation", + "asset_id": "asset_id", "prompt": "prompt", "resolution": "2048x2048", "url": "https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89",