Nano Banana Pro Image Generation
Generate ultra-high resolution, premium quality images using the Nano Banana Pro model
Tool Overview
The Nano Banana Pro Image Generation tool is the professional enhanced version of Nano Banana, providing higher image resolution and superior image quality. It supports generating images from text descriptions and high-quality image editing based on reference pictures.
Tool Identifier
nano-banana-image-pro-api
Parameters
Required Parameters
prompt
- Type:
string(required) - Description: Text description of the image content to guide AI image generation or editing
- Validation: Must be a non-empty string
- Example:
"A hyper-realistic portrait of a cyberpunk character with neon lighting"
Optional Parameters
image_list
- Type:
string[](optional) - Default:
[](empty array, no reference images) - Format: Array of complete HTTP/HTTPS URLs (e.g.,
["https://cdn.sjinn.ai/uploads/image.jpg"]) - Validation: If provided, must be an array with non-empty string elements
aspect_ratio
- Type:
string(optional) - Default:
"auto" - Supported Values:
"auto"- Automatically select the optimal aspect ratio"1:1"- Square format"16:9"- Widescreen landscape"9:16"- Portrait mobile"4:3"- Standard landscape"3:4"- Standard portrait"9:21"- Ultra-wide portrait"21:9"- Cinematic landscape"2:3"- Classic portrait"3:2"- Classic landscape
- Validation: If an unsupported value is provided, defaults to
"auto"
resolution
- Type:
string(optional) - Default:
"1K" - Supported Values:
"1K"- Standard resolution"2K"- High resolution
- Validation: If an unsupported value is provided, defaults to
"1K"
Pricing
- Credits Consumed: 150 credits per task
- Membership Requirement: None
Request Examples
Text-to-High-Resolution Image
curl -X POST https://sjinn.ai/api/un-api/create_tool_task \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool_type": "nano-banana-image-pro-api",
"input": {
"prompt": "A breathtaking landscape of northern lights over snowy mountains",
"aspect_ratio": "16:9",
"resolution": "2K"
}
}'
Image Editing with Reference (2K Output)
curl -X POST https://sjinn.ai/api/un-api/create_tool_task \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool_type": "nano-banana-image-pro-api",
"input": {
"prompt": "Enhance to professional photography quality with dramatic lighting",
"image_list": ["https://cdn.sjinn.ai/uploads/photo.jpg"],
"aspect_ratio": "16:9",
"resolution": "2K"
}
}'
High Resolution (2K)
curl -X POST https://sjinn.ai/api/un-api/create_tool_task \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool_type": "nano-banana-image-pro-api",
"input": {
"prompt": "A futuristic sci-fi cityscape with flying vehicles",
"aspect_ratio": "16:9",
"resolution": "2K"
}
}'
Using JavaScript
const response = await fetch('https://sjinn.ai/api/un-api/create_tool_task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
tool_type: 'nano-banana-image-pro-api',
input: {
prompt: 'A breathtaking landscape of northern lights over snowy mountains',
aspect_ratio: '16:9',
resolution: '2K',
},
}),
});
const result = await response.json();
console.log('Task ID:', result.data.task_id);
Using Python
import requests
url = 'https://sjinn.ai/api/un-api/create_tool_task'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
data = {
'tool_type': 'nano-banana-image-pro-api',
'input': {
'prompt': 'A breathtaking landscape of northern lights over snowy mountains',
'image_list': ['https://cdn.sjinn.ai/uploads/reference.jpg'],
'aspect_ratio': '16:9',
'resolution': '2K'
}
}
response = requests.post(url, json=data, headers=headers)
result = response.json()
print('Task ID:', result['data']['task_id'])
Response Examples
Success Response
{
"success": true,
"errorMsg": "",
"error_code": 0,
"data": {
"task_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
Error Response (Invalid Parameters)
{
"success": false,
"errorMsg": "image_list must be an array",
"error_code": 400
}
Standard vs Pro Comparison
Standard Version
- Max Resolution: 1K
- Image Quality: High
- Detail Rendering: Good
- Generation Speed: 10-30 seconds
- Credit Cost: 50 credits
- Use Cases: Daily use, quick prototyping
Pro Version
- Max Resolution: 2K
- Image Quality: Very High
- Detail Rendering: Excellent
- Generation Speed: 30-90 seconds
- Credit Cost: 150 credits
- Use Cases: Professional work, commercial use
Resolution Guide
1K Resolution
- Generation Time: 30-60 seconds
- Use Cases: Web, social media, quick prototyping
2K Resolution
- Generation Time: 60-90 seconds
- Use Cases: HD display, printing, professional work
Best Practices
-
Prompt Optimization:
- Pro version is more sensitive to prompts, use more detailed descriptions
- Include specific style, material, and lighting descriptions
- Can use professional photography terms (e.g., "bokeh", "golden hour", "HDR")
-
Resolution Selection:
- Use 1K during testing phase to save time
- Use 2K for final products and professional work
-
Reference Image Usage:
- Pro version better understands and integrates reference image details
- Recommend using high-quality reference images
- For multi-image fusion, recommend no more than 3 images
-
Aspect Ratio Selection:
- Choose appropriate aspect ratio based on final use
- For print work, recommend 4:3 or 3:4
- For digital display, recommend 16:9 or 9:16
-
Image URL Format:
- All image URLs in
image_listmust be complete HTTP/HTTPS addresses - Ensure images are publicly accessible
- All image URLs in
-
Generation Time:
- 1K: 30-60 seconds
- 2K: 60-90 seconds
