Text-to-Image
Image Generation API, kostenlos testen
Keine Kreditkarte nötig · Gratis-Guthaben 90 Tage gültig · Danach Guthaben aufladen und nach Verbrauch zahlen, kein Abo
FLUX.2 Klein 4B
Text-to-Image
PromptStudio product photo of a matte ceramic coffee mug with a single handle on a walnut table, soft morning window light, thin steam rising, shallow depth of field, warm amber tones
Welches Bildmodell passt zu dir
| Modell | Geeignet für | Preis pro Bild | Größe |
|---|---|---|---|
| FLUX.2 Klein 4B | Produktfotos, Fotos, Bildbearbeitung mit bis zu 3 Referenzbildern | 0,0037 $ bei 1024² | 256–1536 px |
| Z-Image-Turbo | Fotorealistische Szenen, kurzer Text auf Schildern, Negative Prompts | 0,0063 $ bei 768² | 128–2048 px |
| Z-Anime | Anime und Illustration | 0,0063 $ bei 768² | 128–2048 px |
| FLUX.1 Schnell | Niedrigster Preis bei gleicher Größe, Entwürfe, Bots | 0,0019 $ bei 768² | 256–2048 px |
Preise der Bild-API
| Modell und Größe | Pro Bild | Bilder für 5 $ |
|---|---|---|
| FLUX.1 Schnell, 768 × 768 | 0,0019 $ | ≈ 2.618 |
| FLUX.2 Klein, 512 × 512 | 0,0019 $ | ≈ 2.679 |
| FLUX.2 Klein, 1024 × 1024 | 0,0037 $ | ≈ 1.361 |
| Z-Image-Turbo, 768 × 768 | 0,0063 $ | ≈ 790 |
| Z-Image-Turbo, 1024 × 768 | 0,0077 $ | ≈ 646 |
Beispiel für die Text-to-Image-API
- Endpoint
- Model IDs
- Pflichtfelder
- Ergebnis
- Limits im Gratis-Konto
curl -X POST 'https://api.deapi.ai/api/v2/images/generations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"model": "Flux_2_Klein_4B_BF16",
"prompt": "studio photo of a ceramic mug, morning light",
"width": 1024,
"height": 1024,
"steps": 4,
"seed": 7
}'
import time, requests
API = "https://api.deapi.ai/api/v2"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"}
job = requests.post(f"{API}/images/generations", headers=HEADERS, json={
"model": "Flux_2_Klein_4B_BF16",
"prompt": "studio photo of a ceramic mug, morning light",
"width": 1024, "height": 1024, "steps": 4, "seed": 7,
}).json()["data"]
while True:
status = requests.get(f"{API}/jobs/{job['request_id']}", headers=HEADERS).json()["data"]
if status["status"] in ("done", "error"):
break
time.sleep(2)
print(status.get("result_url")) # Link zum fertigen Bild
Von der Registrierung zum ersten Bild
-
Gratis-Konto anlegen
-
API-Key erstellen
-
Prompt senden
FAQ zur Bild-API
Erzeuge dein erstes Bild mit 5 $ Gratis-Guthaben
Keine Kreditkarte, kein Abo.