Baseten MCP server
324 operations0 webhooks
Deploy and run models on Baseten: models, deployments, environments and promotions, autoscaling, replicas, chains, Model APIs inference, deployed model calls, secrets, API keys, teams, access control, training, Loops, sandboxes, volumes, Grid and Frontier Gateway (324 operations).
Try Baseten with your agent
Connect Baseten, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Baseten on my account, then run one read-only example and show me the result.
Baseten tools and triggers
Tools are what your agent can do in Baseten through Corsair's MCP server. Triggers are the Baseten events a routine can start from.
Deployments
- ActivateDestructive
Activates a deployment. Activates a deployment if not already activated. Starts replicas, which bill while they run.
deployments.activate
- CreateDestructive
Adds a new deployment to a model. (POST /v1/models/{model_id}/deployments)
deployments.create
- DeactivateDestructive
Deactivates a deployment. Deactivates a deployment if not already deactivated. Scales the deployment to zero: it stops serving until activated again.
deployments.deactivate
- DeleteDestructive
Deletes a model's deployment by ID. Deletes a model's deployment by ID and returns the tombstone of the deployment. Cannot be undone.
deployments.delete
- Development.ActivateDestructive
Activates a development deployment. Activates a development deployment if not already activated. Starts replicas, which bill while they run.
deployments.development.activate
- Development.DeactivateDestructive
Deactivates a development deployment. Deactivates a development deployment if not already deactivated. Scales the development deployment to zero: it stops serving until activated again.
deployments.development.deactivate
- Development.GetRead-only
Gets a model's development deployment. Gets a model's development deployment and returns the deployment.
deployments.development.get
- Development.PromoteDestructive
Promotes a development deployment to production. Creates a new production deployment from the development deployment and returns the deployment that is building.
deployments.development.promote
- Development.RetryDestructive
Retries a failed development deployment. Retries a failed development deployment and returns the retry status and updated deployment.
deployments.development.retry
- Development.Update AutoscalingWrite
Updates a development deployment's autoscaling settings. Updates a development deployment's autoscaling settings and returns the update status.
deployments.development.updateAutoscaling
- GetRead-only
Gets a model's deployment by ID. Gets a model's deployment by ID and returns the deployment.
deployments.get
- Get ConfigRead-only
Gets a deployment's config. Returns the deployment's config. output_format query param picks the shape: 'raw' (config.yaml text), 'parsed' (dict with defaults), or 'both' (default).
deployments.getConfig
- Get Download UrlRead-only
Gets a presigned download URL for a deployment's truss. Gets a presigned URL to download the truss tar file for a deployment.
deployments.getDownloadUrl
- Get Hot LoadRead-only
Gets a deployment's RL weight-sync status. Lists each replica's lifecycle status and RL weight-sync state, with the revision of the deployment's newest target. A replica is done with a target when its hotload_stage is done and its revision equals the deployment's revision. loading_state is null for a replica that has not reported a state.
deployments.getHotLoad
- Get LogsRead-only
Gets the logs for a model deployment. Gets all the logs for a model deployment in the given time range, which defaults to the last 30 minutes. A failed or older deployment may only have logs from before that window; pass start_epoch_millis to widen it back to the build/deploy time.
deployments.getLogs
- Get MetricsRead-only
Gets the metrics for a model deployment. Gets the metrics for a model deployment in the given time range.
deployments.getMetrics
- Get Patch StateRead-only
Gets a development deployment's patch state. Returns the patch point the deployment is recorded as running and the latest staged-but-unsynced point, if any. The watch client computes its next patch off the pending point when present, else the running point.
deployments.getPatchState
- ListRead-only
Gets all deployments of a model. (GET /v1/models/{model_id}/deployments)
deployments.list
- Production.ActivateDestructive
Activates a production deployment. Activates a production deployment if not already activated. Starts replicas, which bill while they run.
deployments.production.activate
- Production.DeactivateDestructive
Deactivates a production deployment. Deactivates a production deployment if not already deactivated. Scales the production deployment to zero: it stops serving until activated again.
deployments.production.deactivate
- Production.GetRead-only
Gets a model's production deployment. Gets a model's production deployment and returns the deployment.
deployments.production.get
- Production.RetryDestructive
Retries a failed production deployment. Retries a failed production deployment and returns the retry status and updated deployment.
deployments.production.retry
- Production.Update AutoscalingWrite
Updates a production deployment's autoscaling settings. Updates a production deployment's autoscaling settings and returns the update status.
deployments.production.updateAutoscaling
- PromoteDestructive
Promotes a deployment to production. Promotes an existing deployment to production and returns the same deployment.
deployments.promote
- Replicas.GetRead-only
Gets a replica in a deployment. Returns lifecycle information without metrics, including for terminated replicas. Returns 404 if the replica does not exist in the specified deployment. Returns 400 if multiple replicas match the replica ID.
deployments.replicas.get
- Replicas.ListRead-only
Lists replicas for a deployment. Includes terminated replicas and lifecycle information without metrics. Replicas are ordered by creation time, oldest first, with replica ID as a tie-breaker. For subsequent pages, pass pagination.cursor as cursor with unchanged filters. Cursors expire after one hour.
deployments.replicas.list
- Replicas.TerminateDestructive
Terminates a replica in a deployment. Terminates a deployment replica and returns the termination status. Returns 404 if no replica matches the replica ID. Returns 400 without requesting termination if multiple replicas match the replica ID. Cannot be undone.
deployments.replicas.terminate
- RetryDestructive
Retries a failed deployment. Retries a failed deployment and returns the retry status and updated deployment.
deployments.retry
- Set Hot LoadWrite
Sets the snapshot a deployment's replicas hot-load. Stores the request as the deployment's RL weight-sync target; every replica loads it, and the newest request wins. Returns 400 if the body is not a JSON object of at most 16384 bytes as compact JSON, or has an invalid identity or incremental_snapshot_metadata.
deployments.setHotLoad
- Sign Ssh CertificateDestructive
Signs an SSH certificate for an inference model. Signs a short-lived SSH certificate granting access to a running inference model pod. Returns the signed SSH certificate, a JWT token for SSH proxy authentication, the proxy address to connect through, and the certificate expiry time.
deployments.signSshCertificate
- Stage PatchWrite
Stages a patch against a development deployment. Persists a patch durably without applying it; call the sync endpoint to apply staged patches to the running deployment. The target must be a development deployment (its archive created with is_development set to true); patching any other deployment is rejected.
deployments.stagePatch
- Startups.Get SummaryRead-only
Gets the startup summary for a model deployment. Gets the distribution of replica startup durations, in total and per phase, in the given time range.
deployments.startups.getSummary
- Startups.ListRead-only
Lists the startups of a model deployment. Lists replica startups in the given time range, newest first by default. Pass the cursor from a response to fetch the next page.
deployments.startups.list
- Sync PatchesDestructive
Syncs staged patches to a development deployment. Applies any staged patches to the running deployment. A 2xx response means the sync reached a verdict: in sync, or a full push is required (needs_full_deploy_reason). A 503 means the sync was not attempted or failed recoverably and should be retried; any other error is terminal.
deployments.syncPatches
- UpdateWrite
Updates a model's deployment by ID. Updates the mutable fields of a deployment and returns the updated deployment.
deployments.update
- Update AutoscalingWrite
Updates a deployment's autoscaling settings. Updates a deployment's autoscaling settings and returns the update status.
deployments.updateAutoscaling
- Update BackpressureWrite
Updates a deployment's request backpressure settings.
deployments.updateBackpressure
Sandboxes
- CreateDestructive
Create a sandbox. Create a sandbox with an optional client-provided name, generated by the server when omitted. The request waits briefly for deployment, then returns the created resource. Deployment may continue after the response; inspect status to determine readiness.
sandboxes.create
- Create Access TokenDestructive
Creates a sandbox access token. Exchanges your Baseten credentials for a short-lived token that authenticates against the sandbox API. The token carries every team you belong to. Tokens expire after two hours, or when the workload identity access token that requested them expires, whichever is sooner.
sandboxes.createAccessToken
- DeleteDestructive
Delete a sandbox. Permanently delete the sandbox and its local data asynchronously. The returned resource has status DELETING. Cannot be undone.
sandboxes.delete
- GetRead-only
Get a sandbox. Return the sandbox configuration and status.
sandboxes.get
- Get ConfigurationRead-only
Get sandbox configuration. Return available Carbon-compatible sandbox regions. Configuration is the same for every team, so no team is selected. Only enabled regions supporting Carbon are returned. This describes regional capability, not the runtime selected for a particular team or sandbox.
sandboxes.getConfiguration
- Get LogsRead-only
Get sandbox logs. Returns sandbox runtime logs, newest first, within the half-open range [start_time, end_time). Ranges are limited to 7 days. Follow next_cursor until it is null to retrieve all pages, keeping the same range and limit. Logs before sandbox creation are excluded. Unavailable telemetry returns an error.
sandboxes.getLogs
- Get MetricsRead-only
Get sandbox metrics. Returns every interval with labeled request counts, CPU cores, and RSS memory bytes. CURRENT returns one snapshot at now, with request counts over the preceding minute and latest gauges. SUMMARY returns one value set over the window.
sandboxes.getMetrics
- Images.CleanupDestructive
Clean up unused images. Remove unused sandbox image versions. Versions referenced by active deployments are preserved. One call runs for a limited time; when has_more is true, only part of the unused versions were removed and the call should be repeated.
sandboxes.images.cleanup
- Images.DeleteDestructive
Delete a sandbox image. Delete the image repository and all its tags. Reject deletion if any version is referenced by an active deployment. Return the deleted image. Cannot be undone.
sandboxes.images.delete
- Images.GetRead-only
Get a sandbox image. Return the repository summary and processing status. Use the tag listing endpoint for image versions.
sandboxes.images.get
- Images.Get Build LogsRead-only
Get image build logs. Return one page of logs from the latest recorded build of this image, including failed builds, newest first. Logs may take a short time to appear. Defaults to the last 24 hours; the requested time range must not exceed 7 days. Keep start_time and end_time fixed when paging with offset.
sandboxes.images.getBuildLogs
- Images.ListRead-only
List sandbox images. Return one cursor-paginated page of image repository summaries. Tags are listed separately. Pages can be empty when non-sandbox repositories are excluded; follow pagination.cursor while pagination.has_more is true. Prefix search forces ascending name order.
sandboxes.images.list
- Images.List LibraryRead-only
List built-in sandbox images. Return the built-in sandbox images, the same for every team, so no team is selected. Use the image field directly as the image of a sandbox, without building or pushing it. Hidden and upcoming images are excluded.
sandboxes.images.listLibrary
- Images.PushDestructive
Push a sandbox image. With image supplied, import the registry image asynchronously. Otherwise return an upload URL for a ZIP source archive containing its Dockerfile and build context. The uploaded ZIP archive must not exceed 5 GB. Processing starts after upload. No sandbox is created.
sandboxes.images.push
- Images.Tags.DeleteDestructive
Delete an image tag. Delete a specific image version. Reject deletion if the version is referenced by an active deployment. Return the updated repository summary. Use the tag listing endpoint for remaining image versions. Cannot be undone.
sandboxes.images.tags.delete
- Images.Tags.ListRead-only
List image tags. Return one cursor-paginated page of image versions.
sandboxes.images.tags.list
- ListRead-only
List sandboxes. Return a cursor-paginated page of sandboxes. Terminated sandboxes are hidden by default.
sandboxes.list
- Previews.CreateWrite
Create a sandbox preview. Expose a port of the sandbox on an HTTPS URL. A public preview is reachable by anyone with the URL.
sandboxes.previews.create
- Previews.DeleteDestructive
Delete a sandbox preview. Delete the preview and revoke its tokens. The URL stops serving immediately. Return the deleted preview, with status TERMINATED, or DELETING while a preview with many tokens finishes in the background. Cannot be undone.
sandboxes.previews.delete
- Previews.GetRead-only
Get a sandbox preview. Return the preview configuration, URL and status.
sandboxes.previews.get
- Previews.ListRead-only
List sandbox previews. Return the previews of the sandbox in the paginated list format. cursor and limit are accepted but not applied yet; all previews fit on one page, so has_more is false. Follow pagination.cursor while has_more is true to stay compatible when they are applied.
sandboxes.previews.list
- Previews.Tokens.CreateDestructive
Create a preview token. Create a token granting access to a private preview until expires_at. Append it to the preview URL as ?preview_token=<token>.
sandboxes.previews.tokens.create
- Previews.Tokens.DeleteDestructive
Delete a preview token. Revoke the token. Requests using it are rejected immediately. Cannot be undone.
sandboxes.previews.tokens.delete
- Previews.Tokens.ListRead-only
List preview tokens. Return the tokens of a private preview in the paginated list format, including expired tokens until they are removed. cursor and limit are accepted but not applied yet; all tokens fit on one page, so has_more is false.
sandboxes.previews.tokens.list
- Previews.UpdateWrite
Update a sandbox preview. Partially update the preview. Omitted fields remain unchanged; supplied header maps replace their previous values. The URL does not change. Setting ttl or expires_at replaces any previous expiration and restarts it from now. The name and port are immutable; supplying either returns 400.
sandboxes.previews.update
- UpdateWrite
Update a sandbox. Partially update configuration. Omitted fields remain unchanged; supplied arrays and maps replace their previous values. Structured objects update only supplied fields. The name, memory, region, image, ports, filesystem, and volumes are immutable after creation.
sandboxes.update
- Volumes.CreateWrite
Create a volume. Create a persistent volume that outlives the sandboxes it is mounted in. Mount it at sandbox creation with the volumes field; a volume is mounted in at most one sandbox at a time and must be in the same region. The name is generated when omitted. Volume size and count are limited by the team's plan.
sandboxes.volumes.create
- Volumes.DeleteDestructive
Delete a volume. Permanently delete the volume and its data asynchronously. The returned resource has status DELETING. A volume mounted in a sandbox cannot be deleted (409); delete the sandbox first. Repeating the call while it is deleting returns the same resource. Cannot be undone.
sandboxes.volumes.delete
- Volumes.GetRead-only
Get a volume. Return the volume, its status and the sandbox it is mounted in, if any.
sandboxes.volumes.get
- Volumes.ListRead-only
List volumes. Return a cursor-paginated page of persistent volumes, newest first. Keep q and status unchanged when following a cursor.
sandboxes.volumes.list
- Volumes.UpdateWrite
Update a volume. Grow the volume or replace its labels. size can only increase. The name and region are immutable; supplying either returns 400.
sandboxes.volumes.update
Loops
- Checkpoints.DeleteDestructive
Deletes a Loops checkpoint. Deletes a Loops checkpoint by ID and returns its tombstone. The checkpoint disappears from listings and can't be loaded, sampled, or deployed. Deletion is permanent, and storage for some checkpoints is reclaimed later. Cannot be undone.
loops.checkpoints.delete
- Checkpoints.DeployDestructive
Deploys Loops checkpoints. Creates an inference deployment from one or more Loops sampler checkpoints. Confirm the user intends to create billable resources before calling it. This operation is not idempotent; repeating the request can create another deployment.
loops.checkpoints.deploy
- Checkpoints.Get FilesRead-only
Gets Loops checkpoint files. Gets presigned URLs for the files under a Loops checkpoint. Returns a paginated list.
loops.checkpoints.getFiles
- Checkpoints.Get SourceRead-only
Gets where a Loops checkpoint's files come from. Reports how to fetch a checkpoint's files: s3 when the files endpoint serves presigned URLs for it, or volume with the ref to pull. Clients that download checkpoints should ask here first.
loops.checkpoints.getSource
- Checkpoints.ListRead-only
Lists Loops checkpoints. Lists Loops checkpoints filtered by run id, base model, or bt:// URI. Provide exactly one filter.
loops.checkpoints.list
- Checkpoints.Set TtlDestructive
Sets a Loops checkpoint's TTL. Sets when a Loops checkpoint expires, counted from now, or removes its TTL so it's kept until you delete it. An expired checkpoint is deleted within 24 hours. If it's in use when it expires, it's deleted within 24 hours after it stops being used.
loops.checkpoints.setTtl
- Checkpoints.ValidateRead-only
Validates a Loops checkpoint bt:// URI. Returns whether the caller can manage and use this checkpoint.
loops.checkpoints.validate
- Deployments.DeactivateDestructive
Deactivates a Loops deployment. Shuts down a Loops deployment by ID. Saved checkpoints remain accessible. Resolving the base model to a deployment ID is the caller's responsibility: list deployments and pick the active one.
loops.deployments.deactivate
- Deployments.GetRead-only
Gets a Loops deployment. Fetches a Loops deployment by ID, including its latest status.
loops.deployments.get
- Deployments.Get Debug Archive FilesRead-only
Gets Loops debug archive files. Gets presigned download URLs for a Loops deployment's debug archive.
loops.deployments.getDebugArchiveFiles
- Deployments.Get LogsRead-only
Gets logs for a Loops trainer deployment. Fetches logs from the trainer pods of a Loops deployment. Visible to anyone with training access to the deployment's team.
loops.deployments.getLogs
- Deployments.Get MetricsRead-only
Gets metrics for a Loops trainer deployment. Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint.
loops.deployments.getMetrics
- Deployments.ListRead-only
Lists Loops deployments. Lists Loops deployments. Defaults to the caller's own; pass ?scope=org to list every deployment in the caller's organization. Returns every deployment regardless of status; clients filter terminal states.
loops.deployments.list
- Get CapabilitiesRead-only
Gets Loops server capabilities. Returns the list of models supported by the Loops server, including each model's maximum context length and whether it supports vision-language inputs. Each entry carries an 'enabled' flag saying whether this workspace can run it now, and 'enablement_details' explaining why when it cannot.
loops.getCapabilities
- Runs.CreateDestructive
Creates a Loops run. Creates a Loops run with an associated sampler in the given session.
loops.runs.create
- Runs.DeactivateDestructive
Deactivates a Loops run. Shuts down a Loops run by ID, tearing down both the run and its paired sampler. Succeeds if the run is already inactive. Saved checkpoints remain accessible.
loops.runs.deactivate
- Runs.DeleteDestructive
Deletes a Loops run. Deletes a Loops run by ID, deactivating it first if it is active, and deletes its checkpoints. Checkpoints still in use, such as deployed ones, are kept and listed in the response; they stay usable until that use stops. Deletion is permanent, and storage for some checkpoints is reclaimed later. Cannot be undone.
loops.runs.delete
- Runs.GetRead-only
Gets a Loops run. Fetches a Loops run by ID.
loops.runs.get
- Runs.ListRead-only
Lists Loops runs. Lists Loops runs visible to the requesting user, optionally filtered by run id, base model, and/or session. Defaults to the caller's own runs; pass ?scope=org to list every run in the caller's organization.
loops.runs.list
- Samplers.CreateDestructive
Creates a Loops sampler. Creates a standalone Loops sampler not linked to a run.
loops.samplers.create
- Samplers.DeactivateDestructive
Deactivates a standalone Loops sampler. Shuts down a standalone Loops sampler by ID. Succeeds if it is already inactive. A sampler paired to a run always returns 409 with the run's ID, even if it is inactive.
loops.samplers.deactivate
- Samplers.GetRead-only
Gets a Loops sampler. Fetches a Loops sampler by ID.
loops.samplers.get
- Samplers.ListRead-only
Lists Loops samplers. Lists Loops samplers (paired and standalone), optionally filtered by session. Defaults to the caller's own; pass ?scope=org to list every sampler in the caller's organization.
loops.samplers.list
- Sessions.CreateDestructive
Creates a Loops session. Creates a Loops session scoped to the calling org.
loops.sessions.create
- Sessions.GetRead-only
Gets a Loops session. Fetches a Loops session by ID.
loops.sessions.get
- Trainers.CreateDestructive
Creates a Loops trainer. Creates a trainer-only Loops run in the given session, without a sampler. To sample from it, create a sampler with POST /v1/loops/samplers and pass this run's ID as run_id to pair the two. List and read the trainer through the /v1/loops/runs endpoints.
loops.trainers.create
- User Config.GetRead-only
Gets the caller's Loops user config. Returns the caller's Loops user config (per-user accelerator priorities). Null fields mean 'inherit the org-level allowlist'.
loops.userConfig.get
- User Config.UpdateWrite
Patches the caller's Loops user config. Updates the caller's Loops user config using JSON Merge Patch (RFC 7396) semantics per field: omit a field to leave it unchanged, send null to clear (inherit the org-level allowlist), or send a list to set the allowlist. Empty lists are rejected.
loops.userConfig.update
Grid
- Connections.CreateWrite
Creates a connection. Creates a connection from the team to an upstream provider.
grid.connections.create
- Connections.DeleteDestructive
Deletes a connection. Deletes the connection. The team secret it points at is left in place. Cannot be undone.
grid.connections.delete
- Connections.GetRead-only
Gets a connection. (GET /v1/grid/connections/{connection_id})
grid.connections.get
- Connections.ListRead-only
Lists connections. Lists connections, newest first: the team's with team_id, else those of every team where you can invoke routes.
grid.connections.list
- Connections.UpdateWrite
Updates a connection. Updates the connection's fields. The provider and owning team are immutable; point the connection at a new team secret to change its API key, or rotate the key itself by updating the secret.
grid.connections.update
- Create TokenDestructive
Creates a Grid access token. Exchanges your Baseten credentials for a short-lived token that authenticates against the Grid gateway as you, in the given team. Tokens expire after four hours and cannot be renewed; request a new one when needed. Routes keys cannot create tokens.
grid.createToken
- Machine Users.Api Keys.CreateDestructive
Creates an API key for a machine user. The machine user's other API keys stay active. Requires team admin for the machine user's team.
grid.machineUsers.apiKeys.create
- Machine Users.Api Keys.ListRead-only
Lists a machine user's API keys. Lists the machine user's active API keys, newest first. Requires team admin for the machine user's team.
grid.machineUsers.apiKeys.list
- Machine Users.Api Keys.RevokeDestructive
Revokes a machine user's API key. The machine user's other API keys stay active. Requires team admin for the machine user's team. Cannot be undone.
grid.machineUsers.apiKeys.revoke
- Machine Users.CreateWrite
Creates a machine user. Creates a team-owned identity for an application, with its own Grid budget. Set api_key to also create its first API key, which the response returns only once. Set the machine user's spend limit with the user settings endpoint, using its id as the user ID. Requires team admin.
grid.machineUsers.create
- Machine Users.DeleteDestructive
Deletes a machine user. Revokes the machine user's API keys and deletes it. Its usage history remains. Requires team admin for the machine user's team. Cannot be undone.
grid.machineUsers.delete
- Machine Users.GetRead-only
Gets a machine user. Requires team admin for the machine user's team.
grid.machineUsers.get
- Machine Users.ListRead-only
Lists machine users. Lists machine users, newest first: the team's with team_id, which requires team admin for it, else those of every team you administer.
grid.machineUsers.list
- Machine Users.UpdateWrite
Updates a machine user. Changes only the fields in the request. Requires team admin for the machine user's team.
grid.machineUsers.update
- Route Classifiers.GetRead-only
Gets a route classifier available for intelligent routes.
grid.routeClassifiers.get
- Route Classifiers.ListRead-only
Lists route classifiers available for intelligent routes. Returns Baseten-managed route classifiers available to your organization, ordered by identifier. Route classifiers cannot be created or modified through this API.
grid.routeClassifiers.list
- Routes.CreateWrite
Creates a route. Creates and derives a name for the provided route configuration. CONNECTION targets reference a connection owned by the route's team; create the connection first. INTELLIGENT targets reference a route classifier from GET /v1/grid/route_classifiers.
grid.routes.create
- Routes.DeleteDestructive
Deletes a route. Cannot be undone. (DELETE /v1/grid/routes/{route_id})
grid.routes.delete
- Routes.GetRead-only
Gets a route. (GET /v1/grid/routes/{route_id})
grid.routes.get
- Routes.Get UsageRead-only
Gets daily Grid usage and estimated costs. Buckets are UTC days, and days with no usage are included. Organization admins see all Grid usage in the organization. Team admins see usage in teams they manage.
grid.routes.getUsage
- Routes.ListRead-only
Lists routes. Lists routes you can invoke, newest first, optionally filtered by exact name. Without team_id, routes from every team where you can invoke routes. With for_harnesses, exactly one team: team_id, else the team you belong to; when you belong to several and name none, the request fails with a 400.
grid.routes.list
- Routes.UpdateWrite
Updates a route. The route name, target, and owning team are immutable.
grid.routes.update
- Team Settings.GetRead-only
Gets a team's Grid settings by team ID or your only team. Returns the settings that apply to the team, including the default models for each coding harness and the team's spend limits. Any member who can invoke the team's routes can read them. The team comes from team_id instead of the path.
grid.teamSettings.get
- Team Settings.UpdateWrite
Updates a team's Grid settings by team ID or your only team. Changes only the fields in the request, all or nothing. Requires team admin, and organization admin to change the team-wide spend limit. The team comes from team_id instead of the path. Omit it to use the team you belong to; when you belong to several, the request fails with a 400.
grid.teamSettings.update
- Team Settings.Users.GetRead-only
Gets a user's Grid settings by team ID or your only team. Returns the user's spend limit for Baseten Grid in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
grid.teamSettings.users.get
- Team Settings.Users.ListRead-only
Lists members' Grid settings. Returns each member's settings in each team, including organization admins and Grid service accounts, one row per team membership. With team_id, one team, which requires team admin for it or organization admin; without it, every team you administer, which is none for members.
grid.teamSettings.users.list
- Team Settings.Users.UpdateWrite
Updates a user's Grid settings by team ID or your only team. Changes only the fields in the request. Once the user's metered spend in the team in a month reaches the spend limit, requests with Routes keys they created in the team are rejected until the limit is raised or the next month starts.
grid.teamSettings.users.update
Training
- Get CapacityRead-only
Gets training GPU capacity. Returns on-demand and spot GPU quotas and current usage for the teams you can view, plus organization-wide totals when you have organization-level access.
training.getCapacity
- Jobs.CreateDestructive
Creates a training job. Creates a training job with the specified configuration.
training.jobs.create
- Jobs.DeleteDestructive
Deletes a training job. Deletes a training job. Stops it first if still running. Cannot be undone.
training.jobs.delete
- Jobs.GetRead-only
Gets a training job. Gets the details of an existing training job.
training.jobs.get
- Jobs.Get Auth CodesRead-only
Gets auth codes for a training job. Gets authentication codes for all nodes of a training job's interactive sessions.
training.jobs.getAuthCodes
- Jobs.Get Checkpoint FilesRead-only
Gets training job checkpoint files. Gets presigned URLs for all checkpoint files for a training job.
training.jobs.getCheckpointFiles
- Jobs.Get Download UrlsRead-only
Gets presigned URLs for a training job's artifacts. Returns presigned S3 URLs for the artifacts uploaded by a training job.
training.jobs.getDownloadUrls
- Jobs.Get LogsRead-only
Gets the logs for a training job. Gets the logs for a training job with the provided filters.
training.jobs.getLogs
- Jobs.Get MetricsRead-only
Gets the metrics for a training job. (GET /v1/training_projects/{training_project_id}/jobs/{training_job_id}/metrics)
training.jobs.getMetrics
- Jobs.Get Queue ContextRead-only
Reconstructs queue context for a training job. Returns the (org, gpu_type) capacity pool the job was gated by, jobs that were holding GPU capacity in that pool when this job was submitted, and every TrainingJobStatus event in [submitted_at, released_at] for those jobs, useful for understanding why a job sat in PENDING.
training.jobs.getQueueContext
- Jobs.ListRead-only
Lists training jobs. Lists the training project's jobs, newest first.
training.jobs.list
- Jobs.List CheckpointsRead-only
Gets training job checkpoints. Gets the checkpoints for a training job.
training.jobs.listCheckpoints
- Jobs.RecreateDestructive
Recreates a training job. Creates a new training job with the same configuration as an existing training job.
training.jobs.recreate
- Jobs.SearchRead-only
Searches training jobs. Searches training jobs for the organization. Send the same filters with every page.
training.jobs.search
- Jobs.Set Checkpoint TtlDestructive
Sets a training job checkpoint's TTL. Sets when a training job checkpoint expires, counted from now, or removes its TTL so it never expires. Once a job stops, a TTL can be set only after its checkpoint upload is confirmed as finished, which usually takes a few minutes.
training.jobs.setCheckpointTtl
- Jobs.Sign Ssh CertificateDestructive
Signs an SSH certificate for a training job. Signs a short-lived SSH certificate granting access to a specific training job pod. Returns the signed SSH certificate, a JWT token for SSH proxy authentication, the proxy address to connect through, and the certificate expiry time.
training.jobs.signSshCertificate
- Jobs.StopDestructive
Stops a training job. (POST /v1/training_projects/{training_project_id}/jobs/{training_job_id}/stop)
training.jobs.stop
- Jobs.UpdateWrite
Updates a training job. Updates mutable fields on a PENDING training job: the queue priority (higher priorities are dequeued first) and the availability model (standard or spot capacity). Changes take effect on the next queue evaluation, which is triggered immediately.
training.jobs.update
- Jobs.Update Interactive SessionWrite
Patches an interactive session. Updates specific fields on a training job's interactive session. Only provided (non-null) fields are updated.
training.jobs.updateInteractiveSession
- Projects.DeleteDestructive
Deletes a training project. Deletes a training project and all associated training jobs. Cannot be undone.
training.projects.delete
- Projects.GetRead-only
Gets a training project. Gets the details of an existing training project.
training.projects.get
- Projects.Get Cache SummaryRead-only
Gets training project cache summary. Gets the cache summary for the most recent training job in the project.
training.projects.getCacheSummary
- Projects.ListRead-only
Lists training projects. Lists the organization's training projects, newest first.
training.projects.list
- Projects.UpsertWrite
Upserts a training project. Upserts a training project with the specified metadata.
training.projects.upsert
- Set CapacityDestructive
Sets a team's training GPU quota. Sets a team's GPU quota for a given type. It counts the team's on-demand jobs, plus its spot jobs when the organization has no separate on-demand quota, and on-demand jobs can borrow past it from the organization's shared pool when one exists.
training.setCapacity
Access
- Assignments.CreateDestructive
Assigns a role. Gives a user, service account, or directory group a role, for the organization or in a team. Needs access.member.write there, or access.group.write for a directory group. A service account's roles also need service_account.write where the account belongs.
access.assignments.create
- Assignments.DeleteDestructive
Removes a role assignment. Needs access.member.delete where the role applies, or access.group.write for a directory group. A service account's roles also need service_account.write where the account belongs. Cannot be undone.
access.assignments.delete
- Assignments.GetRead-only
Gets a role assignment. Needs access.member.read where the role applies.
access.assignments.get
- Assignments.ListRead-only
Lists role assignments. Needs access.member.read for the organization, or in the team you pass as team_id. Roles held through organization and team membership aren't listed.
access.assignments.list
- CheckRead-only
Checks whether you hold permissions. Answers each check as fine-grained authorization decides it. Users and service accounts can call it, with the same access as GET /v1/users/me/access. Returns 503 while authorization is unavailable.
access.check
- Identity Providers.CreateDestructive
Adds an identity provider. Adds a predefined or custom identity provider to the organization. For a predefined provider with a per-customer issuer, the issuer must match the provider's format. A custom provider needs a name and an issuer that no predefined provider uses.
access.identityProviders.create
- Identity Providers.DeleteDestructive
Deletes an identity provider. Removes the identity provider from the organization. Returns 409 while a trust rule uses it. Only organization admins can call this endpoint. Cannot be undone.
access.identityProviders.delete
- Identity Providers.GetRead-only
Gets an identity provider. (GET /v1/access/identity_providers/{identity_provider_id})
access.identityProviders.get
- Identity Providers.ListRead-only
Lists identity providers. Lists the organization's identity providers. Organization and team admins can list them.
access.identityProviders.list
- Identity Providers.List PredefinedRead-only
Lists predefined identity providers. Lists the identity providers Baseten supports, with the issuer format for those where each account, tenant, or cluster has its own issuer.
access.identityProviders.listPredefined
- Identity Providers.UpdateDestructive
Updates an identity provider. Updates the fields you send. The provider and issuer can't change; a custom provider's jwks can, and new keys are read before they're saved. Only organization admins can call this endpoint.
access.identityProviders.update
- Identity Providers.VerifyRead-only
Checks an identity provider before adding it. Runs the checks that adding the identity provider runs, without adding it: the issuer's format, that the organization doesn't have it yet, and, for a provider with a per-customer issuer or a custom provider, that its signing keys can be read.
access.identityProviders.verify
- Permissions.ListRead-only
Lists permissions and their categories. Every caller gets the same permissions and categories; only available depends on your organization. Users and service accounts can call it, with the same access as GET /v1/users/me/access.
access.permissions.list
- Roles.CreateWrite
Creates a custom role. Needs access.role.write for the organization, or in the role's team while your organization lets team admins manage roles. Unknown, reserved, or unavailable permissions return 400 with the reason in the error details.
access.roles.create
- Roles.DeleteDestructive
Deletes a custom role. Needs access.role.delete where the role applies; for a team's role, for the organization unless it lets team admins manage roles. While any assignment uses the role, it returns 409 with reason ROLE_IN_USE. Built-in roles return 400. Cannot be undone.
access.roles.delete
- Roles.GetRead-only
Gets a role. Needs access.role.read, or access.role.write in the role's team. Pass team_id to get the role as that team's role list shows it: access.role.write in that team is then enough, and a role the list leaves out returns 404.
access.roles.get
- Roles.ListRead-only
Lists roles. Lists built-in roles and your organization's custom roles, sorted by name. Needs access.role.read, or access.role.write in the team you pass as team_id.
access.roles.list
- Roles.UpdateDestructive
Updates a custom role. Changes the fields you send. permissions and include_role_ids add to the role's lists, and the _to_delete fields remove from them. Needs access.role.write where the role applies; for a team's role, for the organization unless it lets team admins manage roles. Built-in roles return 400.
access.roles.update
- Trust Rules.CreateDestructive
Creates a trust rule. Creates a rule that lets tokens from an identity provider act as a service account. Organization admins can create rules for any service account, team admins for their own team's. An organization API key manager key can't target organization accounts.
access.trustRules.create
- Trust Rules.DeleteDestructive
Deletes a trust rule. New exchanges through the rule fail at once; tokens already issued keep working until they expire. Cannot be undone.
access.trustRules.delete
- Trust Rules.GetRead-only
Gets a trust rule. (GET /v1/access/trust_rules/{trust_rule_id})
access.trustRules.get
- Trust Rules.ListRead-only
Lists trust rules. Lists the trust rules you administer: every rule for an organization admin, and rules for your teams' service accounts for a team admin.
access.trustRules.list
- Trust Rules.UpdateDestructive
Updates a trust rule. Updates the fields you send. Changes apply to new exchanges only. The identity provider can't change.
access.trustRules.update
- Trust Rules.VerifyRead-only
Checks a trust rule's condition and audience. Runs the checks that creating or updating a trust rule runs on its condition and audience, without saving anything: that the condition compiles and pins the claims the identity provider requires. A failed check returns 200 with valid false and the reason.
access.trustRules.verify
Environments
- ActivateDestructive
Activates a deployment associated with an environment. Activates a deployment associated with an environment if not already activated. Starts replicas, which bill while they run.
environments.activate
- Cancel PromotionDestructive
Cancels a promotion to an environment. Cancels an ongoing promotion to an environment and returns the cancellation status.
environments.cancelPromotion
- CreateWrite
Creates an environment. Creates an environment for the specified model and returns the environment.
environments.create
- DeactivateDestructive
Deactivates a deployment associated with an environment. Deactivates a deployment associated with an environment if not already deactivated. Scales the environment's deployment to zero: it stops serving until activated again.
environments.deactivate
- DeleteDestructive
Deletes an environment. Deletes an environment and returns its tombstone. Any in-progress promotion to the environment is canceled, and the deployment currently serving the environment is scaled down to zero replicas rather than deleted. The production environment cannot be deleted. Cannot be undone.
environments.delete
- Force Cancel PromotionDestructive
Force cancels a rolling promotion. Immediately cancels an in-progress rolling promotion and triggers rollback to the previous version.
environments.forceCancelPromotion
- Force Roll Forward PromotionDestructive
Force rolls forward a rolling promotion. Immediately completes the rolling promotion, shifting all traffic to the new version. This works even if the promotion is in the process of rolling back.
environments.forceRollForwardPromotion
- GetRead-only
Gets an environment's details. Gets an environment's details and returns the environment.
environments.get
- Get LogsRead-only
Gets the logs for a model environment. Gets logs across all deployments that were active on the environment in the given time range, which defaults to the last 30 minutes. Pass start_epoch_millis to widen the window back to an earlier deployment's build/deploy time.
environments.getLogs
- Get MetricsRead-only
Gets the metrics for a model environment. Gets metrics aggregated across every deployment that was active on the environment in the given time range. In series mode the window is split at each promotion so that every point reflects the deployment(s) serving the environment at that time.
environments.getMetrics
- ListRead-only
Gets all environments. Gets all environments for a given model.
environments.list
- Pause PromotionDestructive
Pauses a rolling promotion. Pauses an in-progress rolling promotion after the current step completes. No further scaling changes are made until resumed.
environments.pausePromotion
- PromoteDestructive
Promotes a deployment to an environment. Promotes an existing deployment to an environment and returns the promoted deployment.
environments.promote
- Replicas.GetRead-only
Gets a replica in an environment. Searches deployments active in the environment during the preceding hour. Includes retained terminated replicas. Returns 404 if the replica is outside this scope. Returns 400 if multiple replicas match the replica ID.
environments.replicas.get
- Replicas.ListRead-only
Lists replicas for an environment. Includes retained terminated replicas from deployments active in the preceding hour. Orders replicas oldest first, with replica ID breaking ties. Pass pagination.cursor with unchanged filters for subsequent pages. Cursors pin deployment membership and expire after one hour.
environments.replicas.list
- Replicas.TerminateDestructive
Terminates a replica in an environment. Requests replica termination in the environment's current deployment. Returns 404 if the environment has no current deployment or no replica matches the replica ID. Returns 400 without requesting termination if multiple replicas in the current deployment match the replica ID. Cannot be undone.
environments.replicas.terminate
- Resume PromotionDestructive
Resumes a paused rolling promotion. Resumes a paused rolling promotion, continuing from where it was paused.
environments.resumePromotion
- Startups.Get SummaryRead-only
Gets the startup summary for a model environment. Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range.
environments.startups.getSummary
- Startups.ListRead-only
Lists the startups of a model environment. Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the cursor from a response to fetch the next page.
environments.startups.list
- UpdateWrite
Updates an environment's settings. Asynchronously updates an environment's settings. Poll the GET endpoint for the applied state.
environments.update
Teams
- Create Api KeyDestructive
Creates a team API key. Creates a team API key with the provided name and type. The API key is returned in the response. Returns the new key's secret once.
teams.createApiKey
- Environment Groups.GetRead-only
Gets an environment group by name. Gets a single environment group by name. The team-scoped path targets the team in the path; the top-level path targets the caller's organization default team.
teams.environmentGroups.get
- Environment Groups.ListRead-only
Lists environment groups. Lists environment groups. The team-scoped path targets the team in the path; the top-level path targets the caller's organization default team.
teams.environmentGroups.list
- Environment Groups.UpdateDestructive
Updates an environment group's restriction settings. Sets whether the environment is restricted and replaces the list of users granted manage access. The team-scoped path targets the team in the path; the top-level path targets the caller's organization default team.
teams.environmentGroups.update
- GetRead-only
Gets a team by ID. Returns a team the authenticated user has access to.
teams.get
- ListRead-only
Lists all teams. Returns a list of all teams the authenticated user has access to.
teams.list
- Llm Models.CreateDestructive
Creates a new BIS-LLM deployment. (POST /v1/teams/{team_id}/llm_models)
teams.llmModels.create
- Loops.Runs.CreateDestructive
Creates a Loops run in a team. Creates a Loops run with an associated sampler in the given session; the run's infrastructure belongs to the given team.
teams.loops.runs.create
- Loops.Runs.ListRead-only
Lists a team's Loops runs. Lists Loops runs in the given team, visible to the requesting user, optionally filtered by run id, base model, and/or session.
teams.loops.runs.list
- Loops.Samplers.CreateDestructive
Creates a Loops sampler in a team. Creates a standalone Loops sampler not linked to a run; the sampler belongs to the given team.
teams.loops.samplers.create
- Loops.Samplers.ListRead-only
Lists a team's Loops samplers. Lists Loops samplers (paired and standalone) in the given team, visible to the requesting user, optionally filtered by session. Defaults to the caller's own; pass ?scope=org to list every sampler in the team.
teams.loops.samplers.list
- Loops.Sessions.CreateDestructive
Creates a Loops session. Creates a Loops session scoped to the calling org.
teams.loops.sessions.create
- Loops.Trainers.CreateDestructive
Creates a Loops trainer. Creates a trainer-only Loops run in the given session, without a sampler. To sample from it, create a sampler with POST /v1/loops/samplers and pass this run's ID as run_id to pair the two. List and read the trainer through the /v1/loops/runs endpoints.
teams.loops.trainers.create
- Models.CreateDestructive
Creates a new model from a source. Creates a new model in the caller's organization. The source field selects how the model is constructed (currently library_listing, which forks an accessible listing from GET /v1/library_models). The deployment isn't instantly ready; poll the GET endpoint until status is ACTIVE.
teams.models.create
- Models.ListRead-only
Gets all models. (GET /v1/teams/{team_id}/models)
teams.models.list
- Regions.ListRead-only
Lists regions available to a team. Lists the regions the team specified in the path can place deployments in.
teams.regions.list
- Secrets.DeleteDestructive
Deletes a secret by name. Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified. Cannot be undone.
teams.secrets.delete
- Secrets.ListRead-only
Gets all secrets for a team (metadata only, no plain text keys).
teams.secrets.list
- Secrets.UpsertDestructive
Upserts a secret in a team. Creates a new secret or updates an existing secret if one with the provided name already exists. The name and creation date of the created or updated secret is returned. This secret belongs to the specified team. Replaces the value of an existing secret with the same name.
teams.secrets.upsert
- Training Projects.UpsertWrite
Upserts a training project in a specific team. Upserts a training project with the specified metadata for a team.
teams.trainingProjects.upsert
Chains
- DeleteDestructive
Deletes a chain by ID. Cannot be undone.
chains.delete
- Deployments.DeactivateDestructive
Deactivates a chain deployment. Deactivates a chain deployment and returns the deactivation status.
chains.deployments.deactivate
- Deployments.DeleteDestructive
Deletes a chain deployment by ID. Cannot be undone.
chains.deployments.delete
- Deployments.GetRead-only
Gets a chain deployment by ID. (GET /v1/chains/{chain_id}/deployments/{chain_deployment_id})
chains.deployments.get
- Deployments.Get Chainlet LogsRead-only
Gets the logs for a chainlet within a chain deployment. Resolves the chainlet (by ID, scoped to the given chain deployment) to its underlying model deployment and returns its logs in the given time range.
chains.deployments.getChainletLogs
- Deployments.ListRead-only
Gets all chain deployments. (GET /v1/chains/{chain_id}/deployments)
chains.deployments.list
- Environments.CreateWrite
Creates a chain environment. Creates a chain environment. Returns the resulting environment.
chains.environments.create
- Environments.GetRead-only
Gets a chain environment's details. Gets a chain environment's details and returns the chain environment.
chains.environments.get
- Environments.ListRead-only
Gets all chain environments. Gets all chain environments for a given chain.
chains.environments.list
- Environments.PromoteDestructive
Promotes a chain deployment to an environment. Promotes an existing chain deployment to an environment and returns the promoted chain deployment.
chains.environments.promote
- Environments.UpdateWrite
Updates a chain environment's settings. Updates a chain environment's settings and returns the chain environment.
chains.environments.update
- Environments.Update Chainlet AutoscalingWrite
Updates a chainlet environment's autoscaling settings. Updates a chainlet environment's autoscaling settings and returns the updated chainlet environment settings.
chains.environments.updateChainletAutoscaling
- Environments.Update Chainlet Instance TypesWrite
Updates a chainlet environment's instance type settings. Updates a chainlet environment's instance type settings. The chainlet environment setting must exist. When updated, a new chain deployment is created and deployed. It is promoted to the chain environment according to promotion settings on the environment.
chains.environments.updateChainletInstanceTypes
- GetRead-only
Gets a chain by ID. (GET /v1/chains/{chain_id})
chains.get
- Get Audit LogsRead-only
Gets the audit log for a chain. Returns audit-log entries for a single chain, newest first. Use the filters to narrow by event type, actor, chain deployment, environment, source, or time window, and the cursor to page.
chains.getAuditLogs
- ListRead-only
Gets all chains. (GET /v1/chains)
chains.list
Volumes
- Create Access TokenDestructive
Creates a volume access token. Exchanges your API key for a short-lived token that authenticates against Baseten volume storage. A volume token is needed only to push and pull volume data; other volume operations use your API key directly.
volumes.createAccessToken
- DeleteDestructive
Deletes a volume. Deletes every live version of the volume, after which the volume stops appearing in listings. The data is not erased: each version stays restorable until its recovery deadline passes, and the versions sub-resource still reports them when you pass include_tombstoned. Cannot be undone.
volumes.delete
- GetRead-only
Gets a volume. Returns a volume with its tags, head version, version counts, and any scheduled expiry. Versions live on the versions sub-resource so they can be paged separately. A volume whose versions have all been deleted or have expired is still returned, with zero live versions.
volumes.get
- ListRead-only
Gets the volumes in a namespace. Returns one row per volume in the namespace, each with its tags, head version, version counts, and any scheduled expiry. Pass namespace to choose the namespace, which is required because the volume service has no cross-namespace inventory.
volumes.list
- List NamespacesRead-only
Gets the volume namespaces in your workspace. Returns the namespaces that hold volumes your API key can read, in lowercase. Namespaces are not created directly: a namespace comes into existence when the first volume is pushed into it.
volumes.listNamespaces
- Syncs.CancelDestructive
Cancels a volume sync. Requests cancellation of a pending or running sync. Repeated cancellation and cancellation of terminal syncs return the existing state. Once cancellation is accepted, a later completion callback cannot replace the CANCELED state.
volumes.syncs.cancel
- Syncs.GetRead-only
Gets a volume sync. (GET /v1/volumes/syncs/{volume_sync_id})
volumes.syncs.get
- Syncs.ListRead-only
Lists volume syncs. Lists volume syncs in the active workspace, newest first. Results may be narrowed by an exact destination ref.
volumes.syncs.list
- Syncs.StartDestructive
Starts a volume sync. Starts one durable asynchronous transfer from a remote source into a BDN volume.
volumes.syncs.start
- Tags.DeleteDestructive
Deletes a volume tag. The version remains available by digest and any other tags. If the tag is absent, the request succeeds with deleted set to false. Deleting head makes references without a tag or digest stop resolving until head is set again. Cannot be undone.
volumes.tags.delete
- Tags.SetWrite
Sets a volume tag. Setting an existing tag overwrites it. The previous version remains available by digest. Pass expires_at to set the tag's expiration time. Omit expires_at to clear any expiration time on the tag. Version or volume expiration still deletes the tag.
volumes.tags.set
- UpdateWrite
Updates a volume. Updates a volume's settings, such as its expiration time. Only the settings in the request change.
volumes.update
- Versions.DeleteDestructive
Deletes one version of a volume. Deletes the version the address names, along with every tag pointing at it. Addressing the version by tag deletes the version the tag points at, not the tag. The data is not erased: the version stays restorable until the recovery deadline in the response passes. Cannot be undone.
volumes.versions.delete
- Versions.GetRead-only
Gets one version of a volume. Returns a single version of the volume. Address it with :<tag> for a tag, @<digest> for a full content digest or a prefix of at least 12 hexadecimal characters, or head for the version a reference with no tag or digest resolves to.
volumes.versions.get
- Versions.ListRead-only
Gets the versions of a volume. Returns every live version of the volume, newest first, each with its digest, size, lifecycle, the tags pointing at it, and any scheduled expiry. Pass include_tombstoned to list deleted and expired versions alongside them.
volumes.versions.list
- Versions.RestoreDestructive
Restores a deleted or expired version of a volume. Returns a deleted or expired version to service, provided its recovery deadline has not passed. The tags the version carried are not restored with it, so re-tag it if anything depended on those, and a restored version never expires until something sets a new expiry.
volumes.versions.restore
Gateway
- Endpoints.CreateWrite
Creates a Gateway endpoint. Provisions an endpoint for the given slug and its upstream target. Exactly one target is supported at this time. The slug's prefix must be one your organization owns.
gateway.endpoints.create
- Endpoints.DeleteDestructive
Deletes a Gateway endpoint. Cannot be undone.
gateway.endpoints.delete
- Endpoints.GetRead-only
Gets a Gateway endpoint. (GET /v1/gateway/endpoints/{endpoint_id})
gateway.endpoints.get
- Endpoints.ListRead-only
Lists Gateway endpoints. (GET /v1/gateway/endpoints)
gateway.endpoints.list
- Endpoints.UpdateWrite
Updates a Gateway endpoint. Updates the endpoint's provided mutable fields. If targets are provided, the full target list is replaced. Exactly one target is supported at this time.
gateway.endpoints.update
- Events.ListRead-only
Lists gateway events. (GET /v1/gateway/events)
gateway.events.list
- Groups.Api Keys.CreateDestructive
Creates an API key for a group. Creates a new API key for the given group.
gateway.groups.apiKeys.create
- Groups.Api Keys.GetRead-only
Gets an API key for a group. (GET /v1/gateway/groups/{group_id}/api_keys/{api_key_prefix})
gateway.groups.apiKeys.get
- Groups.Api Keys.ListRead-only
Lists API keys for a group. (GET /v1/gateway/groups/{group_id}/api_keys)
gateway.groups.apiKeys.list
- Groups.Api Keys.RegisterDestructive
Registers an API key for a group. Registers a Gateway API key with the provided value and name.
gateway.groups.apiKeys.register
- Groups.CreateWrite
Creates a group. Creates a group and its endpoint configuration.
gateway.groups.create
- Groups.GetRead-only
Gets a group. (GET /v1/gateway/groups/{group_id})
gateway.groups.get
- Groups.ListRead-only
Lists groups. (GET /v1/gateway/groups)
gateway.groups.list
- Groups.UpdateWrite
Updates a group. Updates the group's mutable fields.
gateway.groups.update
Inference
- Async PredictDestructive
Queues an async predict on a deployed model and returns its request_id; the result goes to webhookEndpoint. Runs on the model's GPUs, which bill. Pick the target with environment (default production), deploymentId, development or regionalEnvironment.
inference.asyncPredict
- Async Run RemoteDestructive
Queues an async run_remote on a deployed chain and returns its request_id. Runs the chain's chainlets, which bill. Pick the target with environment (default production), deploymentId, development or regionalEnvironment.
inference.asyncRunRemote
- Cancel Async RequestDestructive
Cancels a queued async request (only QUEUED requests can be canceled). Pass modelId or chainId. Cannot be undone.
inference.cancelAsyncRequest
- Chat CompletionsDestructive
Create a chat completion. Creates a chat completion for the provided conversation. This endpoint is fully compatible with the OpenAI Chat Completions API, allowing you to use standard OpenAI SDKs by changing only the base URL and API key. Runs a Model APIs model (OpenAI-compatible); billed per token. Returns one JSON reply (no streaming).
inference.chatCompletions
- Get Async Queue StatusRead-only
Gets how many async requests are queued and in progress for a deployed model. Pick the target with environment (default production), deploymentId, development or regionalEnvironment.
inference.getAsyncQueueStatus
- Get Async RequestRead-only
Gets the status of an async model or chain request (QUEUED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED, CANCELED, WEBHOOK_FAILED) and its errors. Pass modelId or chainId.
inference.getAsyncRequest
- MessagesDestructive
Create a message. Creates a response message for the provided conversation. Compatible with the Anthropic Messages API, so the Anthropic SDK works against this endpoint by changing base_url and overriding the default x-api-key header with Authorization. Runs a Model APIs model through the Anthropic-compatible Messages API; billed per token. Returns one JSON reply (no streaming).
inference.messages
- PredictDestructive
Calls a deployed model's predict endpoint and returns its JSON output. Runs on the model's GPUs, which bill, and can wake a scaled-to-zero deployment. Pick the target with environment (default production), deploymentId, development or regionalEnvironment.
inference.predict
- ResponsesDestructive
Create a response. Creates a model response from an input string or a list of input items. Requests are stateless: Baseten stores no response, so send prior turns back as input rather than referring to an earlier response. Runs a Model APIs model through the Responses API; billed per token. Returns one JSON reply (no streaming).
inference.responses
- Run RemoteDestructive
Calls a deployed chain's run_remote entrypoint and returns its JSON output. Runs the chain's chainlets, which bill. Pick the target with environment (default production), deploymentId, development or regionalEnvironment.
inference.runRemote
- WakeDestructive
Wakes a scaled-to-zero model deployment: starts replicas, which bill while they run. Answers once the wake is accepted. Pick the target with environment (default production), deploymentId, development or regionalEnvironment.
inference.wake
Library Listings
- CreateWrite
Creates a new library listing. Creates a new library listing for the authenticated user's organization.
libraryListings.create
- DeleteDestructive
Deletes a library listing. Deletes a library listing and all of its associated versions. Any versions that are currently live will also be removed. Cannot be undone.
libraryListings.delete
- GetRead-only
Gets a library listing. Returns a specific library listing by its user-defined identifier.
libraryListings.get
- ListRead-only
Gets all library listings. Returns all library listings for the authenticated user's organization.
libraryListings.list
- UpdateWrite
Updates a library listing. Updates a library listing. Supported fields are the display name, public visibility, listed status, trending status, and the model-level metadata. An unlisted listing is left out of catalogs but still deploys from its direct link. When metadata is provided, it replaces the stored metadata.
libraryListings.update
- Versions.CreateWrite
Creates a new library listing version. Creates a new library listing version from an existing model version. The model version must be fully built (have an image_uri). If a listing with the given id already exists for the org, a new version is added. Otherwise, a new listing is created.
libraryListings.versions.create
- Versions.DeleteDestructive
Deletes a library listing version. Deletes a specific version of a library listing. Deleting a live version will fail with a 400 error; demote the version first by setting another version as live. Cannot be undone.
libraryListings.versions.delete
- Versions.GetRead-only
Gets a library listing version. Returns a specific version of a library listing.
libraryListings.versions.get
- Versions.ListRead-only
Gets all versions for a library listing. Returns all versions for a specific library listing.
libraryListings.versions.list
- Versions.UpdateWrite
Updates a library listing version. Updates a library listing version. Setting is_live to true will demote the current live version. When a benchmark is provided, it replaces the stored benchmark.
libraryListings.versions.update
Models
- CreateDestructive
Creates a new model from a source. Creates a new model in the caller's organization. The source field selects how the model is constructed (currently library_listing, which forks an accessible listing from GET /v1/library_models). The deployment isn't instantly ready; poll the GET endpoint until status is ACTIVE.
models.create
- DeleteDestructive
Deletes a model by ID. Cannot be undone.
models.delete
- GetRead-only
Gets a model by ID. (GET /v1/models/{model_id})
models.get
- Get Audit LogsRead-only
Gets the audit log for a model. Returns audit-log entries for a single model, newest first. Use the filters to narrow by event type, actor, deployment, environment, source, or time window, and the cursor to page.
models.getAuditLogs
- ListRead-only
Gets all models. (GET /v1/models)
models.list
- Prepare UploadRead-only
Validates a model push payload and issues upload credentials.
models.prepareUpload
- UpdateWrite
Updates a model by ID. Updates the mutable fields of a model and returns the updated model. Renaming does not change the model ID, endpoints, or deployments. Pushes that still use the old model_name create another model or target a model that now uses that name, so update config.yaml after renaming.
models.update
Service Accounts
- CreateWrite
Creates a service account. Creates a service account that workload identity federation tokens act as. It's enabled at once. Omit team_id for an organization account, which only an organization admin can create. A team admin can create accounts for their own team.
serviceAccounts.create
- DeleteDestructive
Deletes a service account. Deletes a disabled service account that no trust rule uses. Disable the account and delete its trust rules first. Cannot be undone.
serviceAccounts.delete
- GetRead-only
Gets a service account. (GET /v1/service_accounts/{service_account_id})
serviceAccounts.get
- Get AccessRead-only
Gets a service account's roles and the permissions they grant. Needs service_account.read where the account belongs.
serviceAccounts.getAccess
- ListRead-only
Lists service accounts. Lists the service accounts you administer: every account for an organization admin, and your teams' accounts for a team admin. Workload identity federation tokens act as service accounts.
serviceAccounts.list
- UpdateDestructive
Updates a service account. Updates the fields you send. Set disabled to true to stop the account being used, and back to false to restore it. preset_permissions replaces the account's access as a whole. The owning team can't change.
serviceAccounts.update
Users
- GetRead-only
Gets a user by ID. Returns info about a user in the caller's workspace.
users.get
- Get AccessRead-only
Gets a user's roles and the permissions they grant. Needs access.member.read for the organization.
users.getAccess
- Get MeRead-only
Gets the authenticated user. Returns info about the user making the request.
users.getMe
- Get My AccessRead-only
Gets your roles and the permissions they grant. Lists every role you hold: assigned to you or a directory group you're in, or held through organization and team membership. Users and service accounts can call it. Once fine-grained authorization decides your organization's requests, it needs access.self.read.
users.getMyAccess
- ListRead-only
Lists users in the workspace. Returns the workspace's members. Only actual joined members are returned; service accounts, invited users, and pending join requests are excluded.
users.list
Model Apis
- GetRead-only
Gets a Model API. Returns model metadata with added-model details for teams where you can invoke Model APIs. Legacy Default Team fields remain deprecated but unchanged. Pass team_ids to narrow team details; unauthorized teams cause a 403.
modelApis.get
- Get MetricsRead-only
Gets the metrics for a Model API. Gets the metrics for a Model API in the given time range for the teams you can manage, with each series labeled by team_id. Organization admins receive organization-wide metrics by default.
modelApis.getMetrics
- Get UsageRead-only
Gets Model APIs token usage in time buckets. Returns Model APIs token usage for the teams you can manage as a series of contiguous time buckets, broken down by the dimensions you pass in group_by.
modelApis.getUsage
- ListRead-only
Lists Model APIs. Lists model metadata with added-model details for teams where you can invoke Model APIs. Legacy Default Team fields remain deprecated but unchanged. Pass team_ids to narrow team details; unauthorized teams cause a 403. added_only=true returns models added by any team in scope.
modelApis.list
Api Keys
- CreateDestructive
Creates an API key. Creates an API key with the provided name and type. The API key is returned in the response. Returns the new key's secret once.
apiKeys.create
- DeleteDestructive
Deletes an API key by prefix. Deletes an API key by prefix and returns info about the API key. Cannot be undone.
apiKeys.delete
- ListRead-only
Lists API keys (metadata only, no plain text keys). Returns metadata for your personal API keys and the workspace and team API keys you can manage. Organization admins also receive every member's personal API keys, each with an owner identifying the member it belongs to. Prefixes and metadata only: key secrets are never returned.
apiKeys.list
Billing
- Get Model Api CostsRead-only
Gets daily Model APIs costs. Returns daily Model API costs in USD for the teams you can manage, with optional filtering and grouping by API key, user, model, service tier, and team.
billing.getModelApiCosts
- Get Tool Call UsageRead-only
Gets server-side tool call usage. Returns your organization's server-side tool call usage (web search and fetch tools Baseten executes on your behalf) as daily rows grouped by provider, charge unit (sku), and model. Defaults to teams you can manage; org admins include all organization history.
billing.getToolCallUsage
- Get Usage SummaryRead-only
Gets billing usage summary for a date range. Returns billing usage within [start_date, end_date): the start date is inclusive and the end date is exclusive. Both dates are normalized to midnight UTC. Includes dedicated model serving, training, and model APIs usage. For multi-team organizations, Model APIs usage is split by team.
billing.getUsageSummary
Environment Groups
- GetRead-only
Gets an environment group by name. Gets a single environment group by name. The team-scoped path targets the team in the path; the top-level path targets the caller's organization default team.
environmentGroups.get
- ListRead-only
Lists environment groups. Lists environment groups. The team-scoped path targets the team in the path; the top-level path targets the caller's organization default team.
environmentGroups.list
- UpdateDestructive
Updates an environment group's restriction settings. Sets whether the environment is restricted and replaces the list of users granted manage access. The team-scoped path targets the team in the path; the top-level path targets the caller's organization default team.
environmentGroups.update
Secrets
- DeleteDestructive
Deletes a secret by name. Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified. Cannot be undone.
secrets.delete
- ListRead-only
Gets all secrets (metadata only, no plain text keys). Names and dates only: secret values are never returned.
secrets.list
- UpsertDestructive
Upserts a secret. Creates or updates a secret by name. Scoped to the caller's primary team; use the team-scoped variant to target a specific team. Replaces the value of an existing secret with the same name: try it with a new name or on a test team.
secrets.upsert
Blobs
- Get Model CredentialsRead-only
Gets blob credentials for models. (GET /v1/blobs/credentials/model)
blobs.getModelCredentials
- Get Training CredentialsRead-only
Gets blob credentials for training. (GET /v1/blobs/credentials/train)
blobs.getTrainingCredentials
Instance Types
- ListRead-only
Gets all available instance types. (GET /v1/instance_types)
instanceTypes.list
- List PricesRead-only
Gets prices for available instance types.
instanceTypes.listPrices
Llm Models
- CreateDestructive
Creates a new BIS-LLM deployment. (POST /v1/llm_models)
llmModels.create
- Create DeploymentDestructive
Creates a new BIS-LLM deployment version.
llmModels.createDeployment
Organization
- GetRead-only
Gets the authenticated organization. Returns info about the organization of the user making the request.
organization.get
- UpdateDestructive
Updates the authenticated organization. Updates settings of the organization of the user making the request. Only organization admins can call it. Omitted fields are unchanged.
organization.update
Audit Logs
- ListRead-only
Gets the audit log for the workspace. Returns audit-log entries across the workspace, newest first, covering models, chains, and workspace-level actions. Use the filters to narrow by event type, actor, resource, environment, source, or time window, and the cursor to page.
auditLogs.list
Explore
- List Model MetadataRead-only
Lists model metadata. Lists all live model metadata rows, e.g. for model pickers.
explore.listModelMetadata
Regions
- ListRead-only
Lists regions available to the organization. Lists the regions available for new deployments in the caller's organization. A workspace without region access answers 403 (live 12-01).
regions.list
Connect Baseten to Claude, ChatGPT or Cursor
- 1
Connect Baseten in Corsair
Add your Baseten API key once in Corsair. Corsair stores the credential encrypted and makes the Baseten API calls for your agent, so it never goes into a prompt or a config file. Connect Baseten
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Baseten. On a ChatGPT personal plan, connect Baseten here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Baseten's read and write operations run right away and its 119 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/baseten, add the Baseten plugin, and connect with an API key. Then call methods like corsair.baseten.api.access.assignments.create() from your app. Corsair keeps each tenant isolated.
Yes. Baseten requires an API key from your Baseten account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Baseten, GitHub, Notion, Stripe, and the rest. Trigger Baseten from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for deploy and run models on Baseten: models, deployments, environments and promotions, autoscaling, replicas, chains, Model APIs inference, deployed model calls, secrets, API keys, teams, access control, training, Loops, sandboxes, volumes, Grid and Frontier Gateway (324 operations). Common builds include sync jobs, admin tooling, and agents that call Baseten APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Baseten API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/baseten in the open repo. When Baseten ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Baseten data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Baseten data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Baseten on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 119 destructive Baseten operations. You can change a link's mode at hub.corsair.dev/me.