Semua model

Imagen 4

google/imagen-4
Google Pembuatan GambarKualitas TinggiFotorealistis

Model pembuat gambar terbaru Google yang menghasilkan gambar berkualitas tinggi dan fotorealistis dari prompt teks, dengan dukungan berbagai rasio aspek.

Mulai cepat

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{
    "model": "google/imagen-4",
    "prompt": "<your prompt>"
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
  -J '{"model": "google/imagen-4", "prompt": "<your prompt>"}'

Contoh

contoh
contoh
contoh
contoh
contoh

Parameter

Input
prompt string wajib

Prompt teks yang menjelaskan gambar yang akan dibuat

aspect_ratio string opsional

Rasio aspek gambar yang dibuat

person_generation string opsional

Izinkan model membuat gambar orang. dont_allow: blokir orang, allow_adult: hanya orang dewasa, allow_all: dewasa dan anak-anak

Keluaran
image: URL gambar yang dibuat