seedinteger
Random seed for reproducibility.
Minimum: 0
Maksimum: 2147483647
meigen/infinitetalk/image-to-videoInfiniteTalk turns a portrait image and speech audio into a long-form talking video with natural lip sync, head and body motion.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Apa yang ingin Anda lakukan selanjutnya?
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"audio": "https://static.sandbase.ai/examples/d33fa92a-e37d-4e1b-ae63-7dc37efcf42f/input/eb358b1f-cd6a-45d4-b926-27a4bdc68388.mp3",
"image": "https://static.sandbase.ai/examples/d33fa92a-e37d-4e1b-ae63-7dc37efcf42f/input/cd175c0b-f141-4ec1-8f8b-9fcf5c063865.png",
"num_frames": 41,
"prompt": "A woman with colorful hair talking on a podcast.",
"resolution": "480p"
}InfiniteTalk turns a portrait and speech audio into a long-form talking video with natural lip sync and head and body motion.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Scene and gesture direction. |
image | image URL, required | — | Portrait. JPEG, PNG, or WebP URL. |
audio | audio URL, required | — | Speech that drives the lips. |
num_frames | integer 41–721 | 145 | Frames at 25fps when the length is not set by audio. |
resolution | 480p / 720p | 720p | Sets the per-second rate. |
seed | integer 0–2147483647 | random | Fix it to compare prompt changes. |
Per output second: $0.20 at 480p and $0.40 at 720p. Length follows the audio; without it, num_frames at 25fps (default 145 frames, 5.8 seconds).
| Output | 480p | 720p |
|---|---|---|
| 6s | $1.20 | $2.40 |
| 30s | $6.00 | $12.00 |
| 60s | $12.00 | $24.00 |
Failed runs are not charged.
Other InfiniteTalk endpoints: meigen/infinitetalk/text-to-video, meigen/infinitetalk/video-to-video.
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": "meigen/infinitetalk/image-to-video",
"prompt": "A woman with colorful hair talking on a podcast.",
"num_frames": 145,
"resolution": "720p"
}
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.
seedintegerRandom seed for reproducibility.
Minimum: 0
Maksimum: 2147483647
audiostringwajibInput audio URL.
imagestringwajibInput image URL (face / character).
promptstringwajibText prompt guiding the generation.
num_framesintegerMaximum frames to generate (41–721, 25 fps); output also stops at the end of the audio.
Default: 145
Minimum: 41
Maksimum: 721
resolutionstringOutput resolution (720p costs 2x).
Default: "720p"
Nilai yang mungkin: "480p", "720p"
{
"model": "meigen/infinitetalk/image-to-video",
"prompt": "A woman with colorful hair talking on a podcast.",
"num_frames": 145,
"resolution": "720p"
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"poster": "https://static.sandbase.ai/examples/posters/1cc2697e1dd0c1f2a6e2.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/d33fa92a-e37d-4e1b-ae63-7dc37efcf42f/output/53ebf063-3a81-4185-a10c-4ba2d7cdc970.mp4"
}
]