シンプルで分かりやすい料金
使った分だけ支払う方式で、サブスク料金や隠れた費用はありません。
Nano Banana 2 API
$0.06-$0.12/img /画像
Developer-ready API access
なぜGemini 2.5 Flash Image APIなのか?
速度、品質、価格を重視した次世代のAI画像生成を体験できます。
高速生成
Gemini 2.5 Flashは高品質な画像を数秒で生成します。
高コストパフォーマンス
1枚0.03ドル、1リクエスト最大4枚で高品質な画像を利用できます。
先進的なAI技術
Gemini 2.5 Flashの高い画像品質と優れたプロンプト理解を活用できます。
複数の出力形式
用途に応じてJPEGまたはPNGを選択できます。
ノーコードワークスペース
アプリに統合する前に、Web画面から画像生成を試せます。
開発者向けAPI
分かりやすいREST APIと実用的なドキュメントを提供します。
信頼性の高い基盤
自動スケーリングに対応した堅牢なクラウド基盤です。
Webhook対応
生成完了時に通知を受け取れます。
商用利用可能
生成画像を製品や商用コンテンツに活用できます。
Integrate in Minutes
Create your API key
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Top up credits
Add credits on the billing page when you are ready to scale beyond the free tier.
Call the API
POST your first task following the API docs, then poll the task until the result is ready.
Iterate in the playground
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini",
"task_type": "nano-banana-2",
"input": {
"prompt": "A modern smartphone on a reflective surface with water droplets.",
"resolution": "1K"
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"image_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run nano-banana-2 \ prompt="A modern smartphone on a reflective surface with water droplets." \ resolution=1K ✓ Task completed! https://img.theapi.app/ephemeral/…
よくある質問
Gemini 2.5 Flash Image APIとは?
Gemini 2.5 FlashはGoogleの最新画像生成モデルで、速度と品質に最適化されています。
画像生成の料金はいくらですか?
料金は1枚0.03ドルで、1リクエストあたり最大4枚まで生成できます。
対応する画像形式は?
JPEGとPNGに対応しています。
生成速度はどれくらいですか?
ほとんどの画像は10秒未満で生成されます。
生成画像を商用利用できますか?
はい。生成画像は商用利用可能です。
ノーコードワークスペースとは?
ノーコードワークスペース piapi.ai/workspace/nano-banana では、ブラウザ上でプロンプトを試して画像を生成できます。
Webhookに対応していますか?
はい。画像の準備ができたら通知を受け取れます。
APIをアプリに統合するには?
REST APIで簡単に統合できます。詳しくは APIドキュメント をご覧ください。
どんなプロンプトが効果的ですか?
詳細なプロンプトほど良い結果になります。スタイル、構図、光、雰囲気を含めてください。
画像生成数に制限はありますか?
総数に厳しい上限はありませんが、1リクエストは最大4枚までです。
チームへの連絡方法は?
support@piapi.ai までご連絡ください。喜んでお手伝いします。
More questions? See the API docs.
Our blog
Nano Banana 2 API



