
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
Click to upload or drag and drop
Supported formats: JPEG, PNG, WEBP Maximum file size: 10MB; Maximum files: 8
Input reference images (1-8 images).
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
Click to upload or drag and drop
Supported formats: JPEG, PNG, WEBP Maximum file size: 10MB; Maximum files: 8
Input reference images (1-8 images).
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
README
Complete guide to using FLUX.2
Black Forest Labs Flux 2 Pro & Flex API di Kie.ai

curl https://api.kie.ai/api/v1/jobs/createTask \-H "Authorization: Bearer $KIE_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "flux-2/pro-text-to-image","input": {"prompt": "A glass teapot on a sunlit wooden table, photorealistic","aspect_ratio": "1:1","resolution": "1K"}}'
FLUX.1 ke FLUX.2 — Apa yang Baru di Kie AI Flux 2 API


Fidelitas Lebih Tinggi pada Detail Gambar Flux 2.0 API

Peningkatan Perenderan Teks dengan Flux 2 AI API

Kepatuhan Prompt Lebih Kuat di Flux.2 API

Pengetahuan Dunia Nyata pada Generator Gambar Flux 2

Resolusi 1K & 2K (Hingga ~4MP) dan Rasio Aspek Fleksibel
API Flux 2 Pro dan Flux 2 Flex di Kie AI
FLUX.2 [Pro] API untuk Hasil Andal yang Siap Produksi
FLUX.2 [Flex] API untuk Pengembang yang Menginginkan Kontrol Lebih
FLUX.2 [Dev] — Bobot Model Penuh yang Dapat Anda Jalankan Sendiri
Bandingkan Model Flux 2 Pro, Flux 2 Flex, dan Flux 2 Dev
| Feature | Flux 2 Pro | Flux 2 Flex | Flux 2 Dev |
|---|---|---|---|
| Terbaik untuk | Alur kerja produksi | Kualitas maksimal & kontrol mendetail | Pengembangan lokal & kustomisasi penuh |
| Speed | Generasi cepat | Latensi lebih tinggi (berfokus pada kualitas) | Bergantung pada perangkat keras Anda |
| Multi-reference | Hingga 8 di Kie AI | Hingga 8 di Kie AI | Rekomendasi maksimal 6 referensi |
| Controls | prompt, aspect_ratio, resolution (ditambah input_urls) | Skema Kie.ai yang sama (steps/guidance tidak diekspos di Kie.ai) | Kontrol pipeline self-hosted penuh (bobot terbuka 32B) |
| Text-to-image | Supported | Supported | Didukung (bobot terbuka) |
| Pengeditan gambar | Supported | Supported | Didukung (bobot terbuka) |
| ID Model & Harga Kie.ai | flux-2/pro-*: 5 kredit ($0,025) pada 1K, 7 kredit ($0,035) pada 2K | flux-2/flex-*: 14 kredit ($0,07) pada 1K, 24 kredit ($0,12) pada 2K | Tidak di-host di halaman ini (bobot terbuka di Hugging Face) |
Cara Menggunakan Flux 2 API di Kie.ai
- 1
Langkah 1 — Uji Flux2 API di Kie AI Playground
Mulailah dengan menjelajahi fitur flux2 API langsung di dalam Kie AI Playground. Unggah gambar, coba pengeditan multi-referensi, dan pratinjau hasil generator gambar Flux 2 secara real-time. Ini memberi Anda gambaran yang jelas tentang kontrol pencahayaan, konsistensi, dan perenderan teks. - 2
Langkah 2 — Buat Akun dan Dapatkan API Key Flux 2 Anda
Masuk ke dasbor Kie AI Anda dan buat API key Flux 2 yang unik. Anda akan menggunakan kunci ini untuk semua permintaan, termasuk alur kerja teks ke gambar, pengeditan, dan multi-referensi pada Flux 2.0 API. Jaga keamanan kunci Anda untuk menghindari penggunaan tanpa izin. - 3
Langkah 3 — Panggil Endpoint Flux.2 API di Aplikasi Anda
Kirim permintaan POST ke /api/v1/jobs/createTask dengan Authorization: Bearer YOUR_API_KEY, atur model ke flux-2/pro-text-to-image, flux-2/pro-image-to-image, flux-2/flex-text-to-image, atau flux-2/flex-image-to-image, serta sertakan parameter wajib prompt (3–5.000 karakter), aspect_ratio, dan resolution (1K atau 2K), ditambah 1 hingga 8 input_urls untuk gambar ke gambar, lalu ambil hasilnya melalui callBackUrl atau Get Task Details.
Mengapa Memilih Kie AI untuk Integrasi API Flux 2
- 1
Pro dan Flex untuk Teks ke Gambar dan Pengeditan Gambar
flux-2/pro-text-to-image, flux-2/pro-image-to-image, flux-2/flex-text-to-image, dan flux-2/flex-image-to-image berjalan di POST /api/v1/jobs/createTask dan menggunakan parameter yang sama, dengan output 1K atau 2K; daftar parameter lengkapnya tersedia di Playground dan dokumentasi API di atas. Harga untuk setiap model dan resolusi ditampilkan pada kartu harga di atas. - 2
Rasio Aspek dan Resolusi Bersifat Wajib
Rasio aspek dan resolusi wajib disertakan pada setiap permintaan. Rasio aspek otomatis menyesuaikan dengan gambar input pertama, sehingga hanya berfungsi untuk gambar ke gambar. Format keluaran tidak tetap: hasilnya dapat berupa PNG atau JPEG. - 3
Hingga 8 Gambar Referensi dan 80 Kredit Gratis
Model gambar ke gambar menerima 1 hingga 8 gambar referensi, dan kartu harga di atas mencantumkannya tanpa biaya tambahan. File yang belum di-host dapat diunggah terlebih dahulu menggunakan Kie.ai File Upload API (Base64, aliran file, atau URL jarak jauh). Pengguna baru Kie.ai mendapatkan 80 kredit gratis untuk pengujian.
Kasus Penggunaan Nyata yang Didukung oleh Flux 2 API
Fotografi Produk dan Visual E-Commerce dengan Generator Gambar Flux 2
Materi Kreatif Pemasaran dan Aset Kampanye Menggunakan Flux 2 AI API
Mockup UI, Infografis, dan Desain Tata Letak melalui Flux.2 API
Adegan Karakter Konsisten dan Papan Cerita dengan Flux 2 Pro
Flux 2 vs Nanobanana Pro — Model mana yang cocok untuk alur kerja Anda?

Kapan Flux 2 Menjadi Pilihan Lebih Baik
