Text to Image

API for Text to Image Generator

Header Attributes

ParameterValue
X-sourceweb

Text to Image Generator

Request Url

MethodUrl
POSThttps://aiapi.aiphotocraft.com/api/image_generator (opens in a new tab)

Body Attributes

ParameterDescription
promptDescription of the kind of image you want to generate
aspectRatioAspect ratio of the desired image
imageCountNumber of images you want to generate(int)

The value for aspectRatio must be "2:1", "1:1", "1:1.5", "1.5:1"or "1:2".