Class StabilitySearchRecolorRequest
Request body for POST /v2beta/stable-image/edit/search-and-recolor. Recolors a specified object in the image based on a text prompt.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.Stability
Assembly: Glitch9.AIDevKit.Provider.Stability.dll
Syntax
public class StabilitySearchRecolorRequest : StabilityRequest, IMultipartFormRequest
Properties
| Edit this page View SourceGrowMask
Optional. Pixels to grow the auto-generated mask outward. 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. Formats: jpeg, png, webp. Minimum 64 pixels per side.
Declaration
[JsonProperty("image")]
public byte[] Image { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
SelectPrompt
Required. A short description of what to search for and recolor. Max 10,000 characters.
Declaration
[JsonProperty("select_prompt")]
public string SelectPrompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string |