Class StabilitySearchReplaceRequest
Request body for POST /v2beta/stable-image/edit/search-and-replace. Replaces a specified object (described by search_prompt) with generated content.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.Stability
Assembly: Glitch9.AIDevKit.Provider.Stability.dll
Syntax
public class StabilitySearchReplaceRequest : StabilityRequest, IMultipartFormRequest
Properties
| Edit this page View SourceGrowMask
Optional. Pixels to grow the inpaint 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[] |
SearchPrompt
Required. A short description of what to search for and replace in the image. Max 10,000 characters.
Declaration
[JsonProperty("search_prompt")]
public string SearchPrompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string |