為何選擇我們的 API
多種 AI 模型
透過單一統一的 API 存取多種 AI 模型,包括 Nano Banana、Seedream、GPT Image、Veo 等。
簡易整合
支援 Bearer 權杖驗證的 RESTful API。只需兩個端點,幾分鐘即可開始使用。
按量計費
無月度最低消費。使用我們靈活的積分系統,只需為您生成的內容付費。
非同步任務系統
提交生成任務並輪詢結果。專為生產環境設計,支援自動重試和狀態追蹤。
API 端點
快速入門範例
| 1 | curl -X POST https://nanobanana-pro.me/api/v1/generate \ |
| 2 | -H "Authorization: Bearer sk-xxxxx" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "mediaType": "image", |
| 6 | "model": "nano-banana-2", |
| 7 | "prompt": "a cute cat sitting on a cloud", |
| 8 | "scene": "text-to-image", |
| 9 | "options": { |
| 10 | "aspect_ratio": "1:1", |
| 11 | "resolution": "2K" |
| 12 | } |
| 13 | }' |
| 14 | |
| 15 | # Response: |
| 16 | # { "code": 0, "data": { "taskId": "xxx-xxx" } } |
| 17 | |
| 18 | curl https://nanobanana-pro.me/api/v1/task/{taskId}?refresh=1 \ |
| 19 | -H "Authorization: Bearer sk-xxxxx" |