Generation cost
$0.013 / image
Image model
Fast queue for quick previews, creative A/B tests, and bulk generation workloads.
API status: under development
Generation cost
$0.013 / image
Request limit
140 QPS
Billing type
Per generation
Updated
2026-03-11
Endpoint: /v1/images/generations
Method: POST
Authorization: `Authorization: Bearer $APISTOR_API_KEY`
Error types: /errors
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model ID from catalog (for example, nanobanano-2). |
| prompt | string | Yes | Text prompt for image generation. |
| size | string | No | Output image size: 1024x1024, 2048x2048, 4096x4096. |
| n | number | No | Number of images in a single request. |
| format | string | No | Output format: url or b64_json. |
Request example (cURL)
curl -X POST "https://api.apistor.io/v1/images/generations" \
-H "Authorization: Bearer $APISTOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-fast",
"prompt": "High-quality ecommerce hero image of a futuristic banana product, soft studio light",
"size": "1024x1024",
"n": 1,
"format": "url"
}'Response example (JSON)
{
"id": "gen_01JY7B5Q2P9T2M9A12KJ3R4L2V",
"model": "nano-banana-fast",
"status": "completed",
"price": "$0.013 / image",
"output": [
{
"url": "https://cdn.apistor.io/output/image_01JY7B5Q.webp",
"width": 1024,
"height": 1024
}
],
"created_at": "2026-03-17T10:25:11Z"
}For production integrations, we will add webhooks, idempotency keys, and SDKs in the next stage.
Open error catalog