Class StabilityInpaintRequest
Request body for POST /v2beta/stable-image/edit/inpaint. Fills masked or transparent areas of an image using the provided prompt.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.Stability
Assembly: Glitch9.AIDevKit.Provider.Stability.dll
Syntax
public class StabilityInpaintRequest : StabilityRequest, IMultipartFormRequest
Properties
| Edit this page View SourceCreativity
Optional. Creativity strength when inpainting. Range: 0.1 to 0.5. Default: 0.35.
Declaration
[JsonProperty("creativity")]
public float? Creativity { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
GrowMask
Optional. Number of pixels to grow the mask outward in all directions. The expanded area is blurred to smooth the transition. Range: 0 to 20. Default: 5.
Declaration
[JsonProperty("grow_mask")]
public int? GrowMask { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Image
Required. Raw bytes of the source image to inpaint. Formats: jpeg, png, webp. Minimum 64 pixels per side.
Declaration
[JsonProperty("image")]
public byte[] Image { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Mask
Optional. Grayscale mask image defining the area to inpaint. White pixels are inpainted; black pixels are preserved. If omitted, the alpha channel of the source image is used.
Declaration
[JsonProperty("mask")]
public byte[] Mask { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
StylePreset
Optional. Guides the image model toward a particular artistic style.
Declaration
[JsonProperty("style_preset")]
public StabilityTypes.StylePreset? StylePreset { get; set; }
Property Value
| Type | Description |
|---|---|
| StabilityTypes.StylePreset? |