promptstringwajib
The text prompt for image-to-image.
tencent/hunyuan-image/3.0Hunyuan Image 3.0 is Tencent's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.
Coba model ini
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"prompt": "200mm telephoto through crowd gaps; subject laughing, candid; creamy background compression, color pop from a single bold garment, catchlight in eyes."
}Preferensi manusia
Peringkat Elo dari voting buta berdampingan, dibandingkan dengan model gambar dan video lainnya.
Peringkat bersumber dari Artificial Analysis Arena
Arena teks-ke-gambar: pengguna memilih yang lebih baik dari dua gambar yang dihasilkan dari prompt yang sama, tanpa melihat nama model.
Hunyuan Image 3.0, Tencent's multimodal image model, renders detailed images with strong world knowledge and bilingual text.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | β | Text instruction. |
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 | β | Output shape. |
output_format | jpeg / png | png | Output file format. |
$0.10 per image.
| Request | Price |
|---|---|
| One image | $0.10 |
Failed runs are not charged.
Related: tencent/hunyuan-image/3.0/edit.
Mulai membangun
Kirim model ini melalui SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "tencent/hunyuan-image/3.0",
"prompt": "200mm telephoto through crowd gaps; subject laughing, candid; creamy background compression, color pop from a single bold garment, catchlight in eyes.",
"output_format": "png"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
promptstringwajibThe text prompt for image-to-image.
aspect_ratiostringThe aspect ratio of the generated image.
Nilai yang mungkin: "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
output_formatstringThe format of the generated image.
Default: "png"
Nilai yang mungkin: "jpeg", "png"
{
"model": "tencent/hunyuan-image/3.0",
"prompt": "200mm telephoto through crowd gaps; subject laughing, candid; creamy background compression, color pop from a single bold garment, catchlight in eyes.",
"output_format": "png"
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"source": "Tencent Hunyuan schema mirror",
"source_url": "https://cloud.tencent.com/document/product/1616",
"url": "https://static.sandbase.ai/examples/1cb19ea9-0457-4b45-8976-588a55c7416d/output/9f5dae06-e6c8-48aa-85b8-27af26d6c804.png"
}
]