# Video Audio Replace / Mix

> Video Audio Replace / Mix is a paid API for AI agents from medien.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-12-02).

Replaces or mixes a video's audio track with a new audio file, copying the picture stream without re-encoding and returning the result as a base64-encoded MP4.

## Facts

- Endpoint: POST https://medien.halowerk.com/v1/video-audio-replace?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/video-audio-replace-mix-b9653f65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IKwOLqZLOgQI9YdSyF3a1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability video-audio-replace-mix-b9653f65 -d '<json body>'
```

Example prompt: Take this video file and replace its audio with this dubbed MP3 track — drop the original sound entirely and pad with silence if the audio is shorter than the video, then give me the result as an MP4.

## When to prefer this

Choose this endpoint when you need to swap or blend a new audio track into an existing video without re-encoding the picture — ideal for dubbing workflows (e.g. output from /v1/dub), adding voiceovers, or layering background music, especially when preserving original video quality and keeping costs low per call ($0.004).

## Known failure modes

- File too large: combined input or output exceeds 24 MB limit
- Invalid mode value: only 'replace' or 'mix' are accepted
- Audio or video not provided: at least one of url, filename, or content_base64 required for each
- Offset exceeds maximum: offset_seconds must be between 0 and 600
- ffmpeg processing failure due to corrupted or unsupported codec in source files
- original_volume out of range: must be between 0 and 1

## How this service works

Takes a video and an audio file (for example a dubbed track from /v1/dub, a voice-over or music) and returns the video with the new sound: mode replace drops the original audio, mode mix keeps it at original_volume underneath. The new audio is trimmed to the video length or padded with silence, optionally delayed by offset_seconds. The picture is copied, not re-encoded. Output MP4 with AAC inline as base64, max 24 MB. Runs locally with ffmpeg. Fixed price per call.

## Output

A base64-encoded MP4 file (max 24 MB) with the video picture stream copied as-is and a new AAC audio track either fully replacing the original or mixed with it at the specified volume ratio. The audio is trimmed to match video length or padded with silence, and optionally delayed by the requested offset.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "replace",
    "mix"
   ],
   "type": "string",
   "default": "replace"
  },
  "audio": {
   "type": "object",
   "properties": {
    "url": {
     "type": "string",
     "maxLength": 2048
    },
    "filename": {
     "type": "string",
     "maxLength": 260
    },
    "content_base64": {
     "type": "string",
     "maxLength": 5500000
    }
   },
   "additionalProperties": false
  },
  "video": {
   "type": "object",
   "properties": {
    "url": {
     "type": "string",
     "maxLength": 2048
    },
    "filename": {
     "type": "string",
     "maxLength": 260
    },
    "content_base64": {
     "type": "string",
     "maxLength": 5500000
    }
   },
   "additionalProperties": false
  },
  "offset_seconds": {
   "type": "number",
   "default": 0,
   "maximum": 600,
   "minimum": 0
  },
  "original_volume": {
   "type": "number",
   "default": 0.2,
   "maximum": 1,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/video-audio-replace-mix-b9653f65/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from medien.halowerk.com](https://www.zero.xyz/host/medien.halowerk.com/llms.txt)
