AI Video API for Agencies: One Workspace per Client
An AI video API for agencies: a workspace per client with its own balance, keys and team, roles, usage by key, a shared Studio, receipts and top-ups.
Updated 6 min read
An AI video API for agencies has to keep each client apart: their budget, their keys, their people and their files. On Frameport every client gets a workspace of its own, with its own prepaid balance, API keys, team, usage and webhooks, and any of its keys can call every model in the catalog: Seedance 2.5 for clips, Nano Banana Pro for images, Frameport Replace 1 for face swaps.
This guide sets up a workspace per client, gives each person the right role, follows spend per key, brings people who don't code in through the Studio, and covers receipts, top-ups and what white label can mean here.
How an AI video API for agencies keeps clients apart
Create a workspace from the workspace menu with New workspace: you become its owner, and it starts with a balance, keys, team and usage of its own. Make one per client, plus one for the agency's own tests. The same login can belong to several workspaces, and the menu switches between them.
| Part | What it means for the client |
|---|---|
| Balance | Their prepaid budget: a request it cannot cover is refused with 402 insufficient_balance, and nothing is charged |
| API keys | Up to 20 active, each one spending this balance only |
| Team | The people invited to this client, each with a role |
| Usage | Spend and jobs for this client alone |
| Webhooks | Endpoints told about this client's jobs, from the API and the Studio |
| Projects | Folders for this client's campaigns |
| Content filter | One setting for the whole workspace, on by default, changed only by an owner or an admin |
Each key draws only on the workspace where it was created, so a script holding one client's key can never touch another client's budget (keys and workspaces). Limits are counted per workspace too: a workspace may start 60 jobs a minute and keep 20 in flight, whichever of its keys sends them. One client's overnight batch never uses up another client's limits (rate limits).
Roles for an agency team
| Role | What it can do | Who usually gets it |
|---|---|---|
| Owner | Every action, and the only one who can delete the workspace | The account lead |
| Admin | All of it short of deleting the workspace: keys, payments, members, settings | A producer or the ops lead |
| Developer | Makes images and videos, creates and revokes keys, sets up webhooks, reads usage | Engineers, and anyone who works in the Studio |
| Billing | Adds funds, reads usage and the ledger | Finance, on your side or the client's |
Owners can hand out every role, and admins every role but owner. The billing role cannot create or revoke keys, which makes it the one to give a client's accounts team: they top up and read what was spent without touching anything that generates. Developer is the narrowest role that can generate, so it also suits a designer who works only in the Studio.
A shared balance and usage per key
Inside a workspace, make one key per app, environment or job, named for what it runs: site-renders, spring-campaign, staging. When a contractor leaves or a key leaks, revoking that one key under API keys cuts it off at once, and the others keep working. The Usage page shows spend and jobs by day, by model or by key, and Export CSV gives the same rows for a monthly report or for rebilling.
The API gives the same picture. GET /v1/generations lists a workspace's jobs with filters on status, model, type, source and dates, and each one carries what it cost (list). This script totals last month's spend for one client, model by model:
import os
from collections import defaultdict
from datetime import datetime, timedelta, timezone
import requests
API = "https://frameport.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"} # a key of the client's workspace
this_month = datetime.now(timezone.utc).replace(day=1, hour=0, minute=0, second=0, microsecond=0)
last_month = (this_month - timedelta(days=1)).replace(day=1)
params = {
"status": "succeeded",
"created_after": last_month.strftime("%Y-%m-%dT%H:%M:%SZ"),
"created_before": this_month.strftime("%Y-%m-%dT%H:%M:%SZ"),
"limit": 100,
}
spend, jobs = defaultdict(float), defaultdict(int)
while True:
page = requests.get(f"{API}/generations", headers=HEADERS, params=params).json()
if page.get("error"):
raise SystemExit(page["error"]["message"])
for gen in page["data"]:
spend[gen["model"]] += gen["cost_usd"] or 0
jobs[gen["model"]] += 1
if not page["has_more"]:
break
params["cursor"] = page["next_cursor"]
print(f"Spend for {last_month:%B %Y}")
for model, total in sorted(spend.items(), key=lambda item: -item[1]):
print(f"{model:24} {jobs[model]:6} jobs {total:12.2f} dollars")Webhooks belong to the workspace as well, so each client's endpoint hears only about that client's jobs, the Studio's included. The webhooks guide shows a receiver that checks each signature (delivery).
The Studio for people who don't code
Art directors, editors and account managers work in the Studio of the same workspace: they pick any model, see the price on the Generate button, and spend the same balance as the keys. Everything they make lands in the Library beside what the API made, and each output says where it came from, the Studio or the API with the key's name. Search, favorites and filters by source, kind and project make a client review quick.
Projects are the workspace's shared folders, one per campaign or deliverable; an archived project keeps its files. When a look is approved in the Studio, Copy as API call hands the exact request to the developers, so the production run matches what the client signed off. The guide to making videos without code walks a new team member through the Studio.
Receipts, top-ups and low-balance alerts
Each workspace pays for itself, with no plan or subscription to sign. You add funds from $10 at a time, and the only charge that ever repeats on its own is auto top-up, if you switch it on.
- Saved card: keep the card at a top-up, and the next one takes a click.
- Auto top-up: when the balance falls under a level you choose, the saved card is charged an amount you choose, up to a number of times a month that you set.
- Low-balance alert: an email when the balance drops under a level you set, so a client's campaign does not stall over a weekend.
- Receipts and ledger: every payment has a receipt, and the ledger lists each move of the balance: funds added, holds, charges on success, holds released, refunds.
A job that fails is never charged, so the ledger bills only what was delivered (failed jobs). Pricing lists every model's price.
White label: building so clients see only you
If white label means your clients never see the API behind your product, that comes from how you build it rather than from a setting:
- Call the API from your server. Keys carry spending power, so they stay out of browsers and mobile apps (keys on the server).
- Copy each output to your own storage. A signed link stops working after about an hour, and stored outputs eventually expire (keep what you need).
- Serve the files from your app, under your own domain and in your own player.
Built that way, your clients deal only with your product, while each of them still has a workspace on your side with its own budget and usage. The one API key guide explains how a single key reaches every model in the catalog.
Why a prepaid balance suits client work is weighed in prepaid vs subscription AI APIs. A key per client and per app is part of API key security, and designers who work in the Studio share the same balance as the API.
FAQ
Can an agency manage several clients from one account?
Yes. One login can belong to several workspaces, and the workspace menu switches between them. Each client's workspace keeps its own balance, keys, team, usage and webhooks.
Is there a free AI video API for agencies?
Workspaces, keys, members and quotes cost nothing, and a job that fails costs nothing either. Generations are paid from each workspace's prepaid balance, from $0.02 a second of video and $0.025 an image, with no subscription. You can create an account and add workspaces as clients arrive.
Can I white label an AI video API?
You can build a product in which your clients never see the API behind it: call it from your server, copy every output to your own storage, and serve it from your app under your domain. The keys stay on your server, so your clients deal only with your app.
How do I bill each client for what they used?
Give each client a workspace, or at least a key of their own, and export the Usage page as CSV at the end of the month, split by key, model or day. Receipts and the ledger back up every top-up and every charge.
Can a team use Veo 3.1 without a separate contract?
Veo 3.1 is in the catalog, so any key of a workspace calls it from the same balance as every other model, with the same roles, usage and receipts. Its prices are on its model page.