Service accounts
Give each app or team its own keys, models and limits inside one workspace.
A service account is a named caller inside a workspace: your production backend, a CI job, an agent. It has no email and no sign-in. It owns API keys, and it can have its own model list and limits, which apply on top of the workspace's.
Use one when a workspace runs more than one app or team and you want to:
- stop one app (a leaked key, a runaway job) without stopping the others;
- cap what one app can spend each day or month;
- keep an app to the models it needs;
- see what each app costs.
Keys that belong to no service account keep working exactly as before. They act as the whole workspace.
Create one
Owners and admins create service accounts in the console under Service accounts, then create keys inside them. A key belongs to one service account for its whole life: to move an app, create a new key and delete the old one.
What a service account changes
| Workspace key | Service account key | |
|---|---|---|
| Models | the workspace's | the workspace's, less any the account turned off |
| Limits | the workspace's | the workspace's and the account's: the lower one wins |
| Spend limits | the workspace's | the workspace's and the account's |
| Reading requests, logs and the balance | the whole workspace | the whole workspace |
A service account can only narrow what its workspace allows. It never gives a key more. The API is the same for both kinds of key; nothing in your requests changes.
At a limit
A request over a service account's limit fails the same way as one over the workspace's, and says which it was:
{
"error": "spend_limit_exceeded",
"message": "This service account's daily spend limit of $5 is used up. It resets at 2026-12-01T00:00:00Z; raise it in the console (Limits) to run sooner.",
"scope": "service_account",
"period": "day"
}See Limits for the other limits.
Archive, or turn off
- Archive a service account in the console when you are done with it. Its keys stop working at once; requests already running finish. Restore it to use the keys again.
- If invideo turns a service account off, its keys stop and only invideo can turn it on again.
GET /v1/balance shows the budgets of the key's service account next to the workspace's.