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 @@ -11,7 +11,11 @@ public partial interface IImagesPreciseEditClient
/// `multipart/form-data`, with optional `reference_images` and a `mask`.<br/>
/// Returns results directly by default; set `async` or supply a<br/>
/// `webhook_url` to get a `generation_id` and poll<br/>
/// `GET /v2/generations/{generation_id}`.
/// `GET /v2/generations/{generation_id}`.<br/>
/// `context_window` narrows the edit to one region of the image, so a<br/>
/// large image keeps its detail: pass `x,y,width,height`, or `auto`<br/>
/// together with a `mask`. The result always keeps the image's own width<br/>
/// and height.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
Expand All @@ -33,7 +37,11 @@ public partial interface IImagesPreciseEditClient
/// `multipart/form-data`, with optional `reference_images` and a `mask`.<br/>
/// Returns results directly by default; set `async` or supply a<br/>
/// `webhook_url` to get a `generation_id` and poll<br/>
/// `GET /v2/generations/{generation_id}`.
/// `GET /v2/generations/{generation_id}`.<br/>
/// `context_window` narrows the edit to one region of the image, so a<br/>
/// large image keeps its detail: pass `x,y,width,height`, or `auto`<br/>
/// together with a `mask`. The result always keeps the image's own width<br/>
/// and height.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
Expand All @@ -55,7 +63,11 @@ public partial interface IImagesPreciseEditClient
/// `multipart/form-data`, with optional `reference_images` and a `mask`.<br/>
/// Returns results directly by default; set `async` or supply a<br/>
/// `webhook_url` to get a `generation_id` and poll<br/>
/// `GET /v2/generations/{generation_id}`.
/// `GET /v2/generations/{generation_id}`.<br/>
/// `context_window` narrows the edit to one region of the image, so a<br/>
/// large image keeps its detail: pass `x,y,width,height`, or `auto`<br/>
/// together with a `mask`. The result always keeps the image's own width<br/>
/// and height.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
Expand All @@ -69,22 +81,30 @@ public partial interface IImagesPreciseEditClient
/// The image to edit, as an existing upload or generated image asset. Supply this or `image`, never both. Takes priority over `image` if both are supplied. Cannot be combined with `mask`.
/// </param>
/// <param name="image">
/// The image to edit (max 25MB; JPEG, PNG, or WEBP). Multipart requests only. The output always matches this image's width and height, and pixels the edit did not meaningfully change are copied exactly from it. Images too large for the model are scaled down, keeping their proportions, and returned as rendered. Images with an aspect ratio outside 1:6 to 6:1 are rejected.
/// The image to edit, as raw bytes (max 50MB; JPEG, PNG, or WEBP). Multipart requests only; ignored if `image_asset_identifier` is also supplied. Required when supplying a `mask` or a `context_window`. The output always matches this image's width and height, and pixels the edit did not meaningfully change are copied exactly from it.
/// </param>
/// <param name="imagename">
/// The image to edit (max 25MB; JPEG, PNG, or WEBP). Multipart requests only. The output always matches this image's width and height, and pixels the edit did not meaningfully change are copied exactly from it. Images too large for the model are scaled down, keeping their proportions, and returned as rendered. Images with an aspect ratio outside 1:6 to 6:1 are rejected.
/// The image to edit, as raw bytes (max 50MB; JPEG, PNG, or WEBP). Multipart requests only; ignored if `image_asset_identifier` is also supplied. Required when supplying a `mask` or a `context_window`. The output always matches this image's width and height, and pixels the edit did not meaningfully change are copied exactly from it.
/// </param>
/// <param name="referenceImageAssetIdentifiers">
/// Optional additional images to guide the edit, by reference. These are never edited themselves; only `image_asset_identifier` or `image` is. Requires the image being edited to be supplied by reference too, and cannot be combined with `mask`.
/// </param>
/// <param name="referenceImages">
/// Optional images to guide the edit (max 4, max 25MB each; JPEG, PNG, or WEBP). They are never edited themselves; only `image` is. Multipart requests only. A request with a `mask` can include at most three, because the mask takes up one reference slot.
/// Optional images to guide the edit (max 4, max 50MB each; JPEG, PNG, or WEBP). They are never edited themselves; only `image` is. Multipart requests only; ignored if `reference_image_asset_identifiers` is also supplied. A request with a `mask` can include at most three, because the mask takes up one reference slot.
/// </param>
/// <param name="mask">
/// An optional mask that limits the edit to part of `image` (max 25MB; JPEG, PNG, or WEBP). Multipart requests only. Black marks the area to edit and white the area to keep; values in between are rounded to the nearer of the two. The mask must have the same width and height as `image` and contain both black and white areas. A masked request can include at most three `reference_images`.
/// An optional mask that limits the edit to part of `image` (max 50MB; JPEG, PNG, or WEBP). Multipart requests only. Black marks the area to edit and white the area to keep; values in between are rounded to the nearer of the two. The mask must have the same width and height as `image` and contain both black and white areas. Requires `image` as raw bytes; masks cannot be combined with asset references. A masked request can include at most three `reference_images`.
/// </param>
/// <param name="maskname">
/// An optional mask that limits the edit to part of `image` (max 25MB; JPEG, PNG, or WEBP). Multipart requests only. Black marks the area to edit and white the area to keep; values in between are rounded to the nearer of the two. The mask must have the same width and height as `image` and contain both black and white areas. A masked request can include at most three `reference_images`.
/// An optional mask that limits the edit to part of `image` (max 50MB; JPEG, PNG, or WEBP). Multipart requests only. Black marks the area to edit and white the area to keep; values in between are rounded to the nearer of the two. The mask must have the same width and height as `image` and contain both black and white areas. Requires `image` as raw bytes; masks cannot be combined with asset references. A masked request can include at most three `reference_images`.
/// </param>
/// <param name="contextWindow">
/// How much of the image being edited the model may see and change.<br/>
/// `none`, the default, edits the whole image. A large image may come back smaller than it was sent.<br/>
/// `auto` fits a region around what the `mask` selects and edits only that region, so its detail is kept. It requires a `mask`. A small enough image has no region to fit and is edited as it is.<br/>
/// `x,y,width,height` names the region explicitly, in the edited image's own pixels with the origin at its top-left corner — for example `1024,512,2048,1536`. The region must lie inside the image, measure at least 256px on each side, have an aspect ratio between 1:6 and 6:1, and cover no more than 4194304 pixels. A `mask` may select only pixels inside it.<br/>
/// With `auto` or an explicit region, every pixel outside the region is returned exactly as supplied and the output keeps the image's own width and height.<br/>
/// Default Value: none
/// </param>
/// <param name="quality">
/// The rendering quality to use. `very_low` is the fastest and cheapest, and `high` takes longer and is priced higher.<br/>
Expand Down Expand Up @@ -135,6 +155,7 @@ public partial interface IImagesPreciseEditClient
global::System.Collections.Generic.IList<byte[]>? referenceImages = default,
byte[]? mask = default,
string? maskname = default,
string? contextWindow = default,
global::Ideogram.PreciseEditImageIdeogram45RequestQuality? quality = default,
int? seed = default,
int? numImages = default,
Expand Down
112 changes: 112 additions & 0 deletions src/libs/Ideogram/Generated/Ideogram.IImagesReframeClient.Auto.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
#nullable enable

