Inpaint
POST
https://api.ezlinkai.com/v2beta/stable-image/edit/inpaint
Edit
on the content of a "mask" image.
1.
mask
parameter2.
image
parameter.Try it out
How to use
POST
request.authorization
field. The body of the request must bemultipart/form-data
, and the accept
header should be set to one of the following:image/*
to receive the image in the format specified by the output_format
parameter.application/json
to receive the image encoded as base64 in a JSON response.image
prompt
mask
negative_prompt
seed
output_format
Note: for more details about these parameters please see the request schema below.
Output
Credits
Request
Header Params
authorization
string
required
>= 1 characters
content-type
string
required
>= 1 characters
Example:
multipart/form-data
accept
enum<string>
required
image/*
to get the image bytes directly. Otherwise specify application/json
to receive the image as base64 encoded JSON.Allowed values:
image/*application/json
Default:
image/*
stability-client-id
string
optional
<= 256 characters
Example:
my-awesome-app
stability-client-user-id
string
optional
<= 256 characters
Example:
DiscordUser#9999
stability-client-version
string
optional
<= 256 characters
Example:
1.2.1
Body Params multipart/form-data
image
file
required
Example:
./some/image.png
prompt
string
required
elements, colors, and subjects will lead to better results.
(word:weight)
,where
word
is the word you'd like to control the weight of and weight
is a value between 0 and 1. For example:
The sky was a crisp (blue:0.3) and (green:0.8)
would convey a sky that was blue and green, but more green than blue.
>= 1 characters<= 10000 characters
negative_prompt
string
optional
This is an advanced feature.
<= 10000 characters
mask
file
optional
second image (passed into this parameter) or via the alpha channel of the
image
parameter.at any pixel, the strength of inpainting based on how dark or light the given pixel is.
Completely black pixels represent no inpainting strength while completely white pixels
represent maximum strength.
image
parameter, it will be automatically resized.image
parameter.Transparent pixels will be inpainted while opaque pixels will be preserved.
image
with an alpha channel is provided along with a mask
, the mask
will take precedence.Example:
./some/image.png
grow_mask
number
optional
Note: Excessive growth may obscure fine details in the mask and/or merge nearby masked regions.
>= 0<= 100
Default:
5
Example:
5
seed
number
optional
0
to use a random seed.)>= 0<= 4294967294
Default:
0
output_format
enum<string>
optional
content-type
of the generated image.Allowed values:
jpegpngwebp
Default:
png
Example:
png
Request samples
Responses
Modified at 2024-08-18 02:36:47