video-replace-audio-api

Replace a video's audio track with a different audio file via the Pixazo API.

Updated May 2, 2026
One-click install
npx skills add https://github.com/Pixazo-AI/skills --skill video-replace-audio-api-pixazo-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: video-replace-audio-api
Source: https://github.com/Pixazo-AI/skills/tree/main/skills/video-replace-audio-api
Command: npx skills add https://github.com/Pixazo-AI/skills --skill video-replace-audio-api-pixazo-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Swapping the audio track of a video normally requires opening an editor, demuxing streams, and re-encoding by hand. This Skill lets an AI agent call the Pixazo Video Replace Audio API directly, muxing a new audio track into a video with a single authenticated HTTP request. ## Core Features & Use Cases - Audio track replacement: POST a video URL and an audio URL to https://gateway.pixazo.ai/media-tools/v1/video-replace-audio and receive a processed MP4. - Codec-aware processing: H.264 sources are stream-copied without re-encoding; VP9/WebM and other formats are re-encoded to H.264 MP4. - Managed API key flow: The agent checks PIXAZO_API_KEY, then ~/.pixazo/api-key, and only asks the user once before saving the key. - Use Case: A podcaster has a 10-minute talking-head video and a cleaned-up voiceover track; the agent sends both URLs and returns a video with the new audio, trimmed to the shorter input's duration. ## Quick Start Ask the agent to replace the audio in your video file with a new audio track using the Pixazo Video Replace Audio API, providing the video and audio URLs.

Frequently Asked Questions about video-replace-audio-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I replace the audio track of a video with an API?▼

Send a POST request to https://gateway.pixazo.ai/media-tools/v1/video-replace-audio with a JSON body containing video_url and audio_url, plus your Pixazo API key in the Ocp-Apim-Subscription-Key header. The response returns the processed video synchronously.

Does replacing video audio re-encode the video stream?▼

H.264 sources are stream-copied, so the picture is untouched and not re-encoded. Other codecs such as VP9 or WebM are re-encoded to H.264 so the output is a standard MP4.

What happens if the audio is shorter than the video?▼

The output runs for as long as the shorter of the two inputs. For example, a 60-second video given a 5-second audio track produces a 5-second result.

Where do I get a Pixazo API key for video audio replacement?▼

Create a free key at https://api-console.pixazo.ai/api_keys by signing in and clicking Create new key. The agent saves it to ~/.pixazo/api-key so you only provide it once.

Why did the video replace audio request return a 401 or 402 error?▼

A 401 means the API key is missing or invalid, so generate a fresh one at the Pixazo console. A 402 means the account is out of credits and needs a top-up at the Pixazo dashboard.