grok-imagine-image API gambar AI

xAI menyediakan grok-imagine-image untuk pembuatan gambar. Flatkey merutekannya melalui /v1/images/generations. $0.016 per image.

Teks menjadi gambarGambar terpandu referensi
Penyedia
xAI
Harga referensi
$0.020 / gambar
Harga Flatkey
$0.016 / gambar-20%
Penyiapan generator · Playground (edit sebelum mendaftar)

Masukan

InstruksiLihat selengkapnya992 / 10000
Prompt cepat
Gambar referensi
Mulai membuat

Keluaran

Pratinjau
Pratinjau gambar

Dibuat dengan Image 2

Ringkasan permintaan

Titik akhir API
POST /v1/images/generations
ID model
grok-imagine-image
Rasio aspek
16:9
Resolusi
1k
Kualitas
medium
Format output
url
Keluaran
1

Hanya pratinjau. Masuk untuk mengirim permintaan ini ke Flatkey.

Pratinjau permintaan
{
  "model": "grok-imagine-image",
  "prompt": "Scene: A vintage black camera with a large textured lens rests on a black pedestal against a deep green-black background. Warm highlights describe the metal dials, leather grip, lens rings, and small empty space to the left. Preserve the camera body, lens perspective, pedestal edge, and controlled studio lighting. No readable branding, extra products, hands, or watermark.\n\nComposition and rendering: Deliver one 16:9 commercial product still. Keep the complete product silhouette inside generous crop-safe margins. Resolve edges, seams and material transitions precisely; shape highlights to describe volume without clipping bright surfaces or crushing dark details. Align reflections with the object and light source. Retain the stated camera angle and existing negative space; add no decorative props.\n\nAvoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.",
  "n": 1,
  "resolution": "1k",
  "quality": "medium",
  "aspect_ratio": "16:9",
  "response_format": "url"
}

Performa API

grok-imagine-image Keandalan dan ketersediaan API

Telemetri permintaan Flatkey untuk grok-imagine-image akan tampil di sini jika trafik produksi sudah mencukupi.

Rata-rata uptime penyedia
—
30 hari terakhir
Latensi
—
30 hari terakhir
Permintaan
206
Jendela 30 hari
Tren inferensi berhasil

Aktivitas API

grok-imagine-image Penggunaan dan aktivitas permintaan API

Pantau volume permintaan dan aktivitas inferensi berhasil untuk grok-imagine-image pada periode pelaporan terbaru.

Permintaan
206
Jendela 30 hari
Latensi
—
30 hari terakhir
Waktu aktif
—
30 hari terakhir
Tren inferensi berhasilAktivitas

grok-imagine-image harga

grok-imagine-image Harga dan penagihan API

Harga di bawah dihitung dari data harga Flatkey untuk model ini dan grup terlihat yang saat ini dikembalikan oleh API harga kami.

Harga Flatkey

Harga / gambar

Model dari katalog langsung
$0.016 / gambar
Harga / gambar
$0.016 / gambar$0.020 / gambar
Coba prompt
Saldo bersama

Tambah kredit

Tambah kredit

Gunakan saldo dan kunci API Flatkey yang sama untuk model gambar, video, audio, dan teks.

Katalog model
Jenis model
Teks menjadi gambar
API
/v1/images/generations
Dasar penagihan
gambar
Keluaran
1–10

grok-imagine-image generator gambar AI dan API: kemampuan utama

Rute grok-imagine-image dari xAI mendukung teks · gambar. Kategori katalog: Marketing.

grok-imagine-image untuk pembuatan gambar

Ubah brief tertulis menjadi output pembuatan gambar melalui /v1/images/generations.

Alur kerja referensi grok-imagine-image

Gunakan referensi yang ada saat rute grok-imagine-image menerima media atau konteks referensi.

Varian siap kanal grok-imagine-image

Adaptasikan satu konsep menjadi varian yang dibutuhkan toko, kampanye, atau pipeline konten.

