ようこそ
Welcome to the API
Build powerful AI-powered applications with our comprehensive API. Generate stunning images and videos using the latest AI models.
Create a key, call the API with Bearer auth, and poll the task until your result is ready. Works with Claude Code, Codex and any HTTP client.
Quickstart
- 1
Create a key
Create an API key in your dashboard. It spends the same credits as the site.
Manage keys - 2
Call the API
Send a POST with your Bearer key and an Idempotency-Key, so a retry never pays twice.
curl -X POST https://www.bananapro.site/api/v1/images/generate \ -H "Authorization: Bearer $NANOBANANA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: demo-image-001" \ -d '{ "model": "nano-banana-pro", "prompt": "A glass greenhouse on a cliff at sunrise, cinematic", "resolution": "2K", "aspect_ratio": "16:9" }' - 3
Poll the result
Poll the task until its status is completed or failed, then read the image URL. Failed tasks are refunded automatically.
while true; do TASK=$(curl -s https://www.bananapro.site/api/v1/images/$TASK_ID \ -H "Authorization: Bearer $NANOBANANA_API_KEY") STATUS=$(echo "$TASK" | jq -r '.data.status') if [ "$STATUS" = "completed" ] || [ "$STATUS" = "failed" ]; then echo "$TASK" | jq break fi sleep 5 done
Use with Claude Code and other agents
Install the one-file skill and set NANOBANANA_API_KEY, and Claude Code can create images and videos, check your balance and look up tasks for you. Other agents can read the same reference from /llms-api.txt.
mkdir -p ~/.claude/skills/nanobananapro
curl --fail --location https://www.bananapro.site/downloads/nanobananapro-skill.md \
-o ~/.claude/skills/nanobananapro/SKILL.mdhttps://www.bananapro.siteGet Started
Featured Models
GPT Image 2.5
Sharper detail and cleaner typography, 1K to 4K, in two looks
Nano Banana Pro
High quality image generation with 1K, 2K, 4K resolution support
Nano Banana 2
Next-generation image generation and editing with Google Search, up to 14 reference images, and 4K resolution
Nano Banana 2 Lite
Lightweight image generation and editing with long prompts, auto aspect ratio, and up to 10 reference images
Seedream 5 Pro
Professional image generation and editing with up to 10 reference images, 1K/2K output, and precise instruction following
Nano Banana
Fast and efficient image generation for rapid prototyping
Veo3
High quality video generation powered by Google's latest model
Seedance 2
Text-to-video, image-to-video, and multimodal references with 4-15 second outputs
GPT Image 1.5
OpenAI's image generation and editing capabilities
Every model is listed in the sidebar, including Seedance 2.5, Veo3 and Kling.
Need Help?
If you have any questions or need assistance, contact us at support@nanobananapro.site