API Reference
Image Generation
Creates an image given a prompt.
Request body
prompt string Required
A text description of the desired image. The maximum length is - characters.
model string Optional Defaults to SD-XL 1.0-base
The model to use for image generation.
n integer
The value used to seed the model generator.
quality string Optional Defaults to smooth
The quality of the image that will be generated.
response_format string or null Optional Defaults to url
The format in which the generated images are returned. Must be one of url
or b64_json
. URLs are only valid for 60 minutes after the image has been generated.
size string or null Optional Defaults to 1024x1024
The size of the generated images. Must be one of 256x256
, 512x512
, or 1024x1024
.
Returns
Returns a list of image objects.
Image Editing
Creates an edited version of an image given an original image and a prompt.
Request body
image file Required
The image file to edit or use as a reference for pose estimation. Must be valid PNG file.
prompt string Required
A text description of the desired image. The maximum length is - characters.
model string Optional Defaults to SD-XL 1.0-base
The model to use for image generation.
n integer
The value used to seed the model generator.
quality string Optional Defaults to smooth
The quality of the image that will be generated.
response_format string or null Optional Defaults to url
The format in which the generated images are returned. Must be one of url
or b64_json
. URLs are only valid for 60 minutes after the image has been generated.
size string or null Optional Defaults to 1024x1024
The size of the generated images. Must be one of 256x256
, 512x512
, or 1024x1024
.
user string Optional
An optional parameter must be set to cn
when the user wants to use the endpoint for pose estimation.
Returns
Returns a list of image objects.
Last updated