Media
Analyze a video with AI
Watch a video with AI and get what is said and shown, its hook, its structure and its key points.
POST
Needs
media:read. Paid plans only. See Permissions.url (TikTok, Instagram, YouTube, X, Facebook and more; the post needn’t be yours), or a video of the media library, by media_id. The answer has the transcript, the words on screen, the scenes, the hook, the structure and the key points, and an answer when you send a question. Use it to turn a video into posts, slides or a script, or to see why it works. Videos up to 10 minutes and 300 MB can be watched. Nothing is stored.
Cost. A watch costs AI credits by what it really costs, which follows the video’s length: at least 1 credit, about 2 for a one-minute video. credits in the answer says what it cost and what is left. The owner of the workspace in workspace_id pays; without it, the key’s user does. When the payer’s credits don’t cover a watch of this length, the answer is 402 before anything is watched. On the Free plan the answer is 403 plan_limit_reached with limit: ai.
Time. A watch takes about 15 to 60 seconds, up to 85 for a long video. Give your client a timeout of at least 100 seconds: a request sent again is a second watch. A watch that can’t finish in time answers 422 and costs nothing; try a shorter clip.
Limits. Each payer runs at most 2 watches at once and starts at most 10 a minute. Past either, the answer is 429 with Retry-After, and nothing is charged.
In MCP this is the analyze-video tool: see Media tools.
Errors
Nothing is charged on any error.
The watch limit’s
429 has the same {message} body and Retry-After header as the request limit, with its own words:
429: 2 watches running (Retry-After: 30)
429: 10 watches this minute
Related
- Get download links for a post’s media: a post’s files, without watching them.
- Upload a file: put a video in the library to watch it by
media_id.
Authorizations
Body
application/json
Response
What the video says and shows.
What a video says and shows.