Class StabilityGenerationRequest
Inheritance
Inherited Members
Namespace: Glitch9.AIDevKit.AmazonAws
Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
Syntax
public class StabilityGenerationRequest : StabilityRequest
Properties
| Edit this page View SourceAspectRatio
Optional. Controls the aspect ratio of the generated image. This parameter is only valid for text-to-image requests. Default 1:1. Enum: 16:9, 1:1, 21:9, 2:3, 3:2, 4:5, 5:4, 9:16, 9:21.
Declaration
[JsonProperty("aspect_ratio")]
public StabilityTypes.AspectRatio? AspectRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| StabilityTypes.AspectRatio? |
Creativity
creativity -(number) Indicates how creative the model should be when upscaling an image. Higher values will result in more details being added to the image during upscaling. Range between 0.1 and 0.5. Default 0.35
Declaration
[JsonProperty("creativity")]
public float? Creativity { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
Image
Required for image-to-image mode. Base64-encoded input image. Minimum 64 pixels per side. Supported formats: jpeg, png, webp.
Declaration
[JsonProperty("image")]
public string Image { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Mode
Optional. Only for Stable Diffusion 3.5 Large model. Default: text-to-image. Enum: image-to-image or text-to-image. Controls whether this is a text-to-image or image-to-image
Declaration
[JsonProperty("mode")]
public string Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Strength
Required for image-to-image mode. Controls influence of the input image on the output. Range 0 to 1. Value of 0 preserves the input image, value of 1 ignores the input image.
Declaration
[JsonProperty("strength")]
public float? Strength { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
StylePreset
style_preset -Guides the image model towards a particular style. Enum: 3d-model, analog-film, anime, cinematic, comic-book, digital-art, enhance, fantasy-art, isometric, line-art, low-poly, modeling-compound, neon-punk, origami, photographic, pixel-art, tile-texture.
Declaration
[JsonProperty("style_preset")]
public StabilityTypes.StylePreset? StylePreset { get; set; }
Property Value
| Type | Description |
|---|---|
| StabilityTypes.StylePreset? |