From 3ffe6d33e6e81f7a22a24b2d11019306c1f3bbfe Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 18:53:14 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...erateClient.PostGenerateImageV2Ideogram45.g.cs | 3 +-- ...itClient.PostPreciseEditImageV2Ideogram45.g.cs | 2 +- ...erateClient.PostGenerateImageV2Ideogram45.g.cs | 3 +-- ...itClient.PostPreciseEditImageV2Ideogram45.g.cs | 2 +- ...ram.Models.GenerateImageIdeogram45Request.g.cs | 6 ++---- ...els.GenerateImageIdeogram45RequestQuality.g.cs | 15 +-------------- ....Models.PreciseEditImageIdeogram45Request.g.cs | 4 ++-- ....PreciseEditImageIdeogram45RequestQuality.g.cs | 2 +- .../Generated/autosdk.generated-examples.json | 2 +- src/libs/Ideogram/openapi.json | 9 +++------ 10 files changed, 14 insertions(+), 34 deletions(-) diff --git a/src/libs/Ideogram/Generated/Ideogram.IImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs b/src/libs/Ideogram/Generated/Ideogram.IImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs index 6dc11a9..f1c4513 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs @@ -172,8 +172,7 @@ public partial interface IImagesGenerateClient /// Example: 2048x2048 /// /// - /// The rendering quality to use. Higher quality renders take longer. `very_low` requires source images and is the fastest and cheapest. `very_high` and `ultra` require source images. `very_high` supports at most 4 images per request, takes longer than `high`, and is priced higher. `ultra` returns one image per request, takes longer than `very_high`, and is priced higher again.
- /// Default Value: high + /// The rendering quality to use. Higher quality renders take longer. With source images it defaults to `medium`, and `high` takes longer and is priced higher; `very_low` requires source images and is the fastest and cheapest. Without source images it defaults to `high`. /// /// /// Random seed. Set for reproducible generation.
diff --git a/src/libs/Ideogram/Generated/Ideogram.IImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs b/src/libs/Ideogram/Generated/Ideogram.IImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs index ce3ffe6..9d2a196 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs @@ -173,7 +173,7 @@ public partial interface IImagesPreciseEditClient /// An optional mask confining the edit to part of `image`, as raw bytes (multipart requests only; JPEG, PNG, or WEBP, max 25MB). Black marks the area to edit and white the area to preserve; values in between are rounded to whichever is nearer. The mask must have the same width and height as `image`, and must contain both black and white areas. Requires the image being edited to be uploaded as raw `image` bytes in the same request; masks cannot be combined with asset references. The mask is supplied to the model as an additional reference image, so a masked request may carry at most three `reference_images`. /// /// - /// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.
+ /// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.
/// Default Value: high /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.ImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs b/src/libs/Ideogram/Generated/Ideogram.ImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs index d58dbd8..219a42f 100644 --- a/src/libs/Ideogram/Generated/Ideogram.ImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.ImagesGenerateClient.PostGenerateImageV2Ideogram45.g.cs @@ -968,8 +968,7 @@ request.Maskname is null /// Example: 2048x2048 /// /// - /// The rendering quality to use. Higher quality renders take longer. `very_low` requires source images and is the fastest and cheapest. `very_high` and `ultra` require source images. `very_high` supports at most 4 images per request, takes longer than `high`, and is priced higher. `ultra` returns one image per request, takes longer than `very_high`, and is priced higher again.
- /// Default Value: high + /// The rendering quality to use. Higher quality renders take longer. With source images it defaults to `medium`, and `high` takes longer and is priced higher; `very_low` requires source images and is the fastest and cheapest. Without source images it defaults to `high`. /// /// /// Random seed. Set for reproducible generation.
diff --git a/src/libs/Ideogram/Generated/Ideogram.ImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs b/src/libs/Ideogram/Generated/Ideogram.ImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs index 769dd89..7ce3e2b 100644 --- a/src/libs/Ideogram/Generated/Ideogram.ImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.ImagesPreciseEditClient.PostPreciseEditImageV2Ideogram45.g.cs @@ -1003,7 +1003,7 @@ request.Maskname is null /// An optional mask confining the edit to part of `image`, as raw bytes (multipart requests only; JPEG, PNG, or WEBP, max 25MB). Black marks the area to edit and white the area to preserve; values in between are rounded to whichever is nearer. The mask must have the same width and height as `image`, and must contain both black and white areas. Requires the image being edited to be uploaded as raw `image` bytes in the same request; masks cannot be combined with asset references. The mask is supplied to the model as an additional reference image, so a masked request may carry at most three `reference_images`. /// /// - /// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.
+ /// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.
/// Default Value: high /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45Request.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45Request.g.cs index 1950183..958befb 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45Request.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45Request.g.cs @@ -86,8 +86,7 @@ public sealed partial class GenerateImageIdeogram45Request public string? Size { get; set; } /// - /// The rendering quality to use. Higher quality renders take longer. `very_low` requires source images and is the fastest and cheapest. `very_high` and `ultra` require source images. `very_high` supports at most 4 images per request, takes longer than `high`, and is priced higher. `ultra` returns one image per request, takes longer than `very_high`, and is priced higher again.
- /// Default Value: high + /// The rendering quality to use. Higher quality renders take longer. With source images it defaults to `medium`, and `high` takes longer and is priced higher; `very_low` requires source images and is the fastest and cheapest. Without source images it defaults to `high`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("quality")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.GenerateImageIdeogram45RequestQualityJsonConverter))] @@ -209,8 +208,7 @@ public sealed partial class GenerateImageIdeogram45Request /// Example: 2048x2048 /// /// - /// The rendering quality to use. Higher quality renders take longer. `very_low` requires source images and is the fastest and cheapest. `very_high` and `ultra` require source images. `very_high` supports at most 4 images per request, takes longer than `high`, and is priced higher. `ultra` returns one image per request, takes longer than `very_high`, and is priced higher again.
- /// Default Value: high + /// The rendering quality to use. Higher quality renders take longer. With source images it defaults to `medium`, and `high` takes longer and is priced higher; `very_low` requires source images and is the fastest and cheapest. Without source images it defaults to `high`. /// /// /// Random seed. Set for reproducible generation.
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45RequestQuality.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45RequestQuality.g.cs index ed5098e..2b6d8a7 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45RequestQuality.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageIdeogram45RequestQuality.g.cs @@ -4,8 +4,7 @@ namespace Ideogram { /// - /// The rendering quality to use. Higher quality renders take longer. `very_low` requires source images and is the fastest and cheapest. `very_high` and `ultra` require source images. `very_high` supports at most 4 images per request, takes longer than `high`, and is priced higher. `ultra` returns one image per request, takes longer than `very_high`, and is priced higher again.
- /// Default Value: high + /// The rendering quality to use. Higher quality renders take longer. With source images it defaults to `medium`, and `high` takes longer and is priced higher; `very_low` requires source images and is the fastest and cheapest. Without source images it defaults to `high`. ///
public enum GenerateImageIdeogram45RequestQuality { @@ -24,14 +23,6 @@ public enum GenerateImageIdeogram45RequestQuality /// /// /// - Ultra, - /// - /// - /// - VeryHigh, - /// - /// - /// VeryLow, } @@ -50,8 +41,6 @@ public static string ToValueString(this GenerateImageIdeogram45RequestQuality va GenerateImageIdeogram45RequestQuality.High => "high", GenerateImageIdeogram45RequestQuality.Low => "low", GenerateImageIdeogram45RequestQuality.Medium => "medium", - GenerateImageIdeogram45RequestQuality.Ultra => "ultra", - GenerateImageIdeogram45RequestQuality.VeryHigh => "very_high", GenerateImageIdeogram45RequestQuality.VeryLow => "very_low", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -66,8 +55,6 @@ public static string ToValueString(this GenerateImageIdeogram45RequestQuality va "high" => GenerateImageIdeogram45RequestQuality.High, "low" => GenerateImageIdeogram45RequestQuality.Low, "medium" => GenerateImageIdeogram45RequestQuality.Medium, - "ultra" => GenerateImageIdeogram45RequestQuality.Ultra, - "very_high" => GenerateImageIdeogram45RequestQuality.VeryHigh, "very_low" => GenerateImageIdeogram45RequestQuality.VeryLow, _ => null, }; diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45Request.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45Request.g.cs index 20674d8..ba85e16 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45Request.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45Request.g.cs @@ -65,7 +65,7 @@ public sealed partial class PreciseEditImageIdeogram45Request public string? Maskname { get; set; } /// - /// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.
+ /// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.
/// Default Value: high ///
[global::System.Text.Json.Serialization.JsonPropertyName("quality")] @@ -165,7 +165,7 @@ public sealed partial class PreciseEditImageIdeogram45Request /// An optional mask confining the edit to part of `image`, as raw bytes (multipart requests only; JPEG, PNG, or WEBP, max 25MB). Black marks the area to edit and white the area to preserve; values in between are rounded to whichever is nearer. The mask must have the same width and height as `image`, and must contain both black and white areas. Requires the image being edited to be uploaded as raw `image` bytes in the same request; masks cannot be combined with asset references. The mask is supplied to the model as an additional reference image, so a masked request may carry at most three `reference_images`. /// /// - /// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.
+ /// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.
/// Default Value: high /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45RequestQuality.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45RequestQuality.g.cs index 4e75acb..b56e043 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45RequestQuality.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.PreciseEditImageIdeogram45RequestQuality.g.cs @@ -4,7 +4,7 @@ namespace Ideogram { /// - /// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.
+ /// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.
/// Default Value: high ///
public enum PreciseEditImageIdeogram45RequestQuality diff --git a/src/libs/Ideogram/Generated/autosdk.generated-examples.json b/src/libs/Ideogram/Generated/autosdk.generated-examples.json index d785424..4e78bf8 100644 --- a/src/libs/Ideogram/Generated/autosdk.generated-examples.json +++ b/src/libs/Ideogram/Generated/autosdk.generated-examples.json @@ -974,7 +974,7 @@ "Slug": "post-generate-image-v2-ideogram45", "Description": "Generate one or more images with Ideogram 4.5. Supplying source\nimages turns the request into an image-to-image transform: the model\nconditions on the sources, the prompt becomes optional guidance, and\n\u0060size\u0060 may be \u0022source\u0022 to keep the first source\u0027s own size or \u0022auto\u0022\nto let the server pick the canvas from the sources and the prompt.\nProvide sources either as \u0060image_asset_identifiers\u0060 references or as\nraw \u0060images\u0060 bytes (multipart requests only); if both are supplied,\nthe references win and the bytes are ignored. The \u0060prompt\u0060 accepts\neither natural language or a structured Ideogram 4.0 JSON prompt; the\nserver detects which was supplied.\n\n\u0060magic_prompt\u0060 controls automatic prompt rewriting: \u0060auto\u0060 (the\ndefault) and \u0060on\u0060 rewrite a natural-language prompt, a prompt that is\nalready a valid structured JSON prompt is always consumed directly,\nand \u0060off\u0060 disables rewriting entirely so the model receives your\nprompt verbatim.\n\nIdeogram 4.5 renders a fixed set of output sizes. When \u0060size\u0060\nis omitted, the server picks a supported size automatically based on\nthe prompt, and on the source images when there are any.\n\nBy default the request blocks until the images are ready and returns\nthem in \u0060data\u0060. Set \u0060async\u0060 to true to return immediately after the\nrequest is accepted, then poll for completion and results with\n\u0060GET /v1/generations/{generation_id}\u0060 using the returned\n\u0060generation_id\u0060.\n\nSupplying a \u0060webhook_url\u0060 makes the request asynchronous whatever\n\u0060async\u0060 says: the response returns as soon as the request is accepted,\nand the finished result is POSTed to that URL.", "Language": "http", - "Code": "### Generate images with Ideogram 4.5, from a prompt or by transforming source images\n# @name post_generate_image_v2_ideogram45\nPOST {{host}}/v2/image/generate/ideogram-4-5?dry_run=false\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022magic_prompt\u0022\n\nauto\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022image_asset_identifiers\u0022\n\n{\u0022asset_type\u0022:\u0022RESPONSE\u0022,\u0022asset_id\u0022:\u00227uS_VESkRI6O3-sVgHQp_A\u0022}\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022images\u0022; filename=\u0022images.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./images.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022mask\u0022; filename=\u0022mask.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./mask.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022size\u0022\n\n2048x2048\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022quality\u0022\n\nhigh\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022seed\u0022\n\n12345\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022num_images\u0022\n\n1\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022enable_copyright_detection\u0022\n\ntrue\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022async\u0022\n\nfalse\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022webhook_url\u0022\n\nhttps://api.example.com/webhooks/ideogram\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022private\u0022\n\ntrue\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022target_collection_id\u0022\n\nstring\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: The generated images (synchronous requests), or an acknowledgement to poll with \u0060GET /v1/generations/{generation_id}\u0060 (\u0060async\u0060 requests).\n# Content-Type: application/json\n# 400\n# Description: Invalid input provided.\n# 401\n# Description: Unauthorized.\n# 402\n# Description: Insufficient credits or quota.\n# Content-Type: application/json\n# 422\n# Description: The prompt did not pass safety checks.\n# 429\n# Description: Too many requests.\n# Content-Type: application/json\n# 500\n# Description: Internal server error.\n# 503\n# Description: The endpoint is temporarily unavailable.", + "Code": "### Generate images with Ideogram 4.5, from a prompt or by transforming source images\n# @name post_generate_image_v2_ideogram45\nPOST {{host}}/v2/image/generate/ideogram-4-5?dry_run=false\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022magic_prompt\u0022\n\nauto\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022image_asset_identifiers\u0022\n\n{\u0022asset_type\u0022:\u0022RESPONSE\u0022,\u0022asset_id\u0022:\u00227uS_VESkRI6O3-sVgHQp_A\u0022}\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022images\u0022; filename=\u0022images.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./images.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022mask\u0022; filename=\u0022mask.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./mask.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022size\u0022\n\n2048x2048\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022quality\u0022\n\nvery_low\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022seed\u0022\n\n12345\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022num_images\u0022\n\n1\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022enable_copyright_detection\u0022\n\ntrue\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022async\u0022\n\nfalse\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022webhook_url\u0022\n\nhttps://api.example.com/webhooks/ideogram\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022private\u0022\n\ntrue\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022target_collection_id\u0022\n\nstring\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: The generated images (synchronous requests), or an acknowledgement to poll with \u0060GET /v1/generations/{generation_id}\u0060 (\u0060async\u0060 requests).\n# Content-Type: application/json\n# 400\n# Description: Invalid input provided.\n# 401\n# Description: Unauthorized.\n# 402\n# Description: Insufficient credits or quota.\n# Content-Type: application/json\n# 422\n# Description: The prompt did not pass safety checks.\n# 429\n# Description: Too many requests.\n# Content-Type: application/json\n# 500\n# Description: Internal server error.\n# 503\n# Description: The endpoint is temporarily unavailable.", "Format": "http", "OperationId": "post_generate_image_v2_ideogram45", "Setup": null diff --git a/src/libs/Ideogram/openapi.json b/src/libs/Ideogram/openapi.json index 36e6b9d..394b5ba 100644 --- a/src/libs/Ideogram/openapi.json +++ b/src/libs/Ideogram/openapi.json @@ -27833,15 +27833,12 @@ "type": "string" }, "quality": { - "default": "high", - "description": "The rendering quality to use. Higher quality renders take longer. `very_low` requires source images and is the fastest and cheapest. `very_high` and `ultra` require source images. `very_high` supports at most 4 images per request, takes longer than `high`, and is priced higher. `ultra` returns one image per request, takes longer than `very_high`, and is priced higher again.", + "description": "The rendering quality to use. Higher quality renders take longer. With source images it defaults to `medium`, and `high` takes longer and is priced higher; `very_low` requires source images and is the fastest and cheapest. Without source images it defaults to `high`.", "enum": [ "very_low", "low", "medium", - "high", - "very_high", - "ultra" + "high" ], "type": "string" }, @@ -27985,7 +27982,7 @@ }, "quality": { "default": "high", - "description": "The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.", + "description": "The rendering quality to use. `very_high` takes longer than `high` and is priced higher.", "enum": [ "low", "medium",