API Reference
Banana Nano Pro API
REST API for AI image and video generation. The same endpoints that power the Banana Nano Pro studio are available for programmatic access.
Coming soon: Public API keys with per-key rate limiting and usage dashboards. Currently, the API is used internally by the web studio. Sign up to be notified when public access launches.
Base URL
Authentication
All API requests require an authenticated session. The web studio handles this automatically via Better Auth session cookies. Public API key authentication is on the roadmap.
Authorization: Bearer bnp_your_api_key
Credits
Each API call consumes credits from your account balance. Credits are deducted server-side before the generation starts and refunded automatically if the generation fails. See pricing for credit costs per model.
Endpoints
/api/image/fal/generateGenerate Image
Generate an AI image from a text prompt or source image. Supports text-to-image, image-to-image, and style transfer workflows. Returns a URL to the generated image.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Text description of the desired image |
| model | string | Yes | Model ID (e.g., 'flux-pro', 'seedream-4.5', 'gpt-image-1.5') |
| imageUrl | string | No | Source image URL for image-to-image or style transfer |
| aspectRatio | string | No | Output aspect ratio (e.g., '1:1', '16:9', '9:16') |
Response
/api/video/fal/generateGenerate Video
Generate an AI video from a text prompt, source image, or reference video. Supports text-to-video, image-to-video, video extend, and lip sync workflows.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Text description of the desired video |
| model | string | Yes | Model ID (e.g., 'kling-1.6', 'minimax-video', 'wan-2.1') |
| imageUrl | string | No | Source image for image-to-video generation |
| duration | number | No | Video duration in seconds (model-dependent, typically 5-10s) |
Response
/api/image/fal/upscaleUpscale Image
Upscale an image to higher resolution using AI super-resolution. Supports 2x and 4x scaling with detail enhancement.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| imageUrl | string | Yes | URL of the image to upscale |
| scale | number | No | Scale factor: 2 or 4 (default: 2) |
Response
/api/image/fal/remove-bgRemove Background
Remove the background from an image using AI segmentation. Returns a transparent PNG suitable for compositing.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| imageUrl | string | Yes | URL of the image to process |
Response
Available Models
Image Models
- •Flux Pro / Dev / Schnell
- •Seedream 4.0 / 4.5
- •GPT Image 1.5
- •Flux Kontext
- •Recraft V3
- •Ideogram V3
Video Models
- •Kling 1.6 Pro
- •MiniMax Video
- •Wan 2.1
- •Sora 2
- •Veo 3.1
- •Seedance 1.5 Pro
- •LTX Video
Rate Limits
Rate limits are based on your subscription tier:
| Plan | Requests/min | Concurrent jobs |
|---|---|---|
| Free | 5 | 1 |
| Basic ($4.90/mo) | 15 | 3 |
| Standard ($9.90/mo) | 30 | 5 |
| Pro ($39.90/mo) | 60 | 10 |
Start building with AI
10 free credits on signup. Try every model and endpoint.