Analyse a video
analyze_videoStarts an AI analysis of an existing video and returns the new analysis's id immediately (it does NOT wait). It reads the video and describes it in detail (what happens, who is in it, the on-screen text, the pacing and cuts) as free-form text, plus the platform's own metadata (title, author, view count) when it has any. It generates nothing: use generate_video for that. WHEN: the user wants to understand, break down, transcribe or copy the structure of a video they link to or uploaded to aicut. WHICH VIDEOS: a public YouTube, TikTok or Instagram video url, or a video this account uploaded to aicut. Any other url, including another account's upload, is rejected: do not retry it in a different form. AFTER: poll get_analysis with the returned id every 5-10 seconds (never faster) until status is succeeded or failed. TIMING: an analysis usually finishes in under a minute and can take a few minutes for a long window or a slow platform. No timers or background shells. COST: this spends NO tokens, so there is nothing to confirm about cost and no reason to check the balance. It counts against a per-account daily analysis allowance: on daily_limit_exceeded wait rather than top up, and do not run analyses in a loop to explore. IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The video to analyse: a public YouTube, TikTok or Instagram video url, or the url of a video this account uploaded to aicut. Pass the url the user gave you, unchanged: do not rewrite it, strip it to an id or substitute another. | |
| end_seconds | No | Where to stop, in seconds: at most 128 seconds after `start_seconds`, which is also the default, so a longer video is analysed in a window and a wider span is rejected rather than trimmed. Cover a long video with successive windows. | |
| start_seconds | No | Where to start analysing, in seconds (default: the beginning). Use it when the user pointed at a moment. | |
| idempotency_key | No | Retry-safety key (IDEMPOTENCY). |