InfiniteTalk

INFINITETALK

Talking-head video model (InfiniteTalk 14B, from an 8-bit build) that makes a picture of a person speak or sing your recording, up to 3.2 seconds at 480p, and can learn a face or a manner of speaking from your own clips.

Video Generationtalking-headavatarlip-syncvideo-generationwanapache-2.0Fine-tunable
InfiniteTalk: Video Generation model on Kainguru

About InfiniteTalk

Capabilities

  • Picture and speech to video — a portrait and a recording become an H.264 MP4 of the person saying it, up to 81 frames, 3.2 seconds at 25 frames per second, with your audio as the sound track
  • Landscape or portrait — 768 x 512 or 512 x 768, the one closest to your picture
  • Prompt and guidance — describe the person and the scene, and set how closely the face follows the speech and the prompt
  • Repeatable — the same seed and inputs give the same video
  • Fine-tuning — teach it a face, a voice or a manner of speaking from 4 to 200 captioned clips with speech

Good to know

  • A request is billed for the whole clip of 81 frames, whatever the length of your recording: the model always makes the full 3.2 seconds, and the video you get is cut to the recording.
  • Pictures: PNG, JPEG or WebP, at least 16 pixels a side. A face and shoulders work best; the picture is cropped to fill the video, so keep the face near the middle.
  • Speech: WAV, MP3, FLAC, OGG, M4A, AAC or WebM, at most 50 MB and 3.2 seconds, at least half a second. Clean speech or singing without background music works best. Its loudness is levelled before the model hears it; the sound track of the video is your recording as it is.
  • The model runs from its authors' published 8-bit build so that it fits one GPU slice; its output differs slightly from the 16-bit original's.
  • A video of up to 3.2 seconds takes about 20 minutes to make; fewer steps make it faster, and prompt guidance 1 leaves out one of three predictions per step.
  • Prompts work best in English or Chinese; other languages are untested. The audio encoder was trained on Chinese speech, so how well the lips follow other languages is untested.
  • Without a negative prompt, the authors' default one is used: it steers away from overexposure, still frames, blur, captions and malformed hands and faces.
  • Training clips: MP4, MOV, WebM or MKV with H.264, H.265, VP8, VP9, AV1 or MPEG-4 video and an audio track, at most 200 MB, 3840 pixels a side, 4K in all and 240 frames per second each.
  • Training uses the first 17 frames of each clip at 25 frames per second (about 0.7 seconds) and the speech under them, cropped to fill 768 x 512 or 512 x 768, whichever is closest to the clip's shape; a clip must give at least 5 frames and its audio must last as long as those frames. The first frame of every clip is the picture the model learns to animate.
  • In the training ZIP, manifest.jsonl has one {"file": ..., "caption": ...} line per clip, paths relative to it and captions of at most 2000 characters; the manifest is at most 4 MB and the ZIP holds at most 1000 entries.
  • The LoRA rank is at most 32 for this model. Training takes hours; it stops after 9 hours and keeps what it has learned. A trigger word, if you set one, is put before every caption.

Attribution

InfiniteTalk by MeiGen-AI (Apache-2.0), built on Wan 2.1 (Apache-2.0); audio encoder by TencentGameMate (MIT).

InfiniteTalk inputs and output

NameTypeRequiredDefaultDetails
audiofileYes—The recording the person speaks or sings: WAV, MP3, FLAC, OGG, M4A, AAC or WebM, at most 50 MB, sampled at 4 to 192 kHz with at most 8 channels. The video lasts as long as it does; clean speech without music works best. At most 3.2 seconds.
1–2048 characters · audio/wav, mpeg, flac, ogg, mp4, aac, webm
imagefileYes—A picture of the person or character who speaks: PNG, JPEG or WebP, at most 50 MB and 16.8 megapixels. A face and shoulders work best; it is cropped to fill the video.
1–2048 characters · image/png, jpeg, webp
audio_guidance_scalenumberNo4.0How strongly the mouth and face follow the speech: higher is more exact, too high looks strained.
1–10
seedintegerNo—The same seed and inputs give the same video. Leave empty for a random seed.
0–2147483647
num_inference_stepsintegerNo20Denoising steps; fewer are faster and rougher.
1–30
prompttextNoA person is talking to the camera, mouth moving with the words, natural expression, steady shot.Who is speaking and how: appearance, expression, setting. Empty uses the model's default.
Max 2000 characters
negative_prompttextNo—What the video should avoid; empty uses the model's default. Ignored at guidance 1.
Max 2000 characters
guidance_scalenumberNo5.0How closely the video follows the prompt; 1 ignores it.
1–10
resolutiontextNo—Width x height in pixels, one of the sizes the model was trained at. Left empty, the size closest to the shape of the picture.
Allowed: 768x512, 512x768 · Max 9 characters

Output. Returns MP4 video: The generated video: an H.264 MP4 as long as the audio, with the audio as its sound track.

Run InfiniteTalk with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=INFINITETALK" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "audio": "https://example.com/input.png",
    "image": "https://example.com/input.png",
    "audio_guidance_scale": 4.0,
    "guidance_scale": 5.0,
    "num_inference_steps": 20,
    "prompt": "A person is talking to the camera, mouth moving with the words, natural expression, steady shot."
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "INFINITETALK",
        {
          "audio": "https://example.com/input.png",
          "image": "https://example.com/input.png",
          "audio_guidance_scale": 4.0,
          "guidance_scale": 5.0,
          "num_inference_steps": 20,
          "prompt": "A person is talking to the camera, mouth moving with the words, natural expression, steady shot."
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune InfiniteTalk

You can fine-tune InfiniteTalk on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 4 to 200 video clips of a person speaking, each with its audio, and a manifest.jsonl with one {"file": ..., "caption": ...} line per clip. More rules: Good to know, in the README.

The steps are in the docs.

InfiniteTalk pricing

Price per frame: 0.6916 credits ($0.006916). The price is shown again before every run; all prices are on the pricing page.

Licence and source

StableAvatar: Video Generation model on Kainguru
Video Generation

StableAvatar

Talking-head video model (StableAvatar 1.3B) that makes a picture of a person speak or sing your recording, up to 8…

Fine-tunable
Wan 2.2 S2V 14B: Video Generation model on Kainguru
Video Generation

Wan 2.2 S2V 14B

Talking-video model (Wan2.2-S2V 14B, from a 5-bit build) that makes a picture speak, sing or move to your recording…

Fine-tunable
EchoMimic v3: Video Generation model on Kainguru
Video Generation

EchoMimic v3

Audio-driven avatar video. Give it a portrait and a speech clip and it returns a lip-synced talking video of up to 3.2…

Wan 2.2 T2V A14B: Video Generation model on Kainguru
Video Generation

Wan 2.2 T2V A14B

Turn a prompt into a video of up to 3 seconds at 480p, and teach it a style, subject or motion from your own clips.

Fine-tunable
Wan 2.1 FLF2V 14B: Video Generation model on Kainguru
Video Generation

Wan 2.1 FLF2V 14B

First-and-last-frame video model (Wan 2.1 FLF2V 14B, served from a 5-bit build): joins two pictures with a clip of up…

Fine-tunable
Wan 2.1 Fun 1.3B InP: Video Generation model on Kainguru
Video Generation

Wan 2.1 Fun 1.3B InP

Image-to-video model (Wan 2.1 Fun, 1.3B) that animates a picture into a video of up to 5 seconds at 480p, optionally…

Fine-tunable