Skip to main content
Use Baseten through Corsair: one client, typed API calls. Create an API key in Baseten under Settings > API keys and connect it. A workspace key reaches every team; a team key only its own team. Things to know before you write:
  • Models and deployments. models.list gives model IDs; deployments.list the deployments of one model. deployments.production.* and deployments.development.* act on a model’s production or development deployment without its ID. Environments (environments.*) hold a deployment each; environments.promote rolls 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.updateAutoscaling with min_replica above 0 keeps replicas warm.
  • Inference. inference.chatCompletions, inference.responses and inference.messages call Model APIs on inference.baseten.co (OpenAI and Anthropic compatible) and are billed per token. inference.predict, inference.asyncPredict, inference.runRemote and the other deployed-model operations call your own model or chain at model-<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.list and apiKeys.list return names and metadata only. apiKeys.create returns the new key once.
  • Paging. List routes that page return a cursor or next_cursor; pass it back to get the next page.
What you get:
  • 324 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

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 models
Create or update a secret
See the full list on the API page.

What’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.