Serah-terima produksi grok-imagine-image

Pindahkan hasil yang disetujui dari eksplorasi prompt ke alur generasi Flatkey yang dapat diulang.

Bandingkan

grok-imagine-image Perbandingan API: kemampuan dan akses

Bandingkan fakta katalog grok-imagine-image dengan acuan generasi sebelumnya sebelum mengubah integrasi.

KemampuanGenerasi sebelumnyagrok-imagine-image
PenyediaBelum diverifikasi dalam snapshot katalog inixAI
ModalitasBelum diverifikasi dalam snapshot katalog initeks · gambar
KonteksBelum diverifikasi dalam snapshot katalog iniKatalog tidak mencantumkan jendela konteks
Titik akhir APIBelum diverifikasi dalam snapshot katalog ini/v1/images/generations
PenagihanBelum diverifikasi dalam snapshot katalog ini$0.016 per image

Pilih permintaan yang tepat sebelum integrasi

Periksa alur yang didukung, biaya saat ini, dan kontrak parameter Flatkey.

Estimasi biaya langsung

Dihitung dari konfigurasi saat ini dan tarif katalog jika harga unit tetap tersedia.

Konfigurasi saat ini
medium · 1×
Tarif langsung
$0.016 / gambar
Estimasi permintaan
$0.016

Biaya akhir mengikuti permintaan dan grup akun; harga token atau bertingkat tidak dapat dijadikan satu angka tetap.

Alur dan Model ID

Gunakan hanya alur yang tersedia. Flatkey mempertahankan satu ID publik dan body memilih jenis input.

Tersedia

Teks ke gambar

Buat gambar baru dari teks.

ID model
grok-imagine-image
Endpoint
/v1/images/generations
Tersedia

Gambar berpanduan referensi

Gunakan referensi untuk edit atau variasi.

ID model
grok-imagine-image
Endpoint
/v1/images/generations

Kompatibilitas parameter

Nilai berasal dari konfigurasi yang sama dengan Playground.

nJumlah gambar
Diterima

1–10

Default: 1
resolutionResolusi
Diterima

1k · 2k

Default: 1k
qualityKualitas
Diterima

low · medium

Default: medium
aspect_ratioRasio aspek
Diterima

auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 2:1 · 1:2 · 19.5:9 · 9:19.5 · 20:9 · 9:20

Default: auto
response_formatFormat output
Diterima

url · b64_json

Default: url
imageBatas referensi
Diterima

3 file

Endpoint: /v1/images/generations

Dari tes pertama ke produksi

Gunakan kontrak yang sama di Playground dan API serta tangani validasi, saldo, status, dan hasil.

Siklus permintaan

  1. 1

    Validasi model, prompt, referensi, dan output.

  2. 2

    Kirim permintaan gambar.

  3. 3

    Baca hasil atau tugas asinkron.

  4. 4

    Simpan file dan metadata.

Pemeriksaan produksi

Validasi parameter

Blokir nilai dan referensi yang tidak didukung.

Autentikasi dan saldo

Tangani kunci, saldo, limit, dan harga grup terpisah.

Input ditolak

Tunjukkan prompt atau aset yang harus diganti.

Gagal atau timeout

Simpan task ID, batasi percobaan, dan jangan anggap timeout berhasil.

Pustaka prompt

Contoh prompt grok-imagine-image untuk pembuatan gambar

Mulai dengan prompt grok-imagine-image untuk pembuatan gambar, lalu sesuaikan kolom permintaan yang terlihat di playground.

Interaksi UI game dan pergantian perlengkapan
Interaksi UI game dan pergantian perlengkapan

Dibuat dengan Image 2

