Headers
Specifies which format to return the response in. With
image/png
and
image/jpeg
, the server will populate the response body with a binary image
of the specified format.The media type of the request body.
The Bearer with Fireworks API Key.
Request Body
Prompt to use for the image generation process.
Aspect ratio of the generated image.Options:
1:1
, 21:9
, 16:9
, 3:2
, 5:4
, 4:5
, 2:3
, 9:16
, 9:21
, 4:3
, 3:4
Classifier-free guidance scale for the image diffusion process. Default value is 3.5.
Number of denoising steps for the image generation process. Default value is 4.
Random seed to use for the image generation process. If 0, we will use a totally random seed.
Response
The unique identifier for the image generation request.
Includes a base64-encoded string containing an image in PNG format.
To retrieve the image, base64-decode the string into binary data,
then load that binary data as a PNG file.
Can be
SUCCESS
or CONTENT_FILTERED
.Specifies the outcome of the image generation process. It could be
SUCCESS
indicating that the image was successfully generated, or
CONTENT_FILTERED
if the image was filtered due to the safety_check=true
parameter being set.The seed used for the image generation process.