seedinteger
Random seed for reproducibility.
न्यूनतम: 0
अधिकतम: 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.
model को आज़माएँ
PNG, JPEG, WebP, या GIF · अधिकतम 20 MiB
आप आगे क्या करना चाहेंगे?
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"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.
बिल्डिंग शुरू करें
इस model को 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"एक SandBase API key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
इस model ID और इसके inputs के साथ /v1/run पर POST करें। ऊपर दिया गया request example submission और polling दोनों शामिल करता है।
Completed, failed या timeout होने तक poll करने के लिए लौटाए गए run ID का उपयोग करें। Output केवल completed होने के बाद पढ़ें।
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
seedintegerRandom seed for reproducibility.
न्यूनतम: 0
अधिकतम: 2147483647
audiostringआवश्यकInput audio URL.
imagestringआवश्यकInput image URL (face / character).
promptstringआवश्यकText prompt guiding the generation.
num_framesintegerMaximum frames to generate (41–721, 25 fps); output also stops at the end of the audio.
डिफ़ॉल्ट: 145
न्यूनतम: 41
अधिकतम: 721
resolutionstringOutput resolution (720p costs 2x).
डिफ़ॉल्ट: "720p"
संभावित मान: "480p", "720p"
{
"model": "meigen/infinitetalk/image-to-video",
"prompt": "A woman with colorful hair talking on a podcast.",
"num_frames": 145,
"resolution": "720p"
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
[
{
"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"
}
]