# P-Video-2-Pro-Avatar

> Run P-Video-2-Pro-Avatar by pruna online or via API. $0.02/sec 480p, $0.04/sec 768p, $0.06/sec 1080p, $0.08/sec 2k, $0.12/sec 4k, no setup.

**URL:** https://inference.sh/apps/pruna/p-video-2-pro-avatar
**Last updated:** 2026-10-23

---

Talking video from one portrait and uploaded audio or a script on MiniMax H3. Lip sync, 30 voices in 10 languages, 1s to 3 min, 480p to 4k.

- app: `pruna/p-video-2-pro-avatar`
- maker: [pruna](https://inference.sh/apps/pruna.md)
- category: [video](https://inference.sh/apps/category/video.md)
- tasks: [talking avatar](https://inference.sh/apps/tag/talking-avatar.md), [lip sync](https://inference.sh/apps/tag/lip-sync.md)
- price: $0.02/sec 480p, $0.04/sec 768p, $0.06/sec 1080p, $0.08/sec 2k, $0.12/sec 4k
- runs via: api, javascript and python sdk, belt cli, mcp

## p-video-2-pro-avatar API Guide

### About
talking video from one portrait and uploaded audio or a script on minimax h3. lip sync, 30 voices in 10 languages, 1s to 3 min, 480p to 4k.

### 1. Calling the API

#### Install the Client

```bash
pip install inferencesh
```

#### Setup Your API Key
Set `INFERENCE_API_KEY` as an environment variable. Get your key from settings → api keys.

```bash
export INFERENCE_API_KEY="inf_your_key"
```

#### Run and Get Result

```python
import os
from inferencesh import inference

client = inference(api_key=os.environ["INFERENCE_API_KEY"])


result = client.run({
        "app": "pruna/p-video-2-pro-avatar@1vvvx00x",
        "input": {
            "image": "https://example.com/file.png"
        }
    })

print(result["output"])
```

#### Stream Live Updates

```python
import os
from inferencesh import inference

client = inference(api_key=os.environ["INFERENCE_API_KEY"])


## stream=True yields updates as they arrive
for update in client.run({
        "app": "pruna/p-video-2-pro-avatar@1vvvx00x",
        "input": {
            "image": "https://example.com/file.png"
        }
    }, stream=True):
    if update.get("progress"):
        print(f"progress: {update['progress']}%")
    if update.get("output"):
        print(f"output: {update['output']}")
```

### 2. Authentication
The API uses API keys for authentication. See the authentication docs for detailed setup instructions.

### 3. Files

#### Automatic Upload

```python
## local file paths are automatically uploaded
result = client.run({
    "app": "pruna/p-video-2-pro-avatar@1vvvx00x",
    "input": {
        "image": "/path/to/local/image.png",  # detected & uploaded
        "audio": "https://example.com/audio.mp3",  # url passed through
    }
})
```

#### Manual Upload

```python
## upload and get a hosted URL
file = client.files.upload("/path/to/file.png")
print(file.uri)  # https://cloud.inference.sh/...
```

### 4. Schema

#### Input
- **image** (string) *required*: Portrait of the person who speaks (jpg, png, webp; up to 20 MiB). Sets the aspect ratio.
- **audio** (string): Speech audio, 1s to 3 min (64 MiB). The video matches its length. Overrides voice_script.
- **voice_script** (string): Exact words to speak with text-to-speech when no audio is uploaded.
- **voice** (string): TTS voice for voice_script.
- **voice_language** (string): Language of voice_script.
- **voice_prompt** (string): Delivery instructions for the voice (tone, pacing, accent, emotion). Not spoken.
- **prompt** (string): What the video should show (default: 'The person is talking.').
- **prompt_upsampling** (boolean): Append the scene's own motion from the portrait to the prompt. Your words stay first.
- **resolution** (string): 480p or 768p native. 1080p, 2k and 4k generate at 768p and upscale; 4k up to 125s.
- **seed** (integer): Random seed for reproducible generation.
- **enable_safety_filter** (boolean): Block content in the toggleable moderation categories. Always-on rules apply either way.

#### Output
- **seed** (integer): Seed used for generation.
- **video** (string): Generated talking video.

## other video apps

- [VACE](https://inference.sh/apps/pruna/vace.md): $0.40/video
- [P-Video-Animate](https://inference.sh/apps/pruna/p-video-animate.md): $0.03/sec 720p, $0.06/sec 1080p
- [P-Video-Upscale](https://inference.sh/apps/pruna/p-video-upscale.md): Std: $0.01/sec 720p, $0.02 1080p, $0.04 2k, $0.08 4k; high fps 2x
- [P-Video-2-Pro-Reference](https://inference.sh/apps/pruna/p-video-2-pro-reference.md): Output: cost $0.015-$0.105/sec, speed $0.02-$0.115/sec. Ref video: $0.03-$0.06/sec. Ref img: $0.005/img. Ref audio: $0.0015-$0.0025/sec
- [P-Video-2-Pro](https://inference.sh/apps/pruna/p-video-2-pro.md): $0.01-$0.155/sec; cost: $0.01-$0.105, speed: $0.02-$0.115, quality: $0.04-$0.155 (480p-4k)

## faq

### how much does P-Video-2-Pro-Avatar cost?

$0.02/sec 480p, $0.04/sec 768p, $0.06/sec 1080p, $0.08/sec 2k, $0.12/sec 4k. you pay per run from your inference shell credits. no subscription is required.

### how do I run P-Video-2-Pro-Avatar via api?

call pruna/p-video-2-pro-avatar with the javascript or python sdk, the rest api, or `belt app run pruna/p-video-2-pro-avatar` from a terminal. the api reference on this page lists every input.

### who makes P-Video-2-Pro-Avatar?

P-Video-2-Pro-Avatar is made by pruna and runs on inference shell. every pruna app is listed at https://inference.sh/apps/pruna.

### can my agent use P-Video-2-Pro-Avatar?

yes. agents call it as a tool through the inference shell mcp server (https://api.inference.sh/mcp), the belt cli or the sdk, and pay per run like you do.

### what are the alternatives to P-Video-2-Pro-Avatar?

other video apps on inference shell include VACE, P-Video-Animate, P-Video-Upscale, P-Video-2-Pro-Reference. they run through the same api, so switching is a one-line change.
