Text-to-Image
API générateur d’image IA, gratuite pour démarrer
Sans carte bancaire · Crédits offerts valables 90 jours · Ensuite, vous rechargez et payez à l’usage, sans abonnement
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
Quel modèle d’image choisir
| Modèle | Idéal pour | Prix par image | Taille |
|---|---|---|---|
| FLUX.2 Klein 4B | Photos produit et photoréalisme, retouches avec jusqu’à 3 images de référence | 0,0037 $ en 1024² | 256–1536 px |
| Z-Image-Turbo | Scènes photoréalistes, texte court sur des enseignes, prompts négatifs | 0,0063 $ en 768² | 128–2048 px |
| Z-Anime | Styles anime et illustration | 0,0063 $ en 768² | 128–2048 px |
| FLUX.1 Schnell | Prix le plus bas à taille égale, brouillons, bots | 0,0019 $ en 768² | 256–2048 px |
Tarifs de l’API image
| Modèle et taille | Par image | Images pour 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 |
Exemple d’API text-to-image
- Endpoint
- Identifiants de modèle
- Champs obligatoires
- Résultat
- Limites du compte gratuit
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")) # envoyez cette URL à votre app ou à votre bot Telegram
De l’inscription à votre première image
-
Créez un compte gratuit
-
Créez une clé API
-
Envoyez un prompt
FAQ API image gratuite
Générez votre première image avec 5 $ de crédits offerts
Sans carte bancaire, sans abonnement.