API Documentation
Integrate powerful AI image editing capabilities into your applications with our comprehensive API. Simple, fast, and reliable.
Quick Start
Get up and running in minutes
Get API Key
Sign up and get your free API key to start making requests
Make Request
Send your first API request using our simple REST endpoints
Get Results
Receive processed images and integrate them into your app
API Endpoints
Complete reference for all available endpoints
/v1/enhanceEnhance image quality with AI upscaling and noise reduction
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| image_url | string | Required | URL of the image to enhance |
| scale_factor | number | Optional | Upscaling factor (1-4, default: 2) |
| denoise | boolean | Optional | Apply noise reduction (default: true) |
/v1/remove-backgroundRemove background from images automatically
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| image_url | string | Required | URL of the image |
| output_format | string | Optional | Output format: png, jpg (default: png) |
/v1/style-transferApply artistic styles to images
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| image_url | string | Required | URL of the source image |
| style | string | Required | Style name or custom style URL |
| strength | number | Optional | Style strength (0-1, default: 0.8) |
/v1/object-removeRemove objects from images using AI inpainting
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| image_url | string | Required | URL of the image |
| mask_url | string | Required | URL of the mask image |
| prompt | string | Optional | Description of what to fill the area with |
SDKs & Examples
Get started quickly with our official SDKs
Python
pip install nano-banana-sdkExample Usage
from nano_banana import Client
client = Client(api_key="your_api_key")
result = client.enhance_image(
image_url="https://example.com/image.jpg",
scale_factor=2
)
print(result.enhanced_url)JavaScript
npm install nano-banana-sdkExample Usage
import { NanoBanana } from 'nano-banana-sdk';
const client = new NanoBanana({
apiKey: 'your_api_key'
});
const result = await client.enhanceImage({
imageUrl: 'https://example.com/image.jpg',
scaleFactor: 2
});
console.log(result.enhancedUrl);cURL
Available on all systemsExample Usage
curl -X POST https://api.nano-banana.com/v1/enhance -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{
"image_url": "https://example.com/image.jpg",
"scale_factor": 2
}'Rate Limits
API Pricing
Volume discounts available for enterprise customers.View detailed pricing
Need Help?
Our developer support team is here to help you integrate successfully
Documentation
Comprehensive guides and API reference
Live Chat
Get instant help from our support team
Email Support
Detailed technical assistance via email