Nano Banana Pro
Génération d'images haute qualité avec des options de résolution allant jusqu'au 4K
Fonctionnalités
- Génération d'images à partir de texte
- Transformation d'image à image
- Résolutions multiples (1K/2K/4K)
- Résultat de meilleure qualité
Tarification
| Resolution | Credits |
|---|---|
| 1K | 6 (~$0.07) |
| 2K | 9 (~$0.10) |
| 4K | 15 (~$0.17) |
Point de terminaison
POST
/api/v1/images/generateParamètres
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
| model | string | Obligatoire | Must be "nano-banana-pro" |
| prompt | string | Obligatoire | Text description of the image to generate |
| resolution | string | Facultatif | "1K", "2K", or "4K" |
| negative_prompt | string | Facultatif | What to avoid in the image |
| aspect_ratio | string | Facultatif | "1:1", "16:9", "9:16", "4:3", "3:4" |
| input_image | string | Facultatif | URL or base64 for image-to-image |
| num_images | number | Facultatif | Must be 1 |
Exemple de Demande
{
"model": "nano-banana-pro",
"resolution": "2K",
"prompt": "A majestic dragon flying over a medieval castle",
"aspect_ratio": "16:9"
}Exemple de réponse
{
"success": true,
"data": {
"task_id": "task_xyz789",
"credits_used": 9,
"remaining_credits": 491,
"model": "nano-banana-pro"
}
}Exemples de Code
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"
}'