10 minutes

Set up workspaces

Decide when a team or environment needs its own workspace, create one, cap what it can spend, and know which settings it controls.

A workspace is a separate area inside your account with its own API keys, routing defaults, presets, guardrails, BYOK provider keys, observability, members, and budgets. Use workspaces to keep teams, projects, or stages like staging and production apart while sharing one bill.

Your existing setup already lives in the Default workspace, and every organization member is added to it automatically. Once teams or environments need different keys, budgets, or rules, give each its own workspace.

Be careful before deleting the Default workspace. It holds every key that isn’t assigned to another workspace, including keys made before workspaces existed, and deleting it disables those keys right away.

Check your understanding

You plan to delete the Default workspace now that every team has its own. What should you check first?

To create another one, open your workspaces, choose the workspace picker, and select Create Workspace. Give it a name and a description. Organization admins and account owners can create and delete workspaces.

Then set it up from the workspace sidebar:

  1. Members: add the people who should work here. Members can create their own keys in any workspace they belong to.
  2. API keys: create keys for the services that run here. Admins can create Workspace keys that aren’t tied to one person.
  3. Routing, Presets, and Guardrails: set the defaults this team should get.
  4. Settings: set the workspace’s budgets.

Some things stay account level and apply to every workspace: credits and billing, organization members and roles, management keys, privacy settings, and Activity and Logs (which you can filter by workspace).

Set workspace limits

All workspaces draw from the same credits, so a budget is how you stop one team or experiment from spending everyone’s balance.

A workspace budget is one shared limit for everyone and every API key in that workspace, not a limit for each person. When the workspace as a whole reaches it, every request in the workspace is blocked. To cap each member or key separately, use a guardrail budget instead.

To set one, open the workspace’s Settings page, go to Budgets, and add a dollar limit for any of four intervals:

  • Daily: resets every day at midnight UTC.
  • Weekly: resets every Monday at midnight UTC.
  • Monthly: resets on the first of each month at midnight UTC.
  • Lifetime: never resets, so it’s a hard cap on total spend.

You only need the intervals you care about, but the ones you set must get smaller as the interval gets shorter: lifetime, then monthly, then weekly, then daily. Once any budget is reached, requests in the workspace return 403 with a message naming the limit, until the period resets or an admin raises it. The Include BYOK spend toggle decides whether spend on your own provider keys counts too.

In an organization, only organization admins can create or change budgets. Members can see each budget and how much of it is used.

Check your understanding

A workspace has a monthly budget of $1,000. You want to add a daily budget of $1,500 so a busy day never blocks the team. What happens?

Apply it

Your support team wants to try a new model in staging without affecting production traffic. How would you set that up?

Takeaway

A workspace has its own keys, routing, presets, guardrails, BYOK keys, members, and budgets, while billing, privacy, and management keys stay account-wide. Create one per team or environment that needs different rules, cap its spend with budgets, and be careful before deleting the Default workspace.

Try it live

Optional

Create a test workspace, add yourself as a member, and create a key in it.