Skip to main content
POST

The image generation API is depracated and no longer being maintained.

Request Parameters

Body

string
required
The text prompt to generate the image from. Must be between 1-5000 characters.
string
default:"1:1"
The aspect ratio of the generated image.
  • 1:1
  • 16:9
  • 21:9
  • 3:2
  • 2:3
  • 4:5
  • 5:4
  • 3:4
  • 4:3
  • 9:16
  • 9:21
number
The width of the image. Must be between 256-1920 pixels.
number
The height of the image. Must be between 256-1920 pixels.
number
default:"4"
The number of denoising steps. Must be between 1-90. Higher values produce better quality images but take more time to generate.
string
default:"png"
The output format of the generated image. Must be one of the following values:
  • png
  • svg
string
The image url.
string
The key used to store the image on Jigsawstack file. Learn more about how to handle files in Jigsawstack’s Handling Files section.
Passing in files is used for image edits
object
string
The specified return type for the response
  • url
  • base64
  • binary
string
required
Your JigsawStack API key

Response

The API returns the generated image directly in the response body as binary data.