API GPT Image 2
API GambarHOTGPT Image 2 API is built for production image generation workflows that need prompt-driven creation, reference image editing, and predictable API payloads. Use it to create campaign visuals, product shots, social creatives, and design mockups without leaving the SdanceAI generation flow.
Integrasi saat ini menampilkan varian Teks ke Gambar dan Gambar ke Gambar dengan tingkat harga 1K, 2K, dan 4K, serta rasio aspek umum untuk output persegi, vertikal, horizontal, dan potret.
Biaya terendah mulai dari $0.005/s
1K: 6 kredit - Teks ke Gambar - Diperbaiki per generasi
2K: 10 kredit - Teks ke Gambar - Diperbaiki per generasi
4K: 16 kredit - Teks ke Gambar - Diperbaiki per generasi
1024x768: 1 kredit/gambar - Teks ke Gambar - Gambar × 1
1024x768: 2 kredit/gambar - Teks ke Gambar - Gambar × 2
1024x768: 8 kredit/gambar - Teks ke Gambar - Gambar × 8
1024x768: 13 kredit/gambar - Teks ke Gambar - Gambar × 13
1024x768: 29 kredit/gambar - Teks ke Gambar - Gambar × 29
768x1024: 1 kredit/gambar - Teks ke Gambar - Gambar × 1
768x1024: 2 kredit/gambar - Teks ke Gambar - Gambar × 2
768x1024: 8 kredit/gambar - Teks ke Gambar - Gambar × 8
768x1024: 13 kredit/gambar - Teks ke Gambar - Gambar × 13
768x1024: 29 kredit/gambar - Teks ke Gambar - Gambar × 29
1024x1024: 2 kredit/gambar - Teks ke Gambar - Gambar × 2
1024x1024: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
1024x1024: 11 kredit/gambar - Teks ke Gambar - Gambar × 11
1024x1024: 19 kredit/gambar - Teks ke Gambar - Gambar × 19
1024x1024: 43 kredit/gambar - Teks ke Gambar - Gambar × 43
1024x1536: 1 kredit/gambar - Teks ke Gambar - Gambar × 1
1024x1536: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
1024x1536: 9 kredit/gambar - Teks ke Gambar - Gambar × 9
1024x1536: 15 kredit/gambar - Teks ke Gambar - Gambar × 15
1024x1536: 33 kredit/gambar - Teks ke Gambar - Gambar × 33
1536x1024: 1 kredit/gambar - Teks ke Gambar - Gambar × 1
1536x1024: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
1536x1024: 9 kredit/gambar - Teks ke Gambar - Gambar × 9
1536x1024: 15 kredit/gambar - Teks ke Gambar - Gambar × 15
1536x1024: 33 kredit/gambar - Teks ke Gambar - Gambar × 33
1920x1080: 1 kredit/gambar - Teks ke Gambar - Gambar × 1
1920x1080: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
1920x1080: 8 kredit/gambar - Teks ke Gambar - Gambar × 8
1920x1080: 15 kredit/gambar - Teks ke Gambar - Gambar × 15
1920x1080: 32 kredit/gambar - Teks ke Gambar - Gambar × 32
1080x1920: 1 kredit/gambar - Teks ke Gambar - Gambar × 1
1080x1920: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
1080x1920: 8 kredit/gambar - Teks ke Gambar - Gambar × 8
1080x1920: 15 kredit/gambar - Teks ke Gambar - Gambar × 15
1080x1920: 32 kredit/gambar - Teks ke Gambar - Gambar × 32
2560x1440: 2 kredit/gambar - Teks ke Gambar - Gambar × 2
2560x1440: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
2560x1440: 12 kredit/gambar - Teks ke Gambar - Gambar × 12
2560x1440: 20 kredit/gambar - Teks ke Gambar - Gambar × 20
2560x1440: 45 kredit/gambar - Teks ke Gambar - Gambar × 45
1440x2560: 2 kredit/gambar - Teks ke Gambar - Gambar × 2
1440x2560: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
1440x2560: 12 kredit/gambar - Teks ke Gambar - Gambar × 12
1440x2560: 20 kredit/gambar - Teks ke Gambar - Gambar × 20
1440x2560: 45 kredit/gambar - Teks ke Gambar - Gambar × 45
3840x2160: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
3840x2160: 6 kredit/gambar - Teks ke Gambar - Gambar × 6
3840x2160: 21 kredit/gambar - Teks ke Gambar - Gambar × 21
3840x2160: 36 kredit/gambar - Teks ke Gambar - Gambar × 36
3840x2160: 81 kredit/gambar - Teks ke Gambar - Gambar × 81
2160x3840: 3 kredit/gambar - Teks ke Gambar - Gambar × 3
2160x3840: 6 kredit/gambar - Teks ke Gambar - Gambar × 6
2160x3840: 21 kredit/gambar - Teks ke Gambar - Gambar × 21
2160x3840: 36 kredit/gambar - Teks ke Gambar - Gambar × 36
2160x3840: 81 kredit/gambar - Teks ke Gambar - Gambar × 81
Perkiraan USD menggunakan $0,005/kredit dengan paket tahunan terbaik. Penagihan akhir mengikuti resolusi dan varian model yang dipilih.
Bidang permintaan inti
Use a compact payload for prompt, source images, aspect ratio, resolution, callback, and safety settings.
{
"model": "gpt-image-2-5-flare-text-to-image",
"input": {
"prompt": "A cinematic night city poster with neon reflections on a rainy street.",
"aspect_ratio": "3:2",
"resolution": "1K",
"background": "transparent"
}
}Gunakan GPT Image 2.5 Flare Text to Image untuk generasi
Area bermain, permintaan sampel, permintaan bidang, dan harga di halaman ini mengikuti jenis model yang dipilih.
Lihat dokumen API secara detailOpen the full API documentation for endpoints, authentication, task polling, and payload details. /models/gpt-image-2.md
promptstringText prompt. Required, maximum 20,000 characters.aspect_ratioenumThe aspect ratio of the generated image is set to auto by default. The 27:16, 16:27, 9:8 and 8:9 aspect ratios support 1K only. 2K and 4K are available for other aspect ratios. (auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:9)resolutionenumImage resolution (1K, 2K, 4K)backgroundenumImage background (transparent, opaque, auto)Apa yang ditambahkan GPT Image 2 API ke alur kerja gambar Anda
Halaman ini mengikuti struktur API-first yang sama seperti referensi: uji model, pahami bidang-bidangnya, lalu lanjutkan ke integrasi.
Pembuatan teks ke gambar
Ubah prompt terstruktur menjadi visual siap produksi untuk poster, iklan, thumbnail, seni konsep, dan adegan produk.
Pengeditan gambar referensi
Gunakan input gambar untuk mempertahankan konteks subjek sambil mengubah gaya, latar belakang, tata letak, pencahayaan, atau presentasi produk.
Tingkat resolusi
Pilih tingkat keluaran 1K, 2K, atau 4K untuk menyeimbangkan biaya iterasi, kualitas pratinjau, dan ketajaman aset akhir.
API-ready payloads
Bekerja dengan ID model, URL callback, teks prompt, URL gambar input, rasio aspek, dan bidang resolusi dalam satu permintaan yang dapat diprediksi.
Dari uji prompt ke permintaan API gambar
Jalur langsung bagi tim yang ingin memvalidasi kualitas gambar sebelum menghasilkan pengkabelan ke dalam aplikasi atau alur konten.
1. Pilih mode
Pilih Teks ke Gambar untuk visual baru atau Gambar ke Gambar ketika Anda ingin suntingan dengan panduan referensi.
2. Kirim generasi
Panggil API dengan kunci akun Anda, ID model, prompt, URL gambar input opsional, rasio aspek, dan resolusi.
3. Survei dan gunakan
Lacak tugas hingga berhasil, kemudian gunakan hasil gambar yang dihasilkan di aplikasi, kampanye, atau perpustakaan aset Anda.
Apa yang dapat Anda buat dengan GPT Image 2 API
Gunakan API saat produk Anda membutuhkan pembuatan gambar berkualitas tinggi yang dapat diulang, bukan ekspor manual satu kali.
Generasi GPT Image 2 yang sukses dari komunitas
Jelajahi output GPT Image 2 publik yang berhasil diselesaikan, lalu buka kasus apa pun untuk memeriksa prompt, pengaturan, dan hasilnya.

