P-Video 2 from your own audio
P-Video 2 driven by your voice-over or music: an MP3 or WAV up to 20 seconds, a prompt and an optional starting image make a 720p video exactly as long as the audio, with the audio kept.
POST /api/v1/nodes/video-p-video-2-voice
How it works
Your agent pays for itself

1Needs something

2Finds it on TollNode

3Pays a few cents

4Gets the result
Two ways to use P-Video 2 from your own audio
Way 1 · Pay per call (x402)
For AI agents, no sign-up
Your agent sends the request, gets a 402 with the exact price (from $0.170 per video), signs a USDC payment on Base and retries. Nothing is collected unless the call succeeds.
npx agentcash add https://tollnode.comnpx agentcash@latest fetch https://tollnode.com/api/v1/nodes/video-p-video-2-voice -m POST -b '{"audio":"https://tollnode.com/examples/elevenlabs-v3-speech.mp3","prompt":"A presenter walks through a sunny street market, talking to camera","max_seconds":5}'Way 2 · Account + API key
For apps and teams
Create a free account, load a balance with USDC on Base, create an API key and call any node. Same prices; each successful call is deducted from your balance.
curl -X POST https://tollnode.com/api/v1/nodes/video-p-video-2-voice \
-H "Authorization: Bearer $TOLLNODE_API_KEY" \
-H "content-type: application/json" \
-d '{"audio":"https://tollnode.com/examples/elevenlabs-v3-speech.mp3","prompt":"A presenter walks through a sunny street market, talking to camera","max_seconds":5}'Step-by-step, with code in JavaScript and Python: full guide for P-Video 2 from your own audio.
Input
| Field | Type | Notes |
|---|---|---|
| seed | integer | |
| audio* | string | Your voice-over or music as an MP3 or WAV link; the video is exactly as long as this audio and keeps it as its soundtrack. Or send the file inline as a base64 data: URI (up to 4.5 MB)Limit: https link or base64 data: URI up to 4.5 MB |
| image | string | Optional starting image (https URL). Or send the file inline as a base64 data: URI (up to 4.5 MB)Limit: https link or base64 data: URI up to 4.5 MB |
| prompt* | string | What to create or changeLimit: up to 2,000 characters |
| max_seconds | enum | Longest the audio can be; sets the price. Longer audio is refused before anything runs, and not charged. Default 5 (5, 10, 15, 20) |
| aspect_ratio | enum | Aspect ratio, default 16:9 (16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 1:1) |
Example response
{
"videos": [
"https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
],
"aiGenerated": true
}FAQ
- What does the P-Video 2 from your own audio node return?
- P-Video 2 driven by your voice-over or music: an MP3 or WAV up to 20 seconds, a prompt and an optional starting image make a 720p video exactly as long as the audio, with the audio kept.
- How much does one call cost?
- from $0.170 in USDC on Base per video (one call = one short video), charged only when it succeeds, depending on max_seconds (5: $0.170, 10: $0.339, 15: $0.508, 20: $0.676). No sign-up, subscription or API key.
- What happens if the call fails?
- You are not charged. TollNode checks your signed payment first, runs the node, and only collects the payment if the result is usable. A failed, empty or timed-out call is never settled, so there is nothing to refund.
- How does an AI agent pay?
- With x402. The first request returns HTTP 402 and the exact price. Any x402 wallet signs the USDC payment and retries automatically. In Claude Code or Cursor, run npx agentcash add https://tollnode.com once.
- Can I use an API key instead?
- Yes. Create a free account, add funds in USDC on Base, create an API key and send it as Authorization: Bearer. Each successful call is deducted from your balance at the same price; failed calls cost nothing.