Nano Banana Pro
高品質な画像生成を実現し、最大4Kまでの解像度オプションに対応
機能
- テキストから画像生成
- 画像から画像への変換
- 複数解像度(1K/2K/4K)
- より高品質な出力
料金設定
| Resolution | Credits |
|---|---|
| 1K | 6 (~$0.07) |
| 2K | 9 (~$0.10) |
| 4K | 15 (~$0.17) |
エンドポイント
POST
/api/v1/images/generateパラメータ
| パラメータ | タイプ | 必須 | 説明 |
|---|---|---|---|
| model | string | 必須 | Must be "nano-banana-pro" |
| prompt | string | 必須 | Text description of the image to generate |
| resolution | string | オプション | "1K", "2K", or "4K" |
| negative_prompt | string | オプション | What to avoid in the image |
| aspect_ratio | string | オプション | "1:1", "16:9", "9:16", "4:3", "3:4" |
| input_image | string | オプション | URL or base64 for image-to-image |
| num_images | number | オプション | Must be 1 |
リクエストの例
{
"model": "nano-banana-pro",
"resolution": "2K",
"prompt": "A majestic dragon flying over a medieval castle",
"aspect_ratio": "16:9"
}レスポンス例
{
"success": true,
"data": {
"task_id": "task_xyz789",
"credits_used": 9,
"remaining_credits": 491,
"model": "nano-banana-pro"
}
}コード例
curl -X POST https://gateway.nanobananapro.site/api/v1/images/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"resolution": "2K",
"prompt": "A majestic dragon flying over a medieval castle",
"aspect_ratio": "16:9"
}'