Google-Modelle werden über eine einheitliche, asynchrone Job-API aufgerufen. Starte einen Task mit POST /api/generate und frage dann GET /api/generate/{taskId} ab, bis er fertig ist. Diese Familie stellt 9 Endpunkte bereit.
Überblick
Jeder Endpunkt teilt sich dieselbe Hülle — nur model und die input-Felder ändern sich. Führe einen beliebigen im Playground des Modell-Markts aus.
Authentifizierung
Erstelle einen API-Schlüssel unter /api-keys und sende ihn als Bearer-Token. Anfragen aus dem Browser bei angemeldeter Sitzung funktionieren auch über das Session-Cookie.
Authorization: Bearer <YOUR_API_KEY>Task erstellen
POST https://97ai.97claude.com/api/generateBody: { "model": "<slug>", "input": { … } }
Antwort: { "taskId": "<id>", "state": "waiting" }
Ergebnis abfragen
GET https://97ai.97claude.com/api/generate/<taskId>Antwort: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state zu success oder fail wird. Fehlgeschlagene Tasks werden nicht berechnet.Endpunkte
| Modell | Task | model slug |
|---|---|---|
| Imagen 4 Fast | Text to Image | google/imagen4-fast |
| Imagen 4 Ultra | Text to Image | google/imagen4-ultra |
| Imagen 4 | Text to Image | google/imagen4 |
| Nano Banana Edit | Image to Image | google/nano-banana-edit |
| Nano Banana | Text to Image | google/nano-banana |
| Pro | Image to Image | google/pro-image-to-image |
| Nano Banana 2 | Text to Image | google/nanobanana2 |
| Nano Banana 2 Lite | Text to Image | google/nano-banana-2-lite |
| Gemini 3.1 Flash TTS | Text to Speech | google/gemini-3-1-flash-tts |
Imagen 4 Fast · Text to Image
google/imagen4-fastpromptstringerforderlichText prompt describing the desired output.
aspect_ratiostringoptionalOutput aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/imagen4-fast",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Imagen 4 Ultra · Text to Image
google/imagen4-ultrapromptstringerforderlichText prompt describing the desired output.
aspect_ratiostringoptionalOutput aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/imagen4-ultra",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Imagen 4 · Text to Image
google/imagen4promptstringerforderlichText prompt describing the desired output.
aspect_ratiostringoptionalOutput aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/imagen4",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Nano Banana Edit · Image to Image
google/nano-banana-editpromptstringerforderlichText prompt describing the desired output.
image_urlsstring[]erforderlichOne or more source image URLs to condition on.
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-edit",
"input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
}'Nano Banana · Text to Image
google/nano-bananapromptstringerforderlichText prompt describing the desired output.
aspect_ratiostringoptionalOutput aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Pro · Image to Image
google/pro-image-to-imagepromptstringerforderlichText prompt describing the desired output.
image_urlsstring[]erforderlichOne or more source image URLs to condition on.
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/pro-image-to-image",
"input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
}'Nano Banana 2 · Text to Image
google/nanobanana2promptstringerforderlichText prompt describing the desired output.
aspect_ratiostringoptionalOutput aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nanobanana2",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Nano Banana 2 Lite · Text to Image
google/nano-banana-2-litepromptstringerforderlichText prompt describing the desired output.
aspect_ratiostringoptionalOutput aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-2-lite",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Gemini 3.1 Flash TTS · Text to Speech
google/gemini-3-1-flash-ttspromptstringerforderlichText prompt describing the desired output.
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3-1-flash-tts",
"input": { "prompt": "a red panda surfing" }
}'