Text-to-Image
API AI gratis untuk generate gambar
Tanpa kartu kredit · Kredit gratis berlaku 90 hari · Setelah itu isi saldo dan bayar sesuai pemakaian, tanpa langganan
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
Model gambar mana yang cocok
| Model | Cocok untuk | Harga per gambar | Ukuran |
|---|---|---|---|
| FLUX.2 Klein 4B | Foto produk, juga edit gambar dengan maksimal 3 gambar referensi | $0,0037 di 1024² | 256–1536 px |
| Z-Image-Turbo | Adegan fotorealistis, teks pendek di papan nama, negative prompt | $0,0063 di 768² | 128–2048 px |
| Z-Anime | Gaya anime dan ilustrasi | $0,0063 di 768² | 128–2048 px |
| FLUX.1 Schnell | Draf dan bot, paling murah di ukuran yang sama | $0,0019 di 768² | 256–2048 px |
Harga API gambar AI
| Model dan ukuran | Per gambar | Gambar untuk $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 |
Contoh API text-to-image
- Endpoint
- Model ID
- Field wajib
- Hasil
- Batas akun gratis
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")) # kirim URL ini ke bot Telegram atau WhatsApp Anda
Dari daftar sampai gambar pertama
-
Buat akun gratis
-
Buat API key
-
Kirim prompt
FAQ API gambar AI gratis
Buat gambar pertama Anda dengan kredit gratis $5
Tanpa kartu kredit, tanpa langganan.