Scene: A 16:9 cyberpunk game equipment screen shows a masked figure crouched on a neon rooftop above a dense night city. A black-and-lime HUD frames the character, with weapon and tool slots on the right including a glowing pickaxe. Hold the crouch, rooftop line, neon rim light, and selected slot fixed for an equipment-switch frame. No readable words, logos, invented stats, or watermark. Composition and rendering: Deliver one 16:9 game-interface keyframe. Separate the character, held equipment and HUD into clear depth layers; keep slot spacing and icon scale consistent, with the selected item visually dominant. Preserve the scene-specific game art style. Let material edges catch the existing light without letting interface glow obscure the silhouette. Keep all equipment fully inside the frame. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Buat serupa
Simulasi siaran TV pertandingan olahraga
Simulasi siaran TV pertandingan olahraga

Scene: A sunset beach-volleyball broadcast frame captures a player spiking over the net as sand sprays from the jump. Show the opposing court, hazy beach crowd, warm sky, and a simple teal-and-white lower-third made from abstract blocks. Keep the net, player position, ball path, and camera angle coherent; no real athletes, teams, logos, or watermark. Composition and rendering: Deliver one 16:9 broadcast still at the decisive instant. Use coherent perspective for the playing surface and equipment, readable separation between competitors, and a softer crowd behind the action. Keep the principal subject sharp, with directional blur limited to fast extremities and spray. Preserve the specified broadcast angle and reserve overlay areas clear of the action. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Buat serupa
TVC merek dan tampilan e-commerce tanpa jeda
TVC merek dan tampilan e-commerce tanpa jeda

Dibuat dengan Image 2

Scene: A vintage black camera with a large textured lens rests on a black pedestal against a deep green-black background. Warm highlights describe the metal dials, leather grip, lens rings, and small empty space to the left. Preserve the camera body, lens perspective, pedestal edge, and controlled studio lighting. No readable branding, extra products, hands, or watermark. Composition and rendering: Deliver one 16:9 commercial product still. Keep the complete product silhouette inside generous crop-safe margins. Resolve edges, seams and material transitions precisely; shape highlights to describe volume without clipping bright surfaces or crushing dark details. Align reflections with the object and light source. Retain the stated camera angle and existing negative space; add no decorative props. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Buat serupa
Karakter sinematik dan pengarahan storyboard
Karakter sinematik dan pengarahan storyboard

Scene: In a warmly lit theater dressing room, a curly-haired actor in a cream shirt and dark vest looks into a large aged mirror beside costumes and glowing round bulbs. The reflected face and three-quarter profile form a character continuity frame. Keep the mirror geometry, wardrobe, eye line, and amber lighting consistent. No readable signage, logos, or watermark. Composition and rendering: Deliver one 16:9 storyboard keyframe, not a collage or an action sequence. Separate foreground, character plane and background through the existing light and atmospheric depth. Keep the stated pose and eyelines readable, and retain environmental landmarks for continuity. Match the described photographic, illustrated or puppet medium; give fabric and surfaces texture appropriate to that medium. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Buat serupa
Sketsa komedi dan penceritaan fisik
Sketsa komedi dan penceritaan fisik

Dibuat dengan Image 2

Scene: On a beach at sunset, a man in a light shirt pulls a yellow-striped picnic cloth as a sandwich and two white plates lift into the air above a wooden table. Freeze the harmless physical gag with visible cloth tension, believable object paths, warm sea light, and clear spacing. No injury, readable words, logos, or watermark. Composition and rendering: Deliver one 16:9 physical-comedy still at the described instant. Make the cause of the gag readable through body balance, grip and object spacing. Separate the reaction from the airborne props; retain believable gravity and contact points. Keep the face and important props sharp, with only restrained directional blur on fast edges. Preserve the stated lighting and room or stage layout. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Buat serupa
Pemulihan foto lama dan penghidupan sejarah
Pemulihan foto lama dan penghidupan sejarah

Dibuat dengan Image 2

