AI Image Generator
Heavstal Image Engine uses high-speed latent diffusion models to generate images from text and provides you with a download link.
Endpoint
Section titled “Endpoint”POST /image
Request Parameters
Section titled “Request Parameters”| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Description of the image(s). Pass a string |
| count | number | No | null |
Example 1: Single Generation
Section titled “Example 1: Single Generation”const res = await fetch('https://heavstal.com.ng/api/v1/image', {method: 'POST',headers: { 'x-api-key': 'YOUR_KEY' },body: JSON.stringify({ prompt: "A cyberpunk city in rain, neon lights"})});Successful Response
Section titled “Successful Response”{"status": "success","creator": "HEAVSTAL TECH","data": { "prompt": "A cyberpunk city...", "url": "https://img-url.com/xyz.jpg", "model": "turbo", "note": "Hosted via Catbox"}}