Reference
AI Image Generator
Overview
AI Image Generator allows you to generate creative images from text prompts using our high-speed diffusion pipeline. It is optimized for speed and returns a direct image URL.
Endpoint
POST /image
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Required | A descriptive text of the image you want to generate. |
Example Usage
bash
curl -X POST https://heavstal-tech.vercel.app/api/v1/image \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_KEY" \
-d '{"prompt": "A futuristic city with neon lights, cyberpunk style"}'Successful Response
json
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"prompt": "A futuristic city...",
"url": "https://image.pollinations.ai/prompt/A%20futuristic...?nologo=true&seed=8291",
"note": "This URL is generated directly from Pollination AI."
}
}