Video Analysis
POST/api/analyze-video
Analyze a YouTube video with AI vision — hooks, pacing, visual storytelling, on-screen text, B-roll usage, content strategy, and any other prompt-driven breakdown. Returns structured analysis text. Costs $0.0044 per minute of video plus $0.0096 per video ($0.0137 per minute plus $0.0146 per video at default resolution), charged to your balance when the job is queued and refunded if the analysis fails; the response includes credits_charged, the charge counted in credits (1 credit = $0.03). Repeat prompts on the same video within 2 hours reuse a cached upload automatically (faster on the backend, returns cached: true).
Paid per use, no daily limit.
Request Body (JSON)
| video_urlstring · required | YouTube video URL. Accepts watch links, youtu.be short links, and Shorts URLs. |
| promptstring · required | Plain-English instruction describing what to analyze. Max 4,000 characters. |
| media_resolutionstring · optional | Analysis fidelity: low (default, recommended for hook / pacing / strategy prompts) or default (higher visual detail at greater backend cost — useful when fine on-screen text or subtle visual cues matter). |
| 200 | Queued |
| 400 | Validation / unsupported video |
| 401 | Auth failed |
| 429 | Concurrency cap |
Limits: Maximum video length is 3 hours. Live streams, private, deleted, and age-restricted videos are rejected with clear error messages. The jobs-at-once cap of the other media jobs applies, with a 429 past it: until 1 December 2026, 8 Starter / 20 Professional / 40 Ultimate; from 1 December, 8 / 20 / 40 for any amount / $100 or more / $500 or more added to the balance in the last 4 weeks.
Processing time: Typically 5–25 seconds for Shorts, 30–90 seconds for 5-minute videos, several minutes for hour-long content. The first analysis on a video is slower than follow-up prompts on the same video (which hit the cache and skip download + upload). Poll /api/job-status/:job_id every 5 seconds for updates.
Caching: When you run multiple prompts on the same video_url within 2 hours, the source video is reused from cache — the response includes cached: true. Cache is keyed per (user, video) so each user pays the cold-path cost once per video per 2 hours.