GPT Image-2 - Text to Image
舊官員至今仍然不願悔改。持續讓魔鬼撒旦駕馭他們的身體:〔魔成肉身〕。 ▲上述文字意境的繪圖風格: 社論漫畫插圖,黑色墨水勾勒輪廓,柔和的水彩渲染,交叉排線陰影,邊緣呈現暈染效果; 採用深色墨水陰影點綴。 使用MBM素描紙,高品質的進口素描紙。纖維略長且質地結實,紙面有明顯且獨特的橫條紋理,耐摩擦、抓粉力極強,

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, suns and one complete water-globe-planet is prominent, no land on the planet 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants. They are similar to man, not ugly. 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated. The shows the son of God making clothing for Adam and Eve while Adam and Eve are sacrificing a lamb on an alter.

GPT Image-2 - Text to Image
I stationary clipart graphics/icons to symbolically represent one stage of the universes history. More like iconic clipart. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; The beginning of created things. The foundation of the universe, suns and one complete water-globe-planet is prominent, no land on the planet

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, suns and the water-globe-planet is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants. They are similar to man, not ugly. 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated. The shows the son of God making clothing for Adam and Eve while Adam and Eve are sacrificing a lamb on an alter.

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, plants suns, and the creation only a water planet globe is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated.

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, plants suns, and the creation also of the water-globe called earth is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated.
Dibuat untuk alur kerja API gambar nyata
Eksekusi yang dijaga akun
Pengguna masuk, mengirim pekerjaan, dan menggunakan kredit melalui alur generasi SdanceAI yang ada.
Penanganan gambar input
Image to Image menerima URL gambar sumber, sehingga tim dapat menyimpan referensi di saluran aset mereka sendiri sambil menghasilkan variasi baru.
Resolusi yang menyadari biaya
Mulailah dengan 1K untuk iterasi cepat, lalu beralih ke 2K atau 4K ketika prompt dan arah visual sudah siap.
Pertanyaan API GPT Image 2
Untuk apa API GPT Image 2 paling cocok?
Ini terbaik untuk pembuatan gambar berbasis prompt dan pengeditan gambar berbasis referensi, termasuk visual produk, iklan, kreatif sosial, poster, dan mockup desain.
Apa perbedaan antara Teks ke Gambar dan Gambar ke Gambar?
Teks ke Gambar dimulai hanya dari sebuah prompt. Gambar ke Gambar menggunakan satu atau lebih URL gambar sumber ditambah dengan prompt, membuatnya lebih baik untuk penyuntingan, variasi, dan alur kerja yang mempertahankan referensi.
Resolusi apa saja yang tersedia?
Konfigurasi API saat ini mencakup tingkat harga 1K, 2K, dan 4K. Pilih resolusi lebih rendah untuk iterasi dan resolusi lebih tinggi untuk aset akhir.
Rasio aspek mana yang bisa saya gunakan?
Rasio aspek yang tersedia meliputi otomatis, 1:1, 9:16, 16:9, 4:3, dan 3:4. Sesuaikan rasio dengan saluran target Anda sebelum menghasilkan aset akhir.
Berapa banyak gambar input yang bisa digunakan oleh Image to Image?
The configured image-to-image payload supports input image URL arrays, with up to 16 source images.
Di mana saya bisa mengujinya sebelum mengintegrasikan?
Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.
Apakah saya bisa menggunakan GPT Image 2 API untuk alur kerja komersial?
Halaman ini dikonfigurasi untuk alur kerja gambar produksi. Untuk penggunaan komersial, tinjau rencana akun Anda, saldo kredit, ketersediaan model, dan persyaratan kebijakan konten yang berlaku.
Apakah API mendukung callback?
Ya. Skema permintaan menyertakan URL callback opsional sehingga layanan Anda dapat menerima notifikasi penyelesaian tugas.
Bagaimana saya harus mengelola biaya?
Gunakan 1K untuk eksplorasi prompt dan draf massal, lalu hasilkan kembali pemenang yang dipilih pada 2K atau 4K ketika Anda membutuhkan output final yang lebih tajam.
Bisakah saya mengedit foto produk yang sudah ada?
Ya. Gunakan Image to Image dengan URL gambar sumber dan prompt yang menjelaskan perubahan latar belakang, pencahayaan, tata letak, atau gaya yang Anda butuhkan secara tepat.
Ubah GPT Image 2 menjadi alur kerja gambar Anda
Buka generator, uji prompt atau gambar referensi, lalu gunakan dokumentasi API saat Anda siap menghubungkan GPT Image 2 ke produksi.