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 @@ -53,7 +53,7 @@ public bool TryPickImageWithoutPromptOrSeed(

/// <summary>
/// A single generated image. Model-agnostic shape returned by the generation polling endpoint.<br/>
/// 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}
/// </summary>
#if NET6_0_OR_GREATER
public global::Ideogram.ImageGenerationObject? ImageGeneration { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
{
/// <summary>
/// A single generated image. Model-agnostic shape returned by the generation polling endpoint.<br/>
/// 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}
/// </summary>
public sealed partial class ImageGenerationObject
{
Expand All @@ -24,6 +24,12 @@ public sealed partial class ImageGenerationObject
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
public string? Url { get; set; }

/// <summary>
/// The base64url-encoded identifier of the generated image asset. Present for safe workflow-owned outputs.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("asset_id")]
public string? AssetId { get; set; }

/// <summary>
/// The prompt used for the generation. This may be different from the original prompt.
/// </summary>
Expand Down Expand Up @@ -86,6 +92,9 @@ public sealed partial class ImageGenerationObject
/// The direct link to the image generated.<br/>
/// Example: https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&amp;sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89
/// </param>
/// <param name="assetId">
/// The base64url-encoded identifier of the generated image asset. Present for safe workflow-owned outputs.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
{
/// <summary>
/// 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.<br/>
/// 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"}
/// </summary>
public sealed partial class ImageGenerationResponse
{
Expand Down
9 changes: 9 additions & 0 deletions src/libs/Ideogram/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Loading