InfiniteTalk API

by MeiGen-AI

Talking video up to 10 minutes from a portrait or clip at 480p or 720p.

meigen-ai/infinitetalk-v1/talking-avatar
InfiniteTalk AI Image Generator online
  • Up to 720p
  • AI Avatar
  • Lip Sync

About InfiniteTalk

The InfiniteTalk API exposes MeiGen-AI's Apache-2.0 model as two task contracts under meigen-ai/infinitetalk-v1. talking-avatar takes image_url and audio_url and returns an MP4 of the photo speaking; lip-sync takes video_url and audio_url and regenerates the performance in existing footage. Both accept 3 to 600 seconds of audio, which fixes the output length and the billed seconds, render at 480p unless you ask for 720p, and share three optional fields: mask_url, prompt and seed. Ten minutes of input produces a long-running job, so build around callbacks instead of a request that waits on screen. Because the weights are public, a self-hosted fallback stays possible later; the hosted endpoint spares you the GPU provisioning.

Call it with the model name meigen-ai/infinitetalk-v1/talking-avatar on POST /jobs/createTask, from $0.039.

Introduction

InfiniteTalk takes image_url for a photo and audio_url for the spoken recording. It returns a video with synchronized speech and subtle natural movement. MeiGen-AI provides the model as open source under Apache-2.0.

Key features

The recording can run from 3 seconds to 10 minutes. When several people appear in the photo, use mask_url to mark the intended speaker in white.

In our tests, the rooftop astronomer delivered an approximately nine-second explanation of Saturn beside a telescope. The 480p clip followed the audio with small natural movements. That sample used a prompt and did not include a speaker mask or seed.

Request parameters

ParameterRequiredDescription
audio_urlYesThe voice or music track to use.
image_urlYesThe picture to start from.
mask_urlNoPaint over the area that should change.
promptNoDescribe what you want to make.
resolutionNoChoose an available output size. 480p · 720p · Default: 480p
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per second
resolution 480p$0.039
resolution 720p$0.068

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

Animate a recorded astronomy explanation using a portrait beside a telescope. Select a speaker in a group image through a white mask. Compare a single change in direction or resolution with the same photo, recording, and random source.

Prompt guide & pro tips

Describe the scene and intended movement in the optional prompt; provide the spoken material through audio_url. For a group photo, mark the speaker in white in the mask rather than relying on a scene description to identify them.

Reuse seed to keep the same random source when comparing one change. A repeated seed does not guarantee the same video frame for frame. Use photos and voices with the necessary rights, only for yourself or for people who have agreed to this use.

API quick start

Call the InfiniteTalk API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model meigen-ai/infinitetalk-v1/talking-avatar and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "meigen-ai/infinitetalk-v1/talking-avatar",
  "input": {
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3",
    "resolution": "480p"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

What to build with the InfiniteTalk API

  • A course builder where an instructor uploads one headshot and a narration file per lesson. A full ten-minute lesson segment fits in one talking-avatar task, so your backend tracks a single taskId per lesson instead of stitching parts.
  • A podcast-to-video converter that turns each episode chapter into a speaking-host clip. Split at chapter markers so every task stays well under the 600-second ceiling and a failed render costs one chapter, not the episode.
  • A group-photo feature where users tap the person who should talk. Convert the tap or a face-detector box into a white-on-black PNG at the photo's exact pixel size and pass it as mask_url.

InfiniteTalk parameter notes

  • audio_url drives everything. Its duration, 3 to 600 seconds, sets the clip length and the billed seconds, rounded up with a three-second floor. Measure the file before calling and strip trailing silence, because silent tail seconds are rendered and charged like speech.
  • resolution defaults to 480p, not 720p. If your interface offers an HD switch, send resolution: 720p explicitly; an omitted field silently produces the cheaper, softer tier.
  • mask_url must line up pixel for pixel with the image or video frame, with the speaker in white. Generate it on your server from coordinates rather than asking users to paint one, and leave it out entirely for single-person inputs.
  • seed accepts integers from 0 to 2147483647. Persist it with each job so a user can change one variable, such as the prompt or the resolution, and compare; the model does not promise identical frames for a repeated seed.

How InfiniteTalk API pricing adds up

Both tasks charge per second of the uploaded recording, at a rate chosen by the resolution field. The 720p tier costs more per second than 480p, and the lip-sync task's 720p rate is higher than the talking-avatar task's, so quote each task on its own rather than reusing one estimate. Video duration, masks, prompt text and seeds do not move the price. A ten-minute file at 720p is a substantial single charge, so send the real body to the quote endpoint before createTask and consider a 480p preview step. Usage is drawn from your PopNow balance in USD.

  • resolution 480p, 5-second clip: $0.195 each, $19.50 for 100 clips
  • resolution 720p, 5-second clip: $0.34 each, $34.00 for 100 clips

Async jobs, webhooks and rate limits

Every InfiniteTalk request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for meigen-ai/infinitetalk-v1/talking-avatar never runs or bills twice.

Common InfiniteTalk API errors

errorCodeWhat it usually means and how to fix it
invalid_assetThe recording is shorter than 3 seconds or longer than 600, a URL could not be fetched, or the image is not JPEG, PNG or WebP. Check duration and format on your side, then re-upload through the PopNow upload flow and send its popnow:// link.
invalid_requestA field is out of range or belongs to the other task: resolution must be 480p or 720p, seed must be a non-negative 32-bit integer, and talking-avatar takes image_url while lip-sync takes video_url.
timeoutLong recordings make long jobs. Treat a slow task as running, not failed, and only resubmit after a terminal failure arrives through recordInfo or the callback, otherwise you pay twice for the same lesson.

InfiniteTalk API questions

How much does the InfiniteTalk API cost?

InfiniteTalk starts at $0.039 per second with AI Avatar, its lowest-priced task. Prices by option: 480p $0.039 per second, 720p $0.068 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What is the model name for InfiniteTalk in the API?

Put meigen-ai/infinitetalk-v1/talking-avatar for AI Avatar; meigen-ai/infinitetalk-v1/lip-sync for Lip Sync in the model field of POST /jobs/createTask.

Which InfiniteTalk task should I call for a still photo versus a video?

Use meigen-ai/infinitetalk-v1/talking-avatar with image_url for a still, and meigen-ai/infinitetalk-v1/lip-sync with video_url for footage. Both require audio_url; neither accepts the other's visual field.

Does the lip-sync task keep the source performance?

No. MeiGen-AI's sparse-frame dubbing keeps identity, background and camera from the source but regenerates mouth, head movement, expression and posture from the audio. If your users expect the filmed motion to survive untouched, route them to a mouth-only endpoint.

Can the InfiniteTalk API return 1080p?

No. The schema offers 480p and 720p only. If you need a larger deliverable, chain an upscaling task after the render and quote both steps together.

What are the limits of the InfiniteTalk API?

Resolutions: 480p · 720p; Prompt length (characters): 2,000; Largest upload: 50 MB. Requests outside these limits are rejected before anything is charged.

Can I try InfiniteTalk without writing code?

Run InfiniteTalk in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

More about InfiniteTalk