Skip to content

AI Image Generator

This API provides high-speed latent diffusion models to generate images from text descriptions and provides you with an image link.

POST /api/v1/image

The following parameters are accepted in the request body:

FieldTypeRequiredDescription
promptstringYesDescription of the image(s) to generate.
Terminal window
curl -X POST https://heavstal.com.ng/api/v1/image \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-d '{"prompt": "A cyberpunk city in rain, neon lights"}'
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"prompt": "A cyberpunk city...",
"url": "https://img-url.com/xyz.jpg",
"model": "turbo"
}
}