Pixverse Avatar API

Turns a single portrait into a talking avatar video, driven by an uploaded audio track or by text spoken with a built-in voice.

PixVerse视频生成专有端点

关于 Pixverse Avatar

Turns a single portrait into a talking avatar video, driven by an uploaded audio track or by text spoken with a built-in voice.

lipsyncimage to videoaudio inaudio sync

Pixverse Avatar 规格

模型 ID
pixverse-avatar
提供方
PixVerse
类别
视频生成
发布日期
-
输入
文本图像音频
输出
视频
端点
POST/v1/videos/generations
备用模型 ID
pixverse/avatar

Pixverse Avatar API 价格

来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。

类型
规格
价格
360p
per second
$0.10
540p
per second
$0.20
720p
per second
$0.30
1080p
per second
$0.40
在完整价格页比较

如何调用 Pixverse Avatar API

Pixverse Avatar 通过 POST /v1/videos/generations 运行。请求会立即返回 job_id;轮询 GET /v1/jobs/{job_id} 直到任务完成,再从结果中读取输出 URL。 在EmpirioLabs 控制台获取 API 密钥。

cURL:提交任务
curl https://api.empiriolabs.ai/v1/videos/generations \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "pixverse-avatar",
    "prompt": "Describe what you want Pixverse Avatar to generate."
  }'
cURL:轮询结果
curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY"
Python
import requests

response = requests.post(
    "https://api.empiriolabs.ai/v1/videos/generations",
    headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    json={
        "model": "pixverse-avatar",
        "prompt": "Describe what you want Pixverse Avatar to generate.",
    },
)
job = response.json()

# Generation runs as an async job. Poll until it completes.
import time
while True:
    status = requests.get(
        f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
        headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    ).json()
    if status.get("status") in ("completed", "failed"):
        print(status)
        break
    time.sleep(5)
Pixverse Avatar API 完整参考

Pixverse Avatar API 参数

EmpirioLabs 上 Pixverse Avatar API 支持的请求参数。省略字段时使用默认值。

参数类型默认值范围 / 值描述
lip_sync_tts_contentstring--The line for the avatar to speak. Used when no audio file is attached. Billed in 15-character blocks.
lip_sync_tts_speaker_idenumAutoAuto, Emily, James, Isabella, Liam, Chloe, Adrian, Harper, Av...Voice used for the spoken line. Auto picks one to suit the portrait. Ignored when an audio file is attached.
resolutionenum720p360p, 540p, 720p, 1080pOutput resolution. Higher resolutions bill at a higher per-second rate.
promptstring--Optional direction for delivery or framing.
imagestring--Portrait image URL. Required.
audiostring--Audio URL for the avatar to perform. Takes precedence over the spoken text.

须知

Turns a single portrait image into a talking avatar video, driven either by an audio file you supply or by text spoken with a built-in voice.

Inputs

  • image: the portrait to animate. Use a clear, front-facing subject.
  • audio: the speech to perform, or lip_sync_tts_content with lip_sync_tts_speaker_id to have the model speak your text. Fourteen named voices are available plus Auto.
  • prompt is optional and can describe delivery or framing.

输出

  • 360p, 540p, 720p and 1080p.

Billing

  • Billed per second of speech at the rate for the output resolution. Text-to-speech input is metered in 15-character blocks at the same rate, so the charge tracks the length of the script.

Input limits

  • Image: PNG, JPEG or WebP, up to 20MB and 10000px on the long edge.
  • Audio: MP3, WAV, M4A or AAC.

Pixverse Avatar API:常见问题

Pixverse Avatar API 收费多少?

在 EmpirioLabs,Pixverse Avatar 按量计费:360p $0.10 per second; 540p $0.20 per second; 720p $0.30 per second。本页的实时价格表始终与 API 的实际计费一致。

Pixverse Avatar 使用哪个端点?

Pixverse Avatar 通过 api.empiriolabs.ai 上的 POST /v1/videos/generations 提供,使用标准的 Bearer 令牌认证。

集成之前可以在浏览器里试用 Pixverse Avatar 吗?

可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Pixverse Avatar,你可以在写代码之前先测试提示词。

如何获取 Pixverse Avatar API 密钥?

创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。

准备好使用更好的终端了吗?

查看我们的定价,或者如果你想将自己的模型部署到我们的堆栈中,请联系我们。