Simple and powerful
Generate stunning AI images with a single API call. Pay only for what you use.
Get Started20% bulk discount for 5+ images • No monthly fees
Generate images with a simple POST request. Authentication is handled automatically.
curl -X POST /generate \ -H "Content-Type: application/json" \ -d '{ "prompt": "a beautiful sunset over mountains", "count": 3 }'
const response = await fetch('/generate', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ prompt: 'a majestic lion in the savanna', count: 3 }) }); const data = await response.json(); // Images returned as base64 strings
import requests response = requests.post('/generate', json={ 'prompt': 'a futuristic city skyline', 'count': 3 }) data = response.json() # Save images from data['images']
{
"images": ["base64_image_data..."],
"count": 3,
"cost_usd": 0.60,
"remaining_balance": 440
}
Simple, transparent pricing. Pay only for what you generate.
| Images | Price per Image | Total |
|---|---|---|
| 1-4 images | $0.25 | $0.25 - $1.00 |
| 5+ images | $0.20 | 20% discount |
Complete endpoint documentation.
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt |
string | Yes | Text description of the image |
count |
integer | No | Number of images (1-10, default: 1) |
size |
string | No | "1024x1024", "1792x1024", "1024x1792" |
| Code | Description |
|---|---|
| 200 | Success - images generated |
| 400 | Bad request - invalid parameters |
| 402 | Payment required - insufficient balance |
| 500 | Server error |