Getting Started
Prerequisites
Step 1: Create a Task
curl -X POST https://viralapi.ai/v1/task/create \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gemini-2.5-flash-image",
"task_type": "image",
"input": {
"prompt": "A serene mountain landscape at sunset with vibrant colors",
"aspect_ratio": "16:9"
}
}'Step 2: Poll for Results
Step 3: Download the Image
Using NanoBanana Pro
Image Editing
Next Steps
Last updated