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 @@ -172,8 +172,7 @@ public partial interface IImagesGenerateClient
/// Example: 2048x2048
/// </param>
/// <param name="quality">
/// 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.<br/>
/// 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`.
/// </param>
/// <param name="seed">
/// Random seed. Set for reproducible generation.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
/// </param>
/// <param name="quality">
/// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.<br/>
/// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.<br/>
/// Default Value: high
/// </param>
/// <param name="seed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,7 @@ request.Maskname is null
/// Example: 2048x2048
/// </param>
/// <param name="quality">
/// 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.<br/>
/// 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`.
/// </param>
/// <param name="seed">
/// Random seed. Set for reproducible generation.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
/// </param>
/// <param name="quality">
/// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.<br/>
/// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.<br/>
/// Default Value: high
/// </param>
/// <param name="seed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public sealed partial class GenerateImageIdeogram45Request
public string? Size { get; set; }

/// <summary>
/// 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.<br/>
/// 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`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("quality")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.GenerateImageIdeogram45RequestQualityJsonConverter))]
Expand Down Expand Up @@ -209,8 +208,7 @@ public sealed partial class GenerateImageIdeogram45Request
/// Example: 2048x2048
/// </param>
/// <param name="quality">
/// 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.<br/>
/// 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`.
/// </param>
/// <param name="seed">
/// Random seed. Set for reproducible generation.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
namespace Ideogram
{
/// <summary>
/// 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.<br/>
/// 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`.
/// </summary>
public enum GenerateImageIdeogram45RequestQuality
{
Expand All @@ -24,14 +23,6 @@ public enum GenerateImageIdeogram45RequestQuality
/// <summary>
///
/// </summary>
Ultra,
/// <summary>
///
/// </summary>
VeryHigh,
/// <summary>
///
/// </summary>
VeryLow,
}

Expand All @@ -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),
};
Expand All @@ -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,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public sealed partial class PreciseEditImageIdeogram45Request
public string? Maskname { get; set; }

/// <summary>
/// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.<br/>
/// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.<br/>
/// Default Value: high
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("quality")]
Expand Down Expand Up @@ -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`.
/// </param>
/// <param name="quality">
/// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.<br/>
/// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.<br/>
/// Default Value: high
/// </param>
/// <param name="seed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Ideogram
{
/// <summary>
/// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.<br/>
/// The rendering quality to use. `very_high` takes longer than `high` and is priced higher.<br/>
/// Default Value: high
/// </summary>
public enum PreciseEditImageIdeogram45RequestQuality
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions src/libs/Ideogram/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
Loading