{
  "name": "Video Dubbing Agent",
  "description": "Dubs a video/audio URL into another language using xAI speech-to-text, Grok translation, and xAI text-to-speech. Delivers a dubbed audio track (MP3) plus segment timing JSON; video muxing is handed to an external runner when configured.",
  "endpoints": {
    "GET /": "this description",
    "GET /health": "liveness + provider readiness",
    "POST /jobs": "create dubbing job",
    "GET /jobs/:id": "status, steps, delivery URLs",
    "GET /files/:id/:name": "download deliverable"
  },
  "input": {
    "mediaUrl": "https URL to audio/video (required)",
    "sourceLanguage": "BCP-47 or \"auto\" (default auto)",
    "targetLanguage": "one of en, ar-EG, ar-SA, ar-AE, bn, zh, fr, de, hi, id, it, ja, ko, pt-BR, pt-PT, ru, es-MX, es-ES, tr, vi (required)",
    "options": {
      "voiceId": "xAI voice id (default eve) or custom voice id",
      "speed": "0.7-1.5",
      "mux": "boolean, request muxed video (needs external runner)"
    }
  },
  "providers": {
    "stt": "xAI /v1/stt",
    "translation": "xAI Grok chat completions",
    "tts": "xAI /v1/tts",
    "mux": "external ffmpeg runner (optional)"
  }
}