diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1EnginesClient.ListEngines.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1EnginesClient.ListEngines.g.cs index e74f8b9..0acd71b 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1EnginesClient.ListEngines.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1EnginesClient.ListEngines.g.cs @@ -11,6 +11,17 @@ public partial interface IV1EnginesClient /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/engines/list"
+ /// curl -f -sS "$URL" \
+ /// -H 'Accept: application/json' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" + ///
global::System.Threading.Tasks.Task> ListEnginesAsync( string? organization = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs index 097c7fd..8b68a5f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs @@ -18,6 +18,28 @@ public partial interface IV1GenerationClient /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_img2img.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/image-to-image"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: multipart/form-data' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// -F 'init_image=@"../init_image.png"' \
+ /// -F 'init_image_mode=IMAGE_STRENGTH' \
+ /// -F 'image_strength=0.35' \
+ /// -F 'text_prompts[0][text]=A galactic dog in space' \
+ /// -F 'cfg_scale=7' \
+ /// -F 'clip_guidance_preset=FAST_BLUE' \
+ /// -F 'samples=1' \
+ /// -F 'steps=30' \
+ /// -o "$OUTPUT_FILE" + ///
global::System.Threading.Tasks.Task> ImageToImageAsync( string engineId, @@ -25,7 +47,6 @@ public partial interface IV1GenerationClient global::StabilityAI.ImageToImageAccept? accept = default, string? organization = default, global::System.Threading.CancellationToken cancellationToken = default); - /// /// image-to-image
/// Modify an image based on a text prompt diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs index f5ea4c5..ece6a52 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs @@ -16,6 +16,30 @@ public partial interface IV1GenerationClient /// /// The token to cancel the operation with /// + /// + /// #!/bin/sh
+ /// set -e
+ /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_img2img_masking.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/stable-inpainting-512-v2-0/image-to-image/masking"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: multipart/form-data' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// -F 'init_image=@"../init_image.png"' \
+ /// -F 'mask_image=@"../mask_image_white.png"' \
+ /// -F 'mask_source=MASK_IMAGE_WHITE' \
+ /// -F 'text_prompts[0][text]=A large spiral galaxy with a bright central bulge and a ring of stars around it' \
+ /// -F 'cfg_scale=7' \
+ /// -F 'clip_guidance_preset=FAST_BLUE' \
+ /// -F 'samples=1' \
+ /// -F 'steps=30' \
+ /// -o "$OUTPUT_FILE" + ///
global::System.Threading.Tasks.Task> MaskingAsync( string engineId, @@ -23,7 +47,6 @@ public partial interface IV1GenerationClient global::StabilityAI.MaskingAccept? accept = default, string? organization = default, global::System.Threading.CancellationToken cancellationToken = default); - /// /// image-to-image/masking
/// Selectively modify portions of an image using a mask diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.TextToImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.TextToImage.g.cs index 8fc0ce9..96d56a5 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.TextToImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.TextToImage.g.cs @@ -18,6 +18,33 @@ public partial interface IV1GenerationClient /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_txt2img.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/text-to-image"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: application/json' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// --data-raw '{
+ /// "text_prompts": [
+ /// {
+ /// "text": "A lighthouse on a cliff"
+ /// }
+ /// ],
+ /// "cfg_scale": 7,
+ /// "clip_guidance_preset": "FAST_BLUE",
+ /// "height": 512,
+ /// "width": 512,
+ /// "samples": 1,
+ /// "steps": 30
+ /// }' \
+ /// -o "$OUTPUT_FILE" + ///
global::System.Threading.Tasks.Task> TextToImageAsync( string engineId, @@ -25,7 +52,6 @@ public partial interface IV1GenerationClient global::StabilityAI.TextToImageAccept? accept = default, string? organization = default, global::System.Threading.CancellationToken cancellationToken = default); - /// /// text-to-image
/// Generate a new image from a text prompt diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.UpscaleImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.UpscaleImage.g.cs index ad73c02..9bf66d8 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.UpscaleImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.UpscaleImage.g.cs @@ -18,6 +18,22 @@ public partial interface IV1GenerationClient /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_upscaled_image.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/esrgan-v1-x2plus/image-to-image/upscale"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: multipart/form-data' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// -F 'image=@"../init_image.png"' \
+ /// -F 'width=1024' \
+ /// -o "$OUTPUT_FILE" + ///
global::System.Threading.Tasks.Task> UpscaleImageAsync( string engineId, @@ -25,7 +41,6 @@ public partial interface IV1GenerationClient global::StabilityAI.UpscaleImageAccept? accept = default, string? organization = default, global::System.Threading.CancellationToken cancellationToken = default); - /// /// image-to-image/upscale
/// Create a higher resolution version of an input image.
diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserAccount.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserAccount.g.cs index 95993ff..587e205 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserAccount.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserAccount.g.cs @@ -10,6 +10,18 @@ public partial interface IV1UserClient ///
/// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// # Determine the URL to use for the request
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/user/account"
+ /// curl -f -sS "$URL" \
+ /// -H 'Accept: application/json' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" + ///
global::System.Threading.Tasks.Task UserAccountAsync( global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserBalance.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserBalance.g.cs index 7dd5dd5..697b38e 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserBalance.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1UserClient.UserBalance.g.cs @@ -11,6 +11,18 @@ public partial interface IV1UserClient /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// # Determine the URL to use for the request
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/user/balance"
+ /// curl -f -sS "$URL" \
+ /// -H 'Content-Type: application/json' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" + ///
global::System.Threading.Tasks.Task UserBalanceAsync( string? organization = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1EnginesClient.ListEngines.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1EnginesClient.ListEngines.g.cs index aa72f96..04a3e57 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1EnginesClient.ListEngines.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1EnginesClient.ListEngines.g.cs @@ -28,6 +28,17 @@ partial void ProcessListEnginesResponseContent( /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/engines/list"
+ /// curl -f -sS "$URL" \
+ /// -H 'Accept: application/json' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" + ///
public async global::System.Threading.Tasks.Task> ListEnginesAsync( string? organization = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs index b067cb4..8f0ccdd 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs @@ -41,6 +41,28 @@ partial void ProcessImageToImageResponseContent( /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_img2img.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/image-to-image"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: multipart/form-data' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// -F 'init_image=@"../init_image.png"' \
+ /// -F 'init_image_mode=IMAGE_STRENGTH' \
+ /// -F 'image_strength=0.35' \
+ /// -F 'text_prompts[0][text]=A galactic dog in space' \
+ /// -F 'cfg_scale=7' \
+ /// -F 'clip_guidance_preset=FAST_BLUE' \
+ /// -F 'samples=1' \
+ /// -F 'steps=30' \
+ /// -o "$OUTPUT_FILE" + ///
public async global::System.Threading.Tasks.Task> ImageToImageAsync( string engineId, @@ -490,7 +512,6 @@ partial void ProcessImageToImageResponseContent( } } } - /// /// image-to-image
/// Modify an image based on a text prompt diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs index cfe8347..0a213cf 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs @@ -39,6 +39,30 @@ partial void ProcessMaskingResponseContent( /// /// The token to cancel the operation with /// + /// + /// #!/bin/sh
+ /// set -e
+ /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_img2img_masking.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/stable-inpainting-512-v2-0/image-to-image/masking"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: multipart/form-data' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// -F 'init_image=@"../init_image.png"' \
+ /// -F 'mask_image=@"../mask_image_white.png"' \
+ /// -F 'mask_source=MASK_IMAGE_WHITE' \
+ /// -F 'text_prompts[0][text]=A large spiral galaxy with a bright central bulge and a ring of stars around it' \
+ /// -F 'cfg_scale=7' \
+ /// -F 'clip_guidance_preset=FAST_BLUE' \
+ /// -F 'samples=1' \
+ /// -F 'steps=30' \
+ /// -o "$OUTPUT_FILE" + ///
public async global::System.Threading.Tasks.Task> MaskingAsync( string engineId, @@ -480,7 +504,6 @@ partial void ProcessMaskingResponseContent( } } } - /// /// image-to-image/masking
/// Selectively modify portions of an image using a mask diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.TextToImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.TextToImage.g.cs index aff43a8..8a2fdef 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.TextToImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.TextToImage.g.cs @@ -41,6 +41,33 @@ partial void ProcessTextToImageResponseContent( /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_txt2img.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/stable-diffusion-v1-5/text-to-image"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: application/json' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// --data-raw '{
+ /// "text_prompts": [
+ /// {
+ /// "text": "A lighthouse on a cliff"
+ /// }
+ /// ],
+ /// "cfg_scale": 7,
+ /// "clip_guidance_preset": "FAST_BLUE",
+ /// "height": 512,
+ /// "width": 512,
+ /// "samples": 1,
+ /// "steps": 30
+ /// }' \
+ /// -o "$OUTPUT_FILE" + ///
public async global::System.Threading.Tasks.Task> TextToImageAsync( string engineId, @@ -400,7 +427,6 @@ partial void ProcessTextToImageResponseContent( } } } - /// /// text-to-image
/// Generate a new image from a text prompt diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.UpscaleImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.UpscaleImage.g.cs index cc06225..3ccdea0 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.UpscaleImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.UpscaleImage.g.cs @@ -41,6 +41,22 @@ partial void ProcessUpscaleImageResponseContent( /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// OUTPUT_FILE=./out/v1_upscaled_image.png
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/generation/esrgan-v1-x2plus/image-to-image/upscale"
+ /// curl -f -sS -X POST "$URL" \
+ /// -H 'Content-Type: multipart/form-data' \
+ /// -H 'Accept: image/png' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" \
+ /// -F 'image=@"../init_image.png"' \
+ /// -F 'width=1024' \
+ /// -o "$OUTPUT_FILE" + ///
public async global::System.Threading.Tasks.Task> UpscaleImageAsync( string engineId, @@ -438,7 +454,6 @@ partial void ProcessUpscaleImageResponseContent( } } } - /// /// image-to-image/upscale
/// Create a higher resolution version of an input image.
diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserAccount.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserAccount.g.cs index a557cf2..afb3ef1 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserAccount.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserAccount.g.cs @@ -25,6 +25,18 @@ partial void ProcessUserAccountResponseContent( ///
/// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// # Determine the URL to use for the request
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/user/account"
+ /// curl -f -sS "$URL" \
+ /// -H 'Accept: application/json' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" + ///
public async global::System.Threading.Tasks.Task UserAccountAsync( global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserBalance.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserBalance.g.cs index cf7efb6..6862d1d 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserBalance.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1UserClient.UserBalance.g.cs @@ -28,6 +28,18 @@ partial void ProcessUserBalanceResponseContent( /// /// The token to cancel the operation with /// + /// + /// if [ -z "$STABILITY_API_KEY" ]; then
+ /// echo "STABILITY_API_KEY environment variable is not set"
+ /// exit 1
+ /// fi
+ /// # Determine the URL to use for the request
+ /// BASE_URL=${API_HOST:-https://api.stability.ai}
+ /// URL="$BASE_URL/v1/user/balance"
+ /// curl -f -sS "$URL" \
+ /// -H 'Content-Type: application/json' \
+ /// -H "Authorization: Bearer $STABILITY_API_KEY" + ///
public async global::System.Threading.Tasks.Task UserBalanceAsync( string? organization = default, global::System.Threading.CancellationToken cancellationToken = default)