API
One URL for every model.
Endpoint
Any OpenAI or Anthropic client.
Every model answers here.
Plans, keys and endpoints count.
Each id routes to its provider.
GET /v1/models lists every id.
Remote MCP tools
Use your account key, or an API key with MCP tools scope.
Keys
Sign in or sign up to create and manage keys.
A new address or account makes a new account.
Mint one key per tool, with its scopes, models and daily or monthly cap.
The API does the same: POST /v1/keys mints, PATCH edits, DELETE revokes.
A key needs keys:write and never mints a key wider than itself.
Routes
Every route a key can call.
Call models
- GET
/v1/turns/{session}Read a turnturns:read - GET
/v1/turns/{session}/streamRe-attach to a turn’s streamturns:read - POST
/v1/chat/completionsCreate a chat completiongateway:invoke - POST
/v1/responsesCreate a responsegateway:invoke - POST
/v1/messagesCreate a messagegateway:invoke - POST
/v1/messages/count_tokensEstimate input tokensany key - GET
/v1/modelsList modelsany key - POST
/v1/embeddingsCreate embeddingsgateway:invoke - POST
/v1/decisionsCreate a decisiongateway:invoke
Manage keys
- GET
/v1/keysList caller keyskeys:read - POST
/v1/keysCreate a caller keykeys:write - GET
/v1/keys/whoamiGet the calling keyany key - PATCH
/v1/keys/{id}Update a caller keykeys:write - DELETE
/v1/keys/{id}Revoke a caller keykeys:write - POST
/v1/keys/{id}/rotateRotate a caller keykeys:write
Usage and spend
- GET
/v1/usageGet usage over a windowusage:read - GET
/v1/usage/requestsList usage per requestusage:read - GET
/v1/usage/dailyGet usage per UTC dayusage:read - GET
/v1/usage/breakdownGet usage bucketed and groupedusage:read - GET
/v1/usage/exportExport usage rowsusage:read - GET
/v1/creditsGet the credit balancebilling:read - GET
/v1/spendGet AI spend across appsusage:read - GET
/v1/usage/reportGet a usage reportusage:read
Custom endpoints
- GET
/v1/upstreamsList custom endpointsendpoints:read - POST
/v1/upstreamsAdd a custom endpointendpoints:write - PATCH
/v1/upstreams/{slug}Update a custom endpointendpoints:write - DELETE
/v1/upstreams/{slug}Remove a custom endpointendpoints:write - POST
/v1/upstreams/{slug}/probeRe-probe a custom endpointendpoints:write - GET
/v1/aliasesList @mention aliasesendpoints:read - PUT
/v1/aliases/{token}Set an @mention aliasendpoints:write - DELETE
/v1/aliases/{token}Delete an @mention aliasendpoints:write - GET
/docs/services/{service_id}.jsonGet a service’s OpenAPI documentno key
Teams
- GET
/v1/org/{id}/auditExport a team’s audit logteams:read - GET
/v1/teamsList teamsteams:read - POST
/v1/teamsCreate a teamteams:write - GET
/v1/teams/{team_id}Get a teamteams:read - PATCH
/v1/teams/{team_id}Update a teamteams:write - DELETE
/v1/teams/{team_id}Delete a teamteams:write - GET
/v1/teams/{team_id}/membersList team membersteams:read - PATCH
/v1/teams/{team_id}/members/{user_id}Change a member’s roleteams:write - DELETE
/v1/teams/{team_id}/members/{user_id}Remove a team memberteams:write - GET
/v1/teams/{team_id}/invitesList pending team invitesteams:read - POST
/v1/teams/{team_id}/invitesInvite someone to a teamteams:write - DELETE
/v1/teams/{team_id}/invites/{code}Revoke a team inviteteams:write - POST
/v1/teams/{team_id}/invites/{code}/resendResend a team inviteteams:write - POST
/v1/team_invites/{code}/acceptAccept a team inviteteams:write
Devices
- POST
/v1/devices/{device_id}/jobsRun a job on an agent computerdevices:write - GET
/v1/devices/{device_id}/jobs/{job_id}Read an agent computer jobdevices:read - GET
/v1/devices/{device_id}/terminals/{terminal_id}/streamStream an agent computer terminaldevices:read - GET
/v1/pair/{user_code}Preview an agent computer codeany key - POST
/v1/pair/{user_code}/approveApprove an agent computer codeany key - POST
/v1/pair/{user_code}/denyDecline an agent computer codeany key - GET
/v1/devicesList devicesdevices:read - GET
/v1/devices/{device_id}Get a devicedevices:read - PATCH
/v1/devices/{device_id}Rename a devicedevices:write - DELETE
/v1/devices/{device_id}Unlink a devicedevices:write
Runs
- GET
/v1/runsList cloud runsruns:read - POST
/v1/runsStart a cloud runruns:write - GET
/v1/runs/projectsFind the project for a repositoryruns:read - GET
/v1/runs/{run_id}Get a cloud runruns:read - GET
/v1/runs/{run_id}/eventsFollow a run’s eventsruns:read - POST
/v1/runs/{run_id}/cancelCancel a cloud runruns:write - POST
/v1/runs/{run_id}/messagesSteer a running cloud runruns:write
On your computer
Same models, no key needed.