Try Image Generation
Test the image generation API interactively. Select a model, configure parameters, and generate images.
Generate images from text prompts. See the model-specific guides below for detailed usage.
API key passed as a Bearer token.
Generate your key at platform.qolaba.ai.
Example: Authorization: Bearer sk-xxxxxxxxxxxx
Image model ID
vertex/nano-banana-flashPossible values: Text description of the image to generate
A serene mountain landscape at sunset with golden lightsync returns images directly; async returns a task_id to poll
syncPossible values: What to avoid in the generated image
Output aspect ratio
1:1Possible values: Output resolution
2KPossible values: Number of images to generate
1Creativity control. Lower = faithful, higher = creative
1Random seed for reproducibility. Same seed + prompt = same image
Enable real-time Google Search for factual/visual accuracy (Nano Banana Flash only)
falseOutput image format
Input image URLs for image-to-image generation
Strength of image transformation for image-to-image (0-1)
Number of diffusion steps (model-dependent)
Classifier-free guidance scale
Background mode
Color palette constraints
Style preset
Output resolution (Imagen models)
Let the model enhance your prompt (Imagen models)
Add invisible watermark (Imagen models)
Person generation policy (Imagen models)
Safety filter level (Imagen models)
JPEG compression quality (Imagen models)
Send a POST callback when generation completes
falseWebhook destination URL. Required when call_webhook is true
Secret sent as x-webhook-secret header in the webhook callback
Synchronous generation result
Async task created — poll GET /tasks/{task_id}
Invalid request parameters
Missing or invalid API key
Organization has insufficient credits
Upstream provider error
POST /api/v1/images/generate HTTP/1.1
Host: api.platform.qolaba.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 232
{
"model": "vertex/nano-banana-flash",
"prompt": "Place this product on a clean white marble countertop with soft studio lighting",
"image_urls": [
"https://cdn.qolaba.ai/1783597584051_rynfv3hev4.jpeg"
],
"quality": "2K",
"aspect_ratio": "1:1"
}{
"task_id": "task_abc123",
"status": "completed",
"output": {
"images": [
{
"url": "https://cdn.qolaba.ai/generated/img_001.png"
}
]
},
"usage": {
"cost_usd": 0.04,
"images_generated": 1
}
}Retrieve all available image generation models with capabilities and supported formats.
API key passed as a Bearer token.
Generate your key at platform.qolaba.ai.
Example: Authorization: Bearer sk-xxxxxxxxxxxx
List of image models
Missing or invalid API key
Organization has insufficient credits
GET /api/v1/images/models HTTP/1.1
Host: api.platform.qolaba.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "text",
"model": "text",
"provider": "text",
"capabilities": [
"text"
],
"supported_formats": [
"text"
]
}
]Poll the status of an async task (e.g. image generation with mode: "async"). Keep polling until status is completed or failed.
API key passed as a Bearer token.
Generate your key at platform.qolaba.ai.
Example: Authorization: Bearer sk-xxxxxxxxxxxx
The task ID returned by an async operation
Task status and results
Missing or invalid API key
Organization has insufficient credits
GET /api/v1/tasks/{task_id} HTTP/1.1
Host: api.platform.qolaba.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"task_id": "text",
"status": "pending",
"output": {
"images": [
{
"url": "https://example.com"
}
],
"usage": {
"cost_usd": 1,
"images_generated": 1
}
}
}Last updated
Was this helpful?