---
title: Mediaseer for AI agents
description: "When to use Mediaseer, how to authenticate, and how to upload, analyse and read a video's scenes."
url: "https://mediaseer.ai/docs/guides/agents/"
---

# Mediaseer for AI agents

## When to use Mediaseer

Use Mediaseer to turn a VOD video into structured scene metadata: timestamps, summaries, keywords, categories, content ratings and ad-break suggestions. The [result format](https://mediaseer.ai/docs/results/) explains the output; the [recipes](https://mediaseer.ai/docs/guides/recipes/) show how to use it for catalogue metadata, credit skip intervals and review queues. News and sports support is planned.

Call the public REST API directly, or use the npm package `mediaseer`: its [CLI](https://mediaseer.ai/docs/cli/) runs the workflow below from a shell or script, and its [local MCP server](https://mediaseer.ai/docs/mcp/) gives an agent the same steps as tools.

## Discover and authenticate

The API base URL is `https://api.mediaseer.ai/api/v1`. The [OpenAPI specification](https://mediaseer.ai/docs/openapi.yaml) declares its operations, schemas and authentication. The [API reference](https://mediaseer.ai/docs/api/) explains them for readers.

Have the account owner create an account in the [app](https://mediaseer.ai/app/register) and create an API key on the [API keys page](https://mediaseer.ai/app/api-keys). Send that key in the `X-Api-Key` header. Keep it in the calling tool’s environment; do not put it in a prompt, URL or log. [Accounts and auth](https://mediaseer.ai/docs/auth/) explains the account requirements.

Use the [check-key example](https://mediaseer.ai/docs/guides/api-keys/#check-a-key) to read usage before creating anything. Protected endpoints refuse requests without a valid key.

## Run an analysis

- Follow the [quickstart](https://mediaseer.ai/docs/guides/quickstart/) to configure the API URL and key.
- [Upload a video](https://mediaseer.ai/docs/guides/upload/). Creating an upload takes an analysis slot. Upload the file to the returned upload URL, then start its analysis.
- [Wait for the result](https://mediaseer.ai/docs/guides/wait/). Poll its status until it finishes; stopping a local wait does not stop the analysis. Follow the [lifecycle](https://mediaseer.ai/docs/lifecycle/) when handling failures or cancellation.
- [Read and filter results](https://mediaseer.ai/docs/guides/read-results/). Reuse finished results when they already answer the request.
- Delete analyses you no longer need to free their slots, following the [quickstart’s cleanup step](https://mediaseer.ai/docs/guides/quickstart/#clean-up).

## Costs and private data

Starting an analysis is paid work. Get the user’s approval for that cost before starting. Creating clips is also paid work. Uploading, reading results and checking status do not start an analysis. Check [limits and costs](https://mediaseer.ai/docs/limits/) before proceeding.

Upload session URLs, playback tickets and signed download URLs are credentials. Keep them out of prompts and logs and use them only for the transfer they authorize. The [data page](https://mediaseer.ai/docs/data/) explains retention and deletion.

Follow [Retries and recovery](https://mediaseer.ai/docs/guides/retries/) after uncertain responses or quota refusals; do not blindly repeat creation requests.

The [llms.txt index](https://mediaseer.ai/llms.txt) links the public developer resources. The [compact docs index](https://mediaseer.ai/docs/llms.txt) links guides and operations; [full documentation](https://mediaseer.ai/docs/llms-full.txt) includes the schema pages too. The [API catalog](https://mediaseer.ai/.well-known/api-catalog) links the API and its public documentation.
