---
tool_name: video-audio-replace
summary: Put BGM under a video — mix over the original audio or replace it, auto-looped to length.
input:
  file: binary, required # 1 video + 1 audio (BGM) file (max 200MB)
  loop_bgm: enum, required # BGM 不够长时自动循环
  bgm_volume: number, required, min 0, max 2 # BGM 音量倍率
output:
  preview_url: string | watermarked preview, free, no auth
  task_id: string | unique task identifier
  payment_url: string | end-user must complete one-time payment to unlock final output
  final_download_url: string | only available after successful payment
auth: login via email/phone OTP on https://video-audio-replace.yeezhan.com; API callers use a personal API key (Bearer yeek_...)
payment_rule: one-time charge $0.99 per task. NO credits, NO account balance. One payment unlocks only this task.
valid_window: 24 hours after payment
errors:
  - file_too_large
  - invalid_input
  - unsupported_type
  - target_unreachable
  - processing_failed
endpoint: https://video-audio-replace.yeezhan.com/api/v1/run
---