Scene: A warm faded archival photograph shows a family having a picnic in a grassy field: one adult pours from a thermos, another spreads food, and a child sits beside a bicycle. Preserve the period clothing, enamel cups, bicycle, hills, film grain, and soft light-leak edge. No modern branding, readable text, logos, or watermark. Composition and restoration: Deliver one 16:9 archival-style still. Preserve the original framing, period-specific construction and restrained tonal range; retain monochrome, sepia or faded color as described. Recover modest detail in faces, clothing and architecture without synthetic sharpening. Keep fine grain and authentic aging consistent across the frame; repair damage without replacing historical features. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Buat serupa

Mengapa API grok-imagine-image

Mengapa menggunakan grok-imagine-image melalui Flatkey?

Gunakan satu gateway untuk grok-imagine-image, kontrol akun, dan seluruh katalog model lainnya.

grok-imagine-image dalam satu API

Pertahankan model ID dan endpoint grok-imagine-image secara eksplisit dengan kunci Flatkey yang sama untuk workload lain.

Harga katalog live

Lihat dimensi penagihan grok-imagine-image sebelum mengirim permintaan, lalu konfirmasi estimasi akhir di akun.

Serah-terima model praktis

Uji prompt grok-imagine-image di playground publik dan bawa pengaturan yang sama ke integrasi terautentikasi.

Kontrol penggunaan dan rute

Pusatkan kunci, kuota, dan rute grok-imagine-image tanpa mengubah alur kerja aplikasi terhadap penyedia.

grok-imagine-image API

grok-imagine-image Panduan integrasi API

Gunakan model ID di atas dengan /v1/images/generations; pertahankan kolom permintaan dan unit penagihan yang terdokumentasi untuk rute ini.

Kirim permintaan terautentikasi ke /v1/images/generations dengan model disetel ke grok-imagine-image.
Gunakan grok-imagine-image dalam konfigurasi SDK agar rute dan laporan penggunaan menunjuk entri katalog yang benar.
Tinjau $0.016 per image dan batas akun sebelum meningkatkan permintaan grok-imagine-image.
Mulai di playground, lalu gunakan kembali bentuk permintaan dengan kunci API Flatkey di server atau agent.
curl https://router.flatkey.ai/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-***" \
  -d '{"model":"grok-imagine-image","prompt":"Creative direction: Create a 16:9 fictional open-world game livestream screenshot on a bright palm-lined coastal street. Show a pink sports car in the roadway, a third-person player avatar, a streamer facecam in the lower-left corner, a vertical chat column on the right, and a clear HUD with minimap and status panels. Use a lively neon-sunset palette, crisp game-rendered depth, and distinct overlay zones for the broadcast interface.\n\nComposition, material and finish: Keep the game world and broadcast overlays on separate visual layers. Preserve the street perspective and vehicle scale; reserve the lower-left facecam and right chat column without covering the player. Use coherent simplified HUD elements and fictional interface copy, with consistent padding and contrast. Avoid real platform logos, duplicated avatars, warped car wheels and watermarks.","n":1,"resolution":"1k","quality":"medium","aspect_ratio":"auto","response_format":"url"}'
Dokumentasi

Pertanyaan umum

grok-imagine-image API
pertanyaan harga, fitur, dan penggunaan

Jawaban tentang harga, kemampuan, endpoint, dan batas katalog grok-imagine-image.

Untuk apa grok-imagine-image digunakan?
grok-imagine-image tercantum dari xAI untuk pembuatan gambar; modalitas di katalog adalah: teks · gambar.
Bagaimana harga grok-imagine-image?
Gunakan bagian harga di atas untuk melihat harga Flatkey terbaru dari API harga kami.
Endpoint API mana yang memanggil grok-imagine-image?
Flatkey merutekan model ini melalui /v1/images/generations. Atur kolom model ke grok-imagine-image dan gunakan kolom yang didukung.
Apa batas konteks atau input grok-imagine-image?
grok-imagine-image tercantum dengan Katalog tidak mencantumkan jendela konteks. Batas lain bergantung pada rute dan akun; verifikasi sebelum produksi.