- Models and deployments.
models.listgives model IDs;deployments.listthe deployments of one model.deployments.production.*anddeployments.development.*act on a model’s production or development deployment without its ID. Environments (environments.*) hold a deployment each;environments.promoterolls a deployment into one. - What bills. Activating, promoting, retrying or creating a deployment starts replicas that bill while they run, so those are
destructive, like every delete and deactivation.deployments.updateAutoscalingwithmin_replicaabove 0 keeps replicas warm. - Inference.
inference.chatCompletions,inference.responsesandinference.messagescall Model APIs oninference.baseten.co(OpenAI and Anthropic compatible) and are billed per token.inference.predict,inference.asyncPredict,inference.runRemoteand the other deployed-model operations call your own model or chain atmodel-<id>.api.baseten.co; pick the production environment (default), another environment, the development deployment or one deployment by ID. The plugin returns one JSON reply: streaming is not supported. - Secrets and keys.
secrets.listandapiKeys.listreturn names and metadata only.apiKeys.createreturns the new key once. - Paging. List routes that page return a
cursorornext_cursor; pass it back to get the next page.
- 324 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Baseten API key before the first call: More: API Key
pnpm corsair setup --plugin=baseten --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List modelsWhat’s next
API reference
Every
baseten.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.