Stable Diffusion 3
POST
https://api.ezlinkai.com/v2beta/stable-image/generate/sd3
Generate
API status can be reviewed here.
Try it out
How to use
POST
request.authorization
field. The body of the request must bemultipart/form-data
. 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.Generating with a prompt
parameter is the
prompt
, it also supports an aspect_ratio
parameter which can be used to control theaspect ratio of the generated image.
Generating with a prompt and an image
starting point. The required parameters are:
prompt
- text to generate the image fromimage
- the image to use as the starting point for the generationstrength
- controls how much influence the image
parameter has on the output imagemode
- must be set to image-to-image
Note: maximum request size is 10MiB.
Optional Parameters:
model
- the model to use (SD3 Medium, SD3 Large, or SD3 Large Turbo)output_format
- the the format of the output imageseed
- the randomness seed to use for the generationnegative_prompt
- keywords of what you do not wish to see in the output imageNote: 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
prompt
string
required
elements, colors, and subjects will lead to better results.
>= 1 characters<= 10000 characters
mode
enum<string>
GenerationMode
prompt
parameterprompt
, image
, and strength
parametersAllowed values:
text-to-imageimage-to-image
Default:
text-to-image
Example:
text-to-image
image
file
optional
Important: This parameter is only valid for image-to-image requests.
strength
number
optional
image
parameter has on the generated image. A value of 0 would yield an image thatis identical to the input. A value of 1 would be as if you passed in no image at all.
Important: This parameter is only valid for image-to-image requests.
>= 0<= 1
aspect_ratio
enum<string>
optional
Important: This parameter is only valid for text-to-image requests.
Allowed values:
21:916:93:25:41:14:52:39:169:21
Default:
1:1
Example:
1:1
model
enum<string>
optional
sd3-medium
requires 3.5 credits per generationsd3-large
requires 6.5 credits per generationsd3-large-turbo
requires 4 credits per generationAllowed values:
sd3-mediumsd3-largesd3-large-turbo
Default:
sd3-large
Example:
sd3-large
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:
pngjpeg
Default:
png
Example:
png
negative_prompt
string
optional
This is an advanced feature.
Important: This parameter does not work with sd3-large-turbo
.
<= 10000 characters
Request samples
Responses
Modified at 2024-08-18 02:37:15