seedinteger
Random seed for reproducibility.
Mínimo: 0
Máximo: 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.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
O que você gostaria de fazer em seguida?
Selecione um exemplo para carregar as entradas e o resultado no 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.
Comece a construir
Envie este modelo pela 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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
seedintegerRandom seed for reproducibility.
Mínimo: 0
Máximo: 2147483647
audiostringobrigatórioInput audio URL.
imagestringobrigatórioInput image URL (face / character).
promptstringobrigatórioText prompt guiding the generation.
num_framesintegerMaximum frames to generate (41–721, 25 fps); output also stops at the end of the audio.
Padrão: 145
Mínimo: 41
Máximo: 721
resolutionstringOutput resolution (720p costs 2x).
Padrão: "720p"
Valores possíveis: "480p", "720p"
{
"model": "meigen/infinitetalk/image-to-video",
"prompt": "A woman with colorful hair talking on a podcast.",
"num_frames": 145,
"resolution": "720p"
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
[
{
"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"
}
]