Use OAuth 2.1 when a person sits in a chat client, and an API key when a machine calls the server by itself. That rule covers most cases. The reason to get the edge cases right is money: a generate-scoped key on Mantinea can start up to 60 paid jobs a minute, and at 450 credits for a 30-second talking-actor ad that is a theoretical 27,000 credits, $270, in one minute if the key ends up somewhere it should not. A read-scoped key cannot spend at all. Mantinea's hosted MCP server at https://app.mantinea.com/mcp accepts both, and the choice decides who can spend, how fast and how you find out. Server facts are from Mantinea's docs; prices from its 24 November 2026 list.
The two options
| OAuth 2.1 | API key | |
|---|---|---|
| Represents | A signed-in person | Whatever holds the key |
| Setup | Add the server URL in the client and sign in through the browser | Create a key in the workspace and put it in a config, env var or secret manager |
| Scope | The person's workspace access | read, generate or admin |
| Best for | People in Claude, ChatGPT, Cursor or VS Code | Servers, CI jobs, scripts, headless agents |
| Rate limits | Not listed | 600 requests or 60 paid starts per minute, per key |
| Who started that render? | The person who signed in | "The key", unless each job has its own |
Both reach the same tools at the same prices: one credit is $0.01 in the app, the API and MCP.
What each mistake can cost
| Mistake | What happens | What limits the damage |
|---|---|---|
| Admin key pasted into a chat client | Anyone with that laptop can change workspace settings | Use OAuth or at most a generate key; never admin in a client |
| Generate key committed to a public repo | Someone else can start paid jobs, up to 60 a minute | Workspace caps (daily, weekly, monthly); revoke and rotate the key |
| One key shared by every automation | No audit trail by job; pipelines share one 60-a-minute bucket and throttle each other | One key per job, named after the job |
| Cron job running on a person's OAuth sign-in | The job breaks when that person's session or account changes | Give the job its own key |
| Reporting script on a generate key | A bug in a read-only job can spend | Read key; it cannot start paid work |
The workspace cap is the number that turns "theoretical $270 a minute" into a known ceiling. If an agency's normal day is about 4,000 credits, a daily cap of 5,000 lets a busy day through and caps the worst day, leak included, at $50. Confirm-before-generate adds a human click to each paid run for people who use chat clients.
Failed or canceled jobs are refunded automatically, but successful jobs started by a leaked key are real spend, which is why caps matter more than refunds here.
When OAuth is right
Pick OAuth when the client is an interactive app and the person has their own Mantinea login. Every action is attached to a named person, so "who started that render?" has an answer. Nobody copies a long-lived secret into a settings screen on a laptop that might be lost.
Seats are no reason to share a login. Mantinea has unlimited seats on every plan, so each person gets an account at no cost and signs in with OAuth. To connect: add the server URL as a custom connector in Claude or ChatGPT (or in an editor's MCP config), choose OAuth, sign in, approve. The step-by-step for Claude is in the hosted MCP setup guide.
When a key is right
Pick a key when no person is present at request time: a headless agent that plans and renders on a schedule, a CI step that renders product videos when a catalog item lands, your own app calling the server for its users, or a client that does not yet support OAuth for remote MCP servers.
Choose the scope by what the job does. An agent that makes ads needs generate. A script that reports on the asset library needs read. Admin belongs with whoever runs the workspace and stays out of automations.
Estimate mode works with either
Add ?mode=estimate to the URL and the session can plan and price but cannot spend. Auth does not change. For people, connect twice with OAuth: once to the estimate URL for planning and once to the live URL for production. For a new automation, run it against the estimate URL with its key first and check the quoted totals before pointing it at the live one. More in estimate-only MCP mode.
An agency setup, ten brands in one workspace
People (five): each has a Mantinea account and connects Claude or ChatGPT with OAuth to both the estimate and live URLs. Workspace caps and confirm-before-generate are on.
Automations (two): the weekly hook-refresh agent gets its own generate key, kept in the secret manager. The script that pulls the asset library into a client dashboard gets its own read key. Neither gets admin.
Hygiene:
- Keys named after the job ("weekly-hooks-prod"), never after a person
- Rotate when a contractor leaves or a repo goes public by accident
- Revoke the day an automation is retired
- Daily cap set a little above a normal day's spend
The short decision
A person in a chat app or editor uses OAuth 2.1. A machine on a schedule or in a pipeline uses a key with generate scope, and a machine that only reads uses a key with read scope. Anyone trying something new starts on the estimate URL. In every case the server identifies itself as autonomous, an older product name still used in developer surfaces, which is expected. Both routes are on every plan, including the 14-day trial with 1,000 credits and no card.