namespace Ideogram
{
public partial interface IImagesReframeClient
{
/// <summary>
/// Reframe an image, letting Ideogram pick the model<br/>
/// Reframe one image to a new aspect ratio without choosing a model.<br/>
/// Ideogram selects the model best suited to the source and may route<br/>
/// different requests to different models; the request is billed at the<br/>
/// chosen model's price. Supply either an existing Ideogram image asset<br/>
/// or raw image bytes, but not both.<br/>
/// This operation is asynchronous. It returns as soon as the request is<br/>
/// accepted; poll `GET /v2/generations/{generation_id}` for completion<br/>
/// and results.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.ReframeImageAutoResponse> AutoAsync(

global::Ideogram.ReframeImageAutoRequest request,
bool? dryRun = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Reframe an image, letting Ideogram pick the model<br/>
/// Reframe one image to a new aspect ratio without choosing a model.<br/>
/// Ideogram selects the model best suited to the source and may route<br/>
/// different requests to different models; the request is billed at the<br/>
/// chosen model's price. Supply either an existing Ideogram image asset<br/>
/// or raw image bytes, but not both.<br/>
/// This operation is asynchronous. It returns as soon as the request is<br/>
/// accepted; poll `GET /v2/generations/{generation_id}` for completion<br/>
/// and results.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.AutoSDKHttpResponse<global::Ideogram.ReframeImageAutoResponse>> AutoAsResponseAsync(

global::Ideogram.ReframeImageAutoRequest request,
bool? dryRun = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Reframe an image, letting Ideogram pick the model<br/>
/// Reframe one image to a new aspect ratio without choosing a model.<br/>
/// Ideogram selects the model best suited to the source and may route<br/>
/// different requests to different models; the request is billed at the<br/>
/// chosen model's price. Supply either an existing Ideogram image asset<br/>
/// or raw image bytes, but not both.<br/>
/// This operation is asynchronous. It returns as soon as the request is<br/>
/// accepted; poll `GET /v2/generations/{generation_id}` for completion<br/>
/// and results.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="imageAssetIdentifier">
/// An identifier for an ideogram asset.<br/>
/// Example: {"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}
/// </param>
/// <param name="image">
/// The JPEG, PNG, or WEBP image to reframe (max 50MB).
/// </param>
/// <param name="imagename">
/// The JPEG, PNG, or WEBP image to reframe (max 50MB).
/// </param>
/// <param name="aspectRatio">
/// The requested output aspect ratio, as `width:height`.<br/>
/// Example: 969
/// </param>
/// <param name="private">
/// API-key requests are always private. For bearer-authenticated<br/>
/// requests, this controls whether the result is private; when<br/>
/// omitted, it follows the caller's plan entitlement. Enterprise<br/>
/// generations are always private.
/// </param>
/// <param name="numImages">
/// The number of output images to generate.<br/>
/// Default Value: 1
/// </param>
/// <param name="seed">
/// Random seed. Set for reproducible generation.<br/>
/// Example: 12345
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.ReframeImageAutoResponse> AutoAsync(
string aspectRatio,
bool? dryRun = default,
global::Ideogram.AssetIdentifier? imageAssetIdentifier = default,
byte[]? image = default,
string? imagename = default,
bool? @private = default,
int? numImages = default,
int? seed = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading
Loading