Image Generator

Generate stunning images from text prompt


CURL

curl \
  --request POST \
  --url 'https://app.imggen.ai/v1/generate-image' \
  --header 'X-IMGGEN-KEY: YOUR_IMGGEN_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"close up photo of a rabbit", "aspect_ratio": "square" }' \

Request body

prompt

textRequired

Text description to generate image.


samples

number
No. of images to be generated.

aspect_ratio

textRequired
Aspect ratio for output image.
Available Options
squareportraitlandscape

model

textRequired
Specify generative AI model used.
Available Options
imggen-baseimggen-base-fastimggen-xl

Results

When images generated successfully, you’ll receive a JSON response:

{
  "success": true,
  "message": "Images Generated Successfully",
  "images": ["iVBORw0KGgoAAA...SUVORK5CYII="]
}