Nano Banana 2 Lite
ID:
google/nano-banana-2-liteNano Banana 2 Lite:Gemini 3.1 Flash Lite Image ベース、約4秒で生成、1K解像度、定額料金の高速モデル。
テキストから画像画像編集参照画像1K高速
概要
Nano Banana 2 Lite:Gemini 3.1 Flash Lite Image ベース、約4秒で生成、1K解像度、定額料金の高速モデル。
認証
すべての API リクエストには、Authorization ヘッダーで Bearer スキームを使用した有効な API キーが必要です。
クイックスタート
認証情報
環境変数 RUNBASE_API_KEY を設定してください。
Shell
export RUNBASE_API_KEY=your-api-key実行を作成
Shell
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-2-lite",
"input": {
"prompt": "A cinematic product photo of a ceramic lamp"
}
}'実行
実行は非同期で処理されます。リクエストを送信し、結果をポーリングで取得してください。
実行を作成
Shell
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-2-lite",
"input": { "prompt": "A cinematic product photo of a ceramic lamp" }
}'実行ステータスを取得
Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
-H "Authorization: Bearer $RUNBASE_API_KEY"結果を取得
status が "succeeded" になるまでステータスエンドポイントをポーリングし、レスポンスの output.urls を参照してください。
入力スキーマ
| パラメータ | タイプ | 必須 | 説明 |
|---|---|---|---|
| prompt | string | 必須 | Prompt |
| aspect_ratio | string | 任意 | Aspect ratioオプション: 1:11:41:82:33:23:44:14:34:55:48:19:1616:921:9auto |
| image_urls | string[] | 任意 | Reference images |
出力スキーマ
| フィールド | タイプ | 説明 |
|---|---|---|
| urls | string[] | 生成された出力 URL |
エラー
API は標準の HTTP ステータスコードで成功または失敗を示します。
| ステータスコード | 説明 |
|---|---|
| 400 | Richiesta non valida - parametri mancanti o malformati |
| 401 | Autenticazione fallita - chiave API mancante o non valida |
| 402 | Crediti insufficienti |
| 403 | Accesso negato - IP non consentito o limite di spesa della chiave API superato |
| 404 | Esecuzione non trovata |
| 429 | Limite di frequenza superato |
| 500 | Errore interno del server |

