Image generation overview
APIMaster image APIs — OpenAI Images compatible, async tasks.
Image generation overview
Image APIs live under https://apimaster.ai/v1. Documented models:
| Model | Description | Doc |
|---|---|---|
gpt-image-2 |
Standard channel; URL + base64 reference images | GPT-Image-2 |
gpt-image-2-official |
OpenAI official channel; mask inpainting, quality, up to 4 images |
GPT-Image-2 official |
Conventions
- Auth:
Authorization: Bearer YOUR_API_KEY(get key) - Submit:
POST https://apimaster.ai/v1/images/generations→task_id - Poll:
GET https://apimaster.ai/v1/tasks/{task_id}(wait 10–20s before first poll, then every 3–5s)
Quick example
curl -s "https://apimaster.ai/v1/images/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "An orange cat watching sunset, watercolor",
"size": "16:9",
"resolution": "2k"
}'