---
tool_name: compress-video
summary: Two-pass H.264 compression that hits an exact MB target — email, chat and portal compliant.
input:
  file: binary, required # video file (MP4/MOV/MKV/AVI/WebM) (max 500MB)
  target_mb: number, required, min 0.5, max 500 # 目标大小
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://compress-video.yeezhan.com; API callers use a personal API key (Bearer yeek_...)
payment_rule: one-time charge $2.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://compress-video.yeezhan.com/api/v1/run
---
