Image Generation
Image Generation API
Name
Value
Quick Start
curl -X POST https://api.platform.qolaba.ai/api/v1/images/generate \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"model": "vertex/nano-banana-flash",
"prompt": "A photorealistic cat sitting on the Eiffel Tower at sunset",
"aspect_ratio": "16:9"
}'{
"task_id": "task_1705312200000_abc123",
"prompt": "A photorealistic cat sitting on the Eiffel Tower at sunset",
"images": [
{
"url": "https://storage.example.com/image.png",
"width": 1280,
"height": 720,
"content_type": "image/png"
}
],
"usage": {
"images_generated": 1,
"cost_usd": 0.03,
"cost_credits": 6
}
}Processing Modes
Request Body
Core Fields
Field
Type
Required
Description
Media Inputs
Field
Type
Description
Size & Resolution
Field
Type
Description
Generation Parameters
Field
Type
Range
Description
Response Schemas
200 OK — Synchronous Result
Field
Type
Description
202 Accepted — Async Task Created
Field
Type
Description
Error Responses
Code Examples
JavaScript / TypeScript
cURL
Async Polling Flow
Poll Endpoint
Task Status Values
Status
Description
Polling Example
Task Response Shape
Run the API
Last updated