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
| Provider | Credits |
|---|---|
| apimart (default) | 4 (~$0.04) |
| kie | 4 (~$0.04) |
Endpunkt
POST
/api/v1/images/generateParameter
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| model | string | Erforderlich | Must be "nano-banana" |
| prompt | string | Erforderlich | Text description of the image to generate |
| provider | string | Optional | "apimart" (default) or "kie" |
| negative_prompt | string | Optional | What to avoid in the image |
| aspect_ratio | string | Optional | "1:1", "16:9", "9:16", "4:3", "3:4" |
| input_image | string | Optional | URL or base64 for image-to-image |
| num_images | number | Optional | Must 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.nanobananapro.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"
}'