API for Text to Image Generator
Header Attributes
Parameter | Value |
---|---|
X-source | web |
Text to Image Generator
Request Url
Method | Url |
---|---|
POST | https://aiapi.aiphotocraft.com/api/image_generator (opens in a new tab) |
Body Attributes
Parameter | Description |
---|---|
prompt | Description of the kind of image you want to generate |
aspectRatio | Aspect ratio of the desired image |
imageCount | Number 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".