Nano Banana

Schnelle Bildgenerierung mit Unterstützung für Text-zu-Bild und Bild-zu-Bild

Funktionen
  • Text-zu-Bild-Generierung
  • Bild-zu-Bild-Transformation
  • Mehrere Seitenverhältnisse
  • Schnelle Generierung (~5 s)
Preise
4 (~$0.04)Per image
Endpunkt
POST/api/v1/images/generate
Parameter
ParameterTypErforderlichBeschreibung
modelstringErforderlichMust be "nano-banana"
promptstringErforderlichText description of the image to generate
negative_promptstringOptionalWhat to avoid in the image
aspect_ratiostringOptional"1:1", "16:9", "9:16", "4:3", "3:4"
input_imagestringOptionalURL or base64 for image-to-image
num_imagesnumberOptionalMust be 1
Beispielanfrage
{
  "model": "nano-banana",
  "prompt": "A futuristic city at night with neon lights",
  "aspect_ratio": "16:9"
}
Antwortbeispiel
{
  "success": true,
  "data": {
    "task_id": "task_abc123",
    "credits_used": 4,
    "remaining_credits": 496,
    "model": "nano-banana"
  }
}
Code-Beispiele
curl -X POST https://gateway.bananapro.site/api/v1/images/generate \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana",
    "prompt": "A futuristic city at night with neon lights",
    "aspect_ratio": "16:9"
  }'
Nano Banana Pro API