Base URL: https://platform.runblob.io
GET /v1/gemini/generations/
Retrieve the status and result of an image generation task.
The UUID returned from the generate endpoint
curl https://platform.runblob.io/v1/gemini/generations/ffd473d5-5bef-4e14-bf22-8d559be3c19f \
-H "Authorization: Bearer YOUR_API_KEY"
Response (Pending/Processing)
{
"task_uuid": "ffd473d5-5bef-4e14-bf22-8d559be3c19f",
"status": "processing",
"prompt": "A cute orange cat sitting on a windowsill",
"result_image_url": null,
"message": null
}
Response (Completed)
{
"task_uuid": "ffd473d5-5bef-4e14-bf22-8d559be3c19f",
"status": "completed",
"prompt": "A cute orange cat sitting on a windowsill",
"result_image_url": "https://storage.runblob.io/nanobanana/outputs/2025/12/ffd473d5-5bef-4e14-bf22-8d559be3c19f.png",
"message": null
}
Response (Failed)
{
"task_uuid": "ffd473d5-5bef-4e14-bf22-8d559be3c19f",
"status": "failed",
"prompt": "A cute orange cat sitting on a windowsill",
"result_image_url": null,
"message": "MODERATION_FAILED"
}
UUID of the generation task
Current status: "pending", "processing", "completed", or "failed"
Original prompt used for generation
URL of the generated image (only when status is "completed")
Error code if status is "failed", otherwise null
Status Values
| Status | Description |
|---|
pending | Task is queued, waiting to be processed |
processing | Generation is in progress |
completed | Image is ready, check result_image_url |
failed | Generation failed, check message for error code |
List Generations
GET /v1/gemini/generations
Retrieve a list of your recent generations.
Maximum number of results (1-100)
Number of results to skip (pagination)
curl "https://platform.runblob.io/v1/gemini/generations?limit=10&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
[
{
"task_uuid": "ffd473d5-5bef-4e14-bf22-8d559be3c19f",
"status": "completed",
"prompt": "A cute orange cat...",
"result_image_url": "https://storage.runblob.io/...",
"message": null
},
{
"task_uuid": "abc123d5-5bef-4e14-bf22-8d559be3c19f",
"status": "failed",
"prompt": "Another prompt...",
"result_image_url": null,
"message": "API_ERROR"
}
]