InfiniteTalk API 调用参考
开源人像说话视频模型,用一张照片或一段视频和最长 10 分钟音频生成 480p 或 720p 视频
用一个 PopNow API 密钥,就能在自己的代码里调用 InfiniteTalk。下面列出要填的调用名、这个型号接受的每个输入字段、每次请求花多少美元(USD),以及一段可以直接粘进终端运行的请求。
参数说明直接取自型号的输入 schema,暂时只有英文。
一览
- 出品方
- MeiGen-AI
- 产出
- 视频
- 起价
- $0.039 USD 每秒成片
- 一般耗时
- 约 69 秒
价格以 USD 显示,从你的 PopNow 余额扣款。任务受理时预留可能的最高费用,完成后按实际用量结算并释放余款;失败任务不收费。运行前可调用 POST /api/v1/jobs/quote 获取准确报价。
对口型
meigen-ai/infinitetalk-v1/lip-sync
价格
| 选项 | USD |
|---|---|
480p | $0.039 每秒成片 |
720p | $0.078 每秒成片 |
参数
| 字段 | 类型 | 默认值 | 取值范围 | 作用 |
|---|---|---|---|---|
video_url必填 | string (uri) | — | — | Required URL of source footage with the person clearly visible. Video length does not determine the billed seconds; audio duration and resolution do. |
audio_url必填 | string (uri) | — | — | Required URL of the new recording, 3–600 seconds. Sets output duration and billed audio seconds, rounded upward with a three-second minimum. |
prompt可选 | string | — | 最多 2000 个字符 | Optional scene and motion direction, up to 2,000 characters. Describe expression, action, or lighting; the words come from audio, and prompt text does not change the rate. |
mask_url可选 | string (uri) | — | — | Optional URL of a mask image marking the intended speaker white when several people appear. Omit for an unmasked request; it adds no separate charge. |
resolution可选 | string | 480p | 480p, 720p | Choose 480p or 720p; the default is 480p. Each second at 720p is billed at twice the 480p rate. |
seed可选 | integer | — | 0 到 2147483647 | Optional seed for comparing one change at a time; no identical-result guarantee. No default or numeric range is specified here, and it has no separate price effect. |
请求示例
这段请求原样就能运行,没写的字段都用默认值。运行前先把密钥放进环境变量 POPNOW_API_KEY。
示例里的 audio_url, video_url 用的是 PopNow 的示例素材,换成你自己的公开 HTTPS 链接、上传文件或已保存的素材即可。
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: $(uuidgen)" \
-d '{
"model": "meigen-ai/infinitetalk-v1/lip-sync",
"input": {
"prompt": "A bright, cheerful scene with soft natural light",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3",
"resolution": "480p"
}
}'响应里会立刻带回 taskId。之后用 GET /api/v1/jobs/recordInfo 取结果,或者在请求里加上 callBackUrl 等通知。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"AI 数字人
meigen-ai/infinitetalk-v1/talking-avatar
价格
| 选项 | USD |
|---|---|
480p | $0.039 每秒成片 |
720p | $0.068 每秒成片 |
参数
| 字段 | 类型 | 默认值 | 取值范围 | 作用 |
|---|---|---|---|---|
image_url必填 | string (uri) | — | — | Portrait of the speaker: JPEG, PNG or WebP. |
audio_url必填 | string (uri) | — | — | Speech that drives the video, 3 seconds to 10 minutes. Billed per second of audio, 3 seconds minimum. |
prompt可选 | string | — | 最多 2000 个字符 | Optional description of the setting and how the speaker moves. |
mask_url可选 | string (uri) | — | — | Optional mask: white marks the person who should speak when the photo shows several people. |
resolution可选 | string | 480p | 480p, 720p | Output height. 720p costs twice as much as 480p. |
seed可选 | integer | — | 0 到 2147483647 | Random seed for controlled comparisons. |
请求示例
这段请求原样就能运行,没写的字段都用默认值。运行前先把密钥放进环境变量 POPNOW_API_KEY。
示例里的 audio_url, image_url 用的是 PopNow 的示例素材,换成你自己的公开 HTTPS 链接、上传文件或已保存的素材即可。
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: $(uuidgen)" \
-d '{
"model": "meigen-ai/infinitetalk-v1/talking-avatar",
"input": {
"prompt": "A bright, cheerful scene with soft natural light",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3",
"resolution": "480p"
}
}'响应里会立刻带回 taskId。之后用 GET /api/v1/jobs/recordInfo 取结果,或者在请求里加上 callBackUrl 等通知。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
