Class StabilityOutpaintRequest
Request body for POST /v2beta/stable-image/edit/outpaint. Extends the canvas of an existing image by a specified number of pixels on each side.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.Stability
Assembly: Glitch9.AIDevKit.Provider.Stability.dll
Syntax
public class StabilityOutpaintRequest : StabilityRequest, IMultipartFormRequest
Properties
| Edit this page View SourceCreativity
Optional. Creativity strength for outpainting. Range: 0.1 to 0.5. Default: 0.35.
Declaration
[JsonProperty("creativity")]
public float? Creativity { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
Down
Optional. Pixels to add on the bottom. Range: 0 to 2000. Default: 0.
Declaration
[JsonProperty("down")]
public int? Down { 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[] |
Left
Optional. Pixels to add on the left side. Range: 0 to 2000. Default: 0. At least one direction must be non-zero.
Declaration
[JsonProperty("left")]
public int? Left { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Right
Optional. Pixels to add on the right side. Range: 0 to 2000. Default: 0.
Declaration
[JsonProperty("right")]
public int? Right { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Up
Optional. Pixels to add on the top. Range: 0 to 2000. Default: 0.
Declaration
[JsonProperty("up")]
public int? Up { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |