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,6 +11,17 @@ public partial interface IV1EnginesClient
/// <param name="organization"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/engines/list"<br/>
/// curl -f -sS "$URL" \<br/>
/// -H 'Accept: application/json' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY"
/// </remarks>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Engine>> ListEnginesAsync(
string? organization = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,35 @@ public partial interface IV1GenerationClient
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_img2img.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/image-to-image"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: multipart/form-data' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// -F 'init_image=@"../init_image.png"' \<br/>
/// -F 'init_image_mode=IMAGE_STRENGTH' \<br/>
/// -F 'image_strength=0.35' \<br/>
/// -F 'text_prompts[0][text]=A galactic dog in space' \<br/>
/// -F 'cfg_scale=7' \<br/>
/// -F 'clip_guidance_preset=FAST_BLUE' \<br/>
/// -F 'samples=1' \<br/>
/// -F 'steps=30' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> ImageToImageAsync(
string engineId,

global::StabilityAI.ImageToImageRequestBody request,
global::StabilityAI.ImageToImageAccept? accept = default,
string? organization = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// image-to-image<br/>
/// Modify an image based on a text prompt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,37 @@ public partial interface IV1GenerationClient
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// #!/bin/sh<br/>
/// set -e<br/>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_img2img_masking.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/stable-inpainting-512-v2-0/image-to-image/masking"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: multipart/form-data' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// -F 'init_image=@"../init_image.png"' \<br/>
/// -F 'mask_image=@"../mask_image_white.png"' \<br/>
/// -F 'mask_source=MASK_IMAGE_WHITE' \<br/>
/// -F 'text_prompts[0][text]=A large spiral galaxy with a bright central bulge and a ring of stars around it' \<br/>
/// -F 'cfg_scale=7' \<br/>
/// -F 'clip_guidance_preset=FAST_BLUE' \<br/>
/// -F 'samples=1' \<br/>
/// -F 'steps=30' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> MaskingAsync(
string engineId,

global::StabilityAI.MaskingRequestBody request,
global::StabilityAI.MaskingAccept? accept = default,
string? organization = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// image-to-image/masking<br/>
/// Selectively modify portions of an image using a mask
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,40 @@ public partial interface IV1GenerationClient
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_txt2img.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/text-to-image"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: application/json' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// --data-raw '{<br/>
/// "text_prompts": [<br/>
/// {<br/>
/// "text": "A lighthouse on a cliff"<br/>
/// }<br/>
/// ],<br/>
/// "cfg_scale": 7,<br/>
/// "clip_guidance_preset": "FAST_BLUE",<br/>
/// "height": 512,<br/>
/// "width": 512,<br/>
/// "samples": 1,<br/>
/// "steps": 30<br/>
/// }' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> TextToImageAsync(
string engineId,

global::StabilityAI.TextToImageRequestBody request,
global::StabilityAI.TextToImageAccept? accept = default,
string? organization = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// text-to-image<br/>
/// Generate a new image from a text prompt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,29 @@ public partial interface IV1GenerationClient
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_upscaled_image.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/esrgan-v1-x2plus/image-to-image/upscale"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: multipart/form-data' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// -F 'image=@"../init_image.png"' \<br/>
/// -F 'width=1024' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> UpscaleImageAsync(
string engineId,

