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

/// <summary>
/// The rendering quality to use. Higher quality renders take longer. `very_high` requires source images and an explicit `size` or `size: source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.<br/>
/// 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
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("quality")]
Expand Down Expand Up @@ -209,7 +209,7 @@ public sealed partial class GenerateImageIdeogram45Request
/// Example: 2048x2048
/// </param>
/// <param name="quality">
/// The rendering quality to use. Higher quality renders take longer. `very_high` requires source images and an explicit `size` or `size: source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.<br/>
/// 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
/// </param>
/// <param name="seed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
namespace Ideogram
{
/// <summary>
/// The rendering quality to use. Higher quality renders take longer. `very_high` requires source images and an explicit `size` or `size: source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.<br/>
/// 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
/// </summary>
public enum GenerateImageIdeogram45RequestQuality
{
/// <summary>
/// source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.
///
/// </summary>
High,
/// <summary>
Expand All @@ -22,9 +22,17 @@ public enum GenerateImageIdeogram45RequestQuality
/// </summary>
Medium,
/// <summary>
/// source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.
///
/// </summary>
Ultra,
/// <summary>
///
/// </summary>
VeryHigh,
/// <summary>
///
/// </summary>
VeryLow,
}

/// <summary>
Expand All @@ -42,7 +50,9 @@ 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 @@ -56,7 +66,9 @@ 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
6 changes: 4 additions & 2 deletions src/libs/Ideogram/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -27834,12 +27834,14 @@
},
"quality": {
"default": "high",
"description": "The rendering quality to use. Higher quality renders take longer. `very_high` requires source images and an explicit `size` or `size: source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.",
"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.",
"enum": [
"very_low",
"low",
"medium",
"high",
"very_high"
"very_high",
"ultra"
],
"type": "string"
},
Expand Down
Loading