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.
Wypróbuj model
PNG, JPEG, WebP lub GIF · maksymalnie 20 MiB
Co chcesz zrobić dalej?
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
{
"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.
Zacznij tworzyć
Prześlij ten model przez 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"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
seedintegerRandom seed for reproducibility.
Minimum: 0
Maksimum: 2147483647
audiostringwymaganeInput audio URL.
imagestringwymaganeInput image URL (face / character).
promptstringwymaganeText prompt guiding the generation.
num_framesintegerMaximum frames to generate (41–721, 25 fps); output also stops at the end of the audio.
Domyślnie: 145
Minimum: 41
Maksimum: 721
resolutionstringOutput resolution (720p costs 2x).
Domyślnie: "720p"
Możliwe wartości: "480p", "720p"
{
"model": "meigen/infinitetalk/image-to-video",
"prompt": "A woman with colorful hair talking on a podcast.",
"num_frames": 145,
"resolution": "720p"
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
[
{
"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"
}
]