global::StabilityAI.UpscaleImageRequestBody request,
global::StabilityAI.UpscaleImageAccept? accept = default,
string? organization = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// image-to-image/upscale<br/>
/// Create a higher resolution version of an input image.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ public partial interface IV1UserClient
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// # Determine the URL to use for the request<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/user/account"<br/>
/// curl -f -sS "$URL" \<br/>
/// -H 'Accept: application/json' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY"
/// </remarks>
global::System.Threading.Tasks.Task<global::StabilityAI.AccountResponseBody> UserAccountAsync(
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ public partial interface IV1UserClient
/// <param name="organization"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// # Determine the URL to use for the request<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/user/balance"<br/>
/// curl -f -sS "$URL" \<br/>
/// -H 'Content-Type: application/json' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY"
/// </remarks>
global::System.Threading.Tasks.Task<global::StabilityAI.BalanceResponseBody> UserBalanceAsync(
string? organization = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ partial void ProcessListEnginesResponseContent(
/// <param name="organization"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/engines/list"<br/>
/// curl -f -sS "$URL" \<br/>
/// -H 'Accept: application/json' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY"
/// </remarks>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Engine>> ListEnginesAsync(
string? organization = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,28 @@ partial void ProcessImageToImageResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_img2img.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/image-to-image"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: multipart/form-data' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// -F 'init_image=@"../init_image.png"' \<br/>
/// -F 'init_image_mode=IMAGE_STRENGTH' \<br/>
/// -F 'image_strength=0.35' \<br/>
/// -F 'text_prompts[0][text]=A galactic dog in space' \<br/>
/// -F 'cfg_scale=7' \<br/>
/// -F 'clip_guidance_preset=FAST_BLUE' \<br/>
/// -F 'samples=1' \<br/>
/// -F 'steps=30' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> ImageToImageAsync(
string engineId,

Expand Down Expand Up @@ -490,7 +512,6 @@ partial void ProcessImageToImageResponseContent(
}
}
}

/// <summary>
/// image-to-image<br/>
/// Modify an image based on a text prompt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,30 @@ partial void ProcessMaskingResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// #!/bin/sh<br/>
/// set -e<br/>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_img2img_masking.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/stable-inpainting-512-v2-0/image-to-image/masking"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: multipart/form-data' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// -F 'init_image=@"../init_image.png"' \<br/>
/// -F 'mask_image=@"../mask_image_white.png"' \<br/>
/// -F 'mask_source=MASK_IMAGE_WHITE' \<br/>
/// -F 'text_prompts[0][text]=A large spiral galaxy with a bright central bulge and a ring of stars around it' \<br/>
/// -F 'cfg_scale=7' \<br/>
/// -F 'clip_guidance_preset=FAST_BLUE' \<br/>
/// -F 'samples=1' \<br/>
/// -F 'steps=30' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> MaskingAsync(
string engineId,

Expand Down Expand Up @@ -480,7 +504,6 @@ partial void ProcessMaskingResponseContent(
}
}
}

/// <summary>
/// image-to-image/masking<br/>
/// Selectively modify portions of an image using a mask
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,33 @@ partial void ProcessTextToImageResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_txt2img.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/text-to-image"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: application/json' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// --data-raw '{<br/>
/// "text_prompts": [<br/>
/// {<br/>
/// "text": "A lighthouse on a cliff"<br/>
/// }<br/>
/// ],<br/>
/// "cfg_scale": 7,<br/>
/// "clip_guidance_preset": "FAST_BLUE",<br/>
/// "height": 512,<br/>
/// "width": 512,<br/>
/// "samples": 1,<br/>
/// "steps": 30<br/>
/// }' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> TextToImageAsync(
string engineId,

Expand Down Expand Up @@ -400,7 +427,6 @@ partial void ProcessTextToImageResponseContent(
}
}
}

/// <summary>
/// text-to-image<br/>
/// Generate a new image from a text prompt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ partial void ProcessUpscaleImageResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// OUTPUT_FILE=./out/v1_upscaled_image.png<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/generation/esrgan-v1-x2plus/image-to-image/upscale"<br/>
/// curl -f -sS -X POST "$URL" \<br/>
/// -H 'Content-Type: multipart/form-data' \<br/>
/// -H 'Accept: image/png' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY" \<br/>
/// -F 'image=@"../init_image.png"' \<br/>
/// -F 'width=1024' \<br/>
/// -o "$OUTPUT_FILE"
/// </remarks>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::StabilityAI.Image>> UpscaleImageAsync(
string engineId,

Expand Down Expand Up @@ -438,7 +454,6 @@ partial void ProcessUpscaleImageResponseContent(
}
}
}

/// <summary>
/// image-to-image/upscale<br/>
/// Create a higher resolution version of an input image.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ partial void ProcessUserAccountResponseContent(
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::StabilityAI.ApiException"></exception>
/// <remarks>
/// if [ -z "$STABILITY_API_KEY" ]; then<br/>
/// echo "STABILITY_API_KEY environment variable is not set"<br/>
/// exit 1<br/>
/// fi<br/>
/// # Determine the URL to use for the request<br/>
/// BASE_URL=${API_HOST:-https://api.stability.ai}<br/>
/// URL="$BASE_URL/v1/user/account"<br/>
/// curl -f -sS "$URL" \<br/>
/// -H 'Accept: application/json' \<br/>
/// -H "Authorization: Bearer $STABILITY_API_KEY"
/// </remarks>
public async global::System.Threading.Tasks.Task<global::StabilityAI.AccountResponseBody> UserAccountAsync(
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Loading