# Baseten: Reference ## Reference ### Reference - [Reference documentation](https://docs.baseten.co/reference/overview.md): Call models, manage deployments, and run training jobs with Baseten APIs and tools. - [Libraries and tools](https://docs.baseten.co/reference/sdk/overview.md): Deploy models, run inference, and manage training jobs with Baseten SDKs and tools. ### Inference API - [Inference API reference](https://docs.baseten.co/reference/inference-api/overview.md): Call deployed models and Chains, or use Model APIs. #### Dedicated Inference ##### Synchronous requests - [Call the production environment of a model.](https://docs.baseten.co/api-reference/non-regional/call-the-production-environment-of-a-model.md): Sends a synchronous predict request to the deployment promoted to the production environment. The request body is forwarded directly to the model's `predict` function. - [Call the model deployment associated with a specified environment.](https://docs.baseten.co/api-reference/non-regional/call-the-model-deployment-associated-with-a-specified-environment.md): Sends a synchronous predict request to the deployment promoted to the specified environment. - [Call the development deployment of a model.](https://docs.baseten.co/api-reference/non-regional/call-the-development-deployment-of-a-model.md): Sends a synchronous predict request to the development deployment. - [Call a specific deployment of a model by deployment ID.](https://docs.baseten.co/api-reference/non-regional/call-a-specific-deployment-of-a-model-by-deployment-id.md): Sends a synchronous predict request to the specified deployment. - [Call the production environment of a chain.](https://docs.baseten.co/api-reference/non-regional/call-the-production-environment-of-a-chain.md): Sends a synchronous request to the chain deployment promoted to the production environment. The request body is forwarded to the chain's `run_remote` entrypoint. - [Call the chain deployment associated with a specified environment.](https://docs.baseten.co/api-reference/non-regional/call-the-chain-deployment-associated-with-a-specified-environment.md) - [Call the development deployment of a chain.](https://docs.baseten.co/api-reference/non-regional/call-the-development-deployment-of-a-chain.md) - [Call a specific chain deployment by deployment ID.](https://docs.baseten.co/api-reference/non-regional/call-a-specific-chain-deployment-by-deployment-id.md) - [Call a regional environment of a model.](https://docs.baseten.co/api-reference/regional/call-a-regional-environment-of-a-model.md): Sends a synchronous predict request via a regional hostname. The environment is determined by the hostname, not the path. - [Call a regional environment of a chain.](https://docs.baseten.co/api-reference/regional/call-a-regional-environment-of-a-chain.md): Sends a synchronous run_remote request via a regional hostname. The environment is determined by the hostname, not the path. ##### Asynchronous requests - [Asynchronously call the production environment of a model.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-the-production-environment-of-a-model.md): Enqueues an asynchronous predict request for the deployment promoted to the production environment. Returns a request ID that can be used to poll for status or cancel the request. - [Asynchronously call a named environment of a model.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-a-named-environment-of-a-model.md) - [Asynchronously call the development deployment of a model.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-the-development-deployment-of-a-model.md) - [Asynchronously call a specific deployment of a model.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-a-specific-deployment-of-a-model.md) - [Asynchronously call the production environment of a chain.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-the-production-environment-of-a-chain.md): Enqueues an asynchronous request for the chain deployment promoted to the production environment. - [Asynchronously call a named environment of a chain.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-a-named-environment-of-a-chain.md) - [Asynchronously call the development deployment of a chain.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-the-development-deployment-of-a-chain.md) - [Asynchronously call a specific deployment of a chain.](https://docs.baseten.co/api-reference/non-regional/asynchronously-call-a-specific-deployment-of-a-chain.md) - [Asynchronously call a regional environment of a model.](https://docs.baseten.co/api-reference/regional/asynchronously-call-a-regional-environment-of-a-model.md): Enqueues an asynchronous predict request via a regional hostname. The environment is determined by the hostname, not the path. - [Asynchronously call a regional environment of a chain.](https://docs.baseten.co/api-reference/regional/asynchronously-call-a-regional-environment-of-a-chain.md): Enqueues an asynchronous run_remote request via a regional hostname. The environment is determined by the hostname, not the path. - [Get the status of an async request.](https://docs.baseten.co/api-reference/get-the-status-of-an-async-request.md): Returns the current status of an async model or chain request. Rate limited to 20 requests per second. - [Cancel a queued async request.](https://docs.baseten.co/api-reference/cancel-a-queued-async-request.md): Cancels an async request. Only requests with `QUEUED` status may be canceled. Rate limited to 20 requests per second. - [Get async queue status for the production environment.](https://docs.baseten.co/api-reference/non-regional/get-async-queue-status-for-the-production-environment.md): Returns the number of queued and in-progress async requests for the deployment promoted to the production environment. Rate limited to 20 requests per second. - [Get async queue status for a named environment.](https://docs.baseten.co/api-reference/non-regional/get-async-queue-status-for-a-named-environment.md) - [Get async queue status for the development deployment.](https://docs.baseten.co/api-reference/non-regional/get-async-queue-status-for-the-development-deployment.md) - [Get async queue status for a specific deployment.](https://docs.baseten.co/api-reference/non-regional/get-async-queue-status-for-a-specific-deployment.md) - [Get async queue status for a regional environment.](https://docs.baseten.co/api-reference/regional/get-async-queue-status-for-a-regional-environment.md) ##### WebSocket endpoints - [WebSocket environment](https://docs.baseten.co/reference/inference-api/predict-endpoints/environments-websocket.md): Connect over WebSocket to the deployment associated with an environment. - [WebSocket development](https://docs.baseten.co/reference/inference-api/predict-endpoints/development-websocket.md): Connect over WebSocket to the development deployment of a model or Chain. - [WebSocket deployment](https://docs.baseten.co/reference/inference-api/predict-endpoints/deployment-websocket.md): Connect over WebSocket to a specific deployment. ##### Transcription endpoints - [Transcribe prerecorded audio](https://docs.baseten.co/reference/inference-api/predict-endpoints/transcription-api.md): Transcribe a pre-recorded audio file using a deployed transcription model. - [Real-time transcription API (v1)](https://docs.baseten.co/reference/inference-api/predict-endpoints/streaming-transcription-api.md): Transcribe audio in real time over a WebSocket connection. - [Real-time transcription API (v2)](https://docs.baseten.co/reference/inference-api/predict-endpoints/streaming-transcription-api-v2.md): Stream audio to a speech-to-text model over a WebSocket using a unified event protocol across models. ##### Wake endpoints - [Wake the production environment of a model.](https://docs.baseten.co/api-reference/non-regional/wake-the-production-environment-of-a-model.md): Triggers a wake for the deployment promoted to the production environment. Returns immediately with 202 Accepted. - [Wake a named environment of a model.](https://docs.baseten.co/api-reference/non-regional/wake-a-named-environment-of-a-model.md) - [Wake the development deployment of a model.](https://docs.baseten.co/api-reference/non-regional/wake-the-development-deployment-of-a-model.md) - [Wake a specific deployment of a model by deployment ID.](https://docs.baseten.co/api-reference/non-regional/wake-a-specific-deployment-of-a-model-by-deployment-id.md) - [Wake a regional environment of a model.](https://docs.baseten.co/api-reference/regional/wake-a-regional-environment-of-a-model.md) #### Model APIs - [Chat Completions](https://docs.baseten.co/reference/inference-api/chat-completions.md): Create chat completions using Baseten Model APIs, an OpenAI-compatible endpoint for managed LLMs. - [Responses](https://docs.baseten.co/reference/inference-api/responses.md): Create OpenAI Responses API requests against Baseten Model APIs, including streaming, function tools, and structured outputs. - [Messages](https://docs.baseten.co/reference/inference-api/messages.md): Create Anthropic Messages API requests against Baseten Model APIs. - [System One](https://docs.baseten.co/reference/inference-api/system-one.md): Evaluate text, structured data, and images with typed choice, yes/no, and score answers - [Server-side tool execution](https://docs.baseten.co/reference/inference-api/server-side-tool-execution.md): Tool selectors, request configuration, response metadata, and limits for server-side Model API tool execution ### Management API - [Management API reference](https://docs.baseten.co/reference/management-api/overview.md): Manage models and deployments with the Baseten Management API. - [Rate limits](https://docs.baseten.co/reference/management-api/rate-limits.md): Rate limits, response shape, and retry handling for the Baseten management API. #### Models - [List all models](https://docs.baseten.co/reference/management-api/models/gets-all-models.md): Gets all models. - [List a team's models](https://docs.baseten.co/reference/management-api/models/gets-all-team-models.md): Gets all models. - [Get a model by ID](https://docs.baseten.co/reference/management-api/models/gets-a-model-by-id.md): Gets a model by ID. - [Update a model](https://docs.baseten.co/reference/management-api/models/updates-a-model-by-id.md): Updates a model by ID. - [Prepare a model upload](https://docs.baseten.co/reference/management-api/models/prepare-model-upload.md): Validates a model push payload and issues upload credentials. - [Create a model from a source](https://docs.baseten.co/reference/management-api/models/creates-a-model-from-a-source.md): Creates a new model in the caller's organization. - [Create a team model from a source](https://docs.baseten.co/reference/management-api/models/creates-a-team-model-from-a-source.md): Creates a new model in the caller's organization. - [Create a BIS-LLM deployment](https://docs.baseten.co/reference/management-api/models/create-a-bis-llm-deployment.md): Creates a new BIS-LLM deployment. - [Create a team BIS-LLM deployment](https://docs.baseten.co/reference/management-api/models/create-a-team-bis-llm-deployment.md): Creates a new BIS-LLM deployment. - [Delete a model](https://docs.baseten.co/reference/management-api/models/deletes-a-model-by-id.md): Deletes a model by ID. #### Chains - [List all chains](https://docs.baseten.co/reference/management-api/chains/gets-all-chains.md): Gets all chains. - [Get a chain by ID](https://docs.baseten.co/reference/management-api/chains/gets-a-chain-by-id.md): Gets a chain by ID. - [Get chainlet logs](https://docs.baseten.co/reference/management-api/chains/get-chainlet-logs.md): 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. - [Delete a chain](https://docs.baseten.co/reference/management-api/chains/deletes-a-chain-by-id.md): Deletes a chain by ID. #### Deployments - [Get all model deployments](https://docs.baseten.co/reference/management-api/deployments/gets-all-deployments-of-a-model.md): Gets all deployments of a model. - [Get a production deployment](https://docs.baseten.co/reference/management-api/deployments/gets-a-models-production-deployment.md): Gets a model's production deployment and returns the deployment. - [Get a development deployment](https://docs.baseten.co/reference/management-api/deployments/gets-a-models-development-deployment.md): Gets a model's development deployment and returns the deployment. - [Get a model deployment by ID](https://docs.baseten.co/reference/management-api/deployments/gets-a-models-deployment-by-id.md): Gets a model's deployment by ID and returns the deployment. - [Get model deployment logs](https://docs.baseten.co/reference/management-api/deployments/get-deployment-logs.md): Gets all the logs for a model deployment in the given time range, which defaults to the last 30 minutes. - [Get model deployment metrics](https://docs.baseten.co/reference/management-api/deployments/get-deployment-metrics.md): Gets the metrics for a model deployment in the given time range. - [List model deployment startups](https://docs.baseten.co/reference/management-api/deployments/list-deployment-startups.md): Lists the replica startups for a model deployment. - [Get a model deployment startup summary](https://docs.baseten.co/reference/management-api/deployments/get-deployment-startup-summary.md): Gets startup duration distributions for a model deployment. - [Get model deployment config](https://docs.baseten.co/reference/management-api/deployments/get-deployment-config.md): Returns the deployment's config. - [Get model deployment download URL](https://docs.baseten.co/reference/management-api/deployments/get-deployment-download-url.md): Gets a presigned URL to download the truss tar file for a deployment. - [Get all chain deployments](https://docs.baseten.co/reference/management-api/deployments/gets-all-chain-deployments.md): Gets all chain deployments. - [Get a chain deployment by ID](https://docs.baseten.co/reference/management-api/deployments/gets-a-chain-deployment-by-id.md): Gets a chain deployment by ID. - [Get a development deployment's patch state](https://docs.baseten.co/reference/management-api/deployments/gets-a-development-deployments-patch-state.md): Returns the patch point the deployment is recorded as running and the latest staged-but-unsynced point, if any. - [Add a deployment to a model](https://docs.baseten.co/reference/management-api/deployments/adds-a-deployment-to-a-model.md): Adds a new deployment to a model. - [Create a BIS-LLM deployment version](https://docs.baseten.co/reference/management-api/deployments/create-a-bis-llm-deployment-version.md): Creates a new BIS-LLM deployment version. - [Stage a patch against a development deployment](https://docs.baseten.co/reference/management-api/deployments/stages-a-patch-against-a-development-deployment.md): Persists a patch durably without applying it; call the sync endpoint to apply staged patches to the running deployment. - [Sync staged patches to a development deployment](https://docs.baseten.co/reference/management-api/deployments/syncs-staged-patches-to-a-development-deployment.md): Applies any staged patches to the running deployment. - [Sign an SSH certificate for an inference model](https://docs.baseten.co/reference/management-api/deployments/signs-an-ssh-certificate-for-an-inference-model.md): Signs a short-lived SSH certificate granting access to a running inference model pod. - [Update a model deployment](https://docs.baseten.co/reference/management-api/deployments/updates-a-models-deployment-by-id.md): Updates the mutable fields of a deployment and returns the updated deployment. - [Delete a model deployment](https://docs.baseten.co/reference/management-api/deployments/deletes-a-models-deployment-by-id.md): Deletes a model's deployment by ID and returns the tombstone of the deployment. - [Delete a chain deployment](https://docs.baseten.co/reference/management-api/deployments/deletes-a-chain-deployment-by-id.md): Deletes a chain deployment by ID. - [Terminate deployment replica](https://docs.baseten.co/reference/management-api/deployments/terminates-deployment-replica.md): Terminates a deployment replica and returns the termination status. ##### Activate - [Activate environment deployment](https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-deployment-associated-with-an-environment.md): Activates a deployment associated with an environment if not already activated. - [Activate a development deployment](https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-development-deployment.md): Activates a development deployment if not already activated. - [Activate a deployment](https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-deployment.md): Activates a deployment if not already activated. - [Activate production deployment](https://docs.baseten.co/reference/management-api/deployments/activate/activates-production-deployment.md): Activates a production deployment if not already activated. ##### Deactivate - [Deactivate environment deployment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-deployment-associated-with-an-environment.md): Deactivates a deployment associated with an environment if not already deactivated. - [Deactivate a development deployment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-development-deployment.md): Deactivates a development deployment if not already deactivated. - [Deactivate a deployment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-deployment.md): Deactivates a deployment if not already deactivated. - [Deactivate production deployment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-production-deployment.md): Deactivates a production deployment if not already deactivated. - [Deactivate a chain deployment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-chain-deployment.md): Deactivates a chain deployment and returns the deactivation status. ##### Retry - [Retry a development deployment](https://docs.baseten.co/reference/management-api/deployments/retry/retries-a-development-deployment.md): Retries a failed development deployment and returns the retry status and updated deployment. - [Retry a deployment](https://docs.baseten.co/reference/management-api/deployments/retry/retries-a-deployment.md): Retries a failed deployment and returns the retry status and updated deployment. - [Retry a production deployment](https://docs.baseten.co/reference/management-api/deployments/retry/retries-production-deployment.md): Retries a failed production deployment and returns the retry status and updated deployment. ##### Promote - [Promote to model environment](https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-deployment-to-an-environment.md): Promotes an existing deployment to an environment and returns the promoted deployment. - [Cancel model promotion](https://docs.baseten.co/reference/management-api/deployments/promote/cancel-promotion.md): Cancels an ongoing promotion to an environment and returns the cancellation status. - [Promote a development deployment to production](https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-development-deployment-to-production.md): Creates a new production deployment from the development deployment and returns the deployment that is building. - [Promote a deployment to production](https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-deployment-to-production.md): Promotes an existing deployment to production and returns the promoted deployment. - [Pause rolling deployment](https://docs.baseten.co/reference/management-api/deployments/promote/pause-promotion.md): Pauses traffic shifts in an in-progress rolling promotion. - [Resume rolling deployment](https://docs.baseten.co/reference/management-api/deployments/promote/resume-promotion.md): Resumes a paused rolling promotion, continuing from where it was paused. - [Force cancel rolling deployment](https://docs.baseten.co/reference/management-api/deployments/promote/force-cancel-promotion.md): Immediately cancels an in-progress rolling promotion and triggers rollback to the previous version. - [Force roll forward promotion](https://docs.baseten.co/reference/management-api/deployments/promote/force-roll-forward-promotion.md): Completes the rolling promotion, shifting all traffic to the candidate deployment. - [Promote to chain environment](https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-chain-deployment-to-an-environment.md): Promotes an existing chain deployment to an environment and returns the promoted chain deployment. ##### Autoscaling - [Update a development deployment's autoscaling settings](https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-a-development-deployments-autoscaling-settings.md): Updates a development deployment's autoscaling settings and returns the update status. - [Update a deployment's autoscaling settings](https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-a-deployments-autoscaling-settings.md): Updates a deployment's autoscaling settings and returns the update status. - [Update production deployment autoscaling settings](https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-production-deployment-autoscaling-settings.md): Updates a production deployment's autoscaling settings and returns the update status. - [Update request backpressure settings](https://docs.baseten.co/reference/management-api/deployments/autoscaling/update-request-backpressure-settings.md): Updates a deployment's request backpressure settings. #### Environments - [Get all environments](https://docs.baseten.co/reference/management-api/environments/get-all-environments.md): Gets all environments for a given model. - [Get environment](https://docs.baseten.co/reference/management-api/environments/get-an-environments-details.md): Gets an environment's details and returns the environment. - [Get environment logs](https://docs.baseten.co/reference/management-api/environments/get-environment-logs.md): Gets logs across all deployments that were active on the environment in the given time range, which defaults to the last 30 minutes. - [Get environment metrics](https://docs.baseten.co/reference/management-api/environments/get-environment-metrics.md): Gets metrics aggregated across every deployment that was active on the environment in the given time range. - [List model environment startups](https://docs.baseten.co/reference/management-api/environments/list-environment-startups.md): Lists replica startups across deployments in an environment. - [Get a model environment startup summary](https://docs.baseten.co/reference/management-api/environments/get-environment-startup-summary.md): Gets startup duration distributions across deployments in an environment. - [Get all Chain environments](https://docs.baseten.co/reference/management-api/environments/get-all-chain-environments.md): Gets all chain environments for a given chain. - [Get Chain environment](https://docs.baseten.co/reference/management-api/environments/get-a-chain-environments-details.md): Gets a chain environment's details and returns the chain environment. - [Create environment](https://docs.baseten.co/reference/management-api/environments/create-an-environment.md): Creates an environment for the specified model and returns the environment. - [Create Chain environment](https://docs.baseten.co/reference/management-api/environments/create-a-chain-environment.md): Creates a chain environment. - [Update model environment](https://docs.baseten.co/reference/management-api/environments/update-an-environments-settings.md): Asynchronously updates an environment's settings. - [Update Chain environment](https://docs.baseten.co/reference/management-api/environments/update-a-chain-environments-settings.md): Updates a chain environment's settings and returns the chain environment. - [Update chainlet environment's autoscaling settings](https://docs.baseten.co/reference/management-api/environments/update-a-chainlet-environments-autoscaling-settings.md): Updates a chainlet environment's autoscaling settings and returns the updated chainlet environment settings. - [Update chainlet environment's instance type](https://docs.baseten.co/reference/management-api/environments/update-a-chainlet-environments-instance-type-settings.md): Updates a chainlet environment's instance type settings. - [Delete environment](https://docs.baseten.co/reference/management-api/environments/delete-an-environment.md): Deletes an environment and returns its tombstone. #### Environment groups - [List environment groups](https://docs.baseten.co/reference/management-api/environment-groups/list-environment-groups.md): Lists environment groups. - [Get an environment group](https://docs.baseten.co/reference/management-api/environment-groups/get-an-environment-group.md): Gets a single environment group by name. - [Update an environment group](https://docs.baseten.co/reference/management-api/environment-groups/update-an-environment-group.md): Sets whether the environment is restricted and replaces the list of users granted manage access. - [List a team's environment groups](https://docs.baseten.co/reference/management-api/environment-groups/list-team-environment-groups.md): Lists environment groups. - [Get a team's environment group](https://docs.baseten.co/reference/management-api/environment-groups/get-a-team-environment-group.md): Gets a single environment group by name. - [Update a team's environment group](https://docs.baseten.co/reference/management-api/environment-groups/update-a-team-environment-group.md): Sets whether the environment is restricted and replaces the list of users granted manage access. #### Training capacity - [Get training GPU capacity](https://docs.baseten.co/reference/management-api/training/gets-training-gpu-capacity.md): Returns GPU capacity limits (baseline and peak) and current usage for the organization. - [Set a team's training GPU capacity](https://docs.baseten.co/reference/management-api/training/sets-a-teams-training-gpu-capacity.md): Sets the max concurrent GPUs of a given type a team may use. #### Instance types - [List all instance types](https://docs.baseten.co/reference/management-api/instance-types/gets-all-instance-types.md): Gets all available instance types. - [Instance type prices](https://docs.baseten.co/reference/management-api/instance-types/gets-instance-type-prices.md): Gets prices for available instance types. #### Regions - [List regions](https://docs.baseten.co/reference/management-api/regions/list-regions.md): Lists the regions available for new deployments in the caller's organization. - [List a team's regions](https://docs.baseten.co/reference/management-api/regions/list-team-regions.md): Lists the regions the team specified in the path can place deployments in. #### Model APIs - [List all Model APIs](https://docs.baseten.co/reference/management-api/model-apis/gets-all-model-apis.md): Lists Model APIs visible to the caller. - [Get a Model API by name](https://docs.baseten.co/reference/management-api/model-apis/gets-a-model-api-by-name.md): Fetches a Model API by name, with workspace overlay when added. - [Get Model APIs usage](https://docs.baseten.co/reference/management-api/model-apis/gets-model-apis-token-usage.md): Returns your organization's Model APIs token usage as a series of contiguous time buckets, broken down by the dimensions you pass in group_by. #### Library listings - [List library listings](https://docs.baseten.co/reference/management-api/library-listings/list-library-listings.md): Returns all library listings for the authenticated user's organization. - [Create a library listing](https://docs.baseten.co/reference/management-api/library-listings/create-library-listing.md): Creates a new library listing for the authenticated user's organization. - [Get a library listing](https://docs.baseten.co/reference/management-api/library-listings/get-library-listing.md): Returns a specific library listing by its user-defined identifier. - [Update a library listing](https://docs.baseten.co/reference/management-api/library-listings/update-library-listing.md): Updates a library listing. - [Delete a library listing](https://docs.baseten.co/reference/management-api/library-listings/delete-library-listing.md): Deletes a library listing and all of its associated versions. ##### Versions - [List listing versions](https://docs.baseten.co/reference/management-api/library-listings/versions/list-listing-versions.md): Returns all versions for a specific library listing. - [Create a listing version](https://docs.baseten.co/reference/management-api/library-listings/versions/create-listing-version.md): Creates a new library listing version from an existing model version. - [Get a listing version](https://docs.baseten.co/reference/management-api/library-listings/versions/get-listing-version.md): Returns a specific version of a library listing. - [Update a listing version](https://docs.baseten.co/reference/management-api/library-listings/versions/update-listing-version.md): Updates a library listing version. - [Delete a listing version](https://docs.baseten.co/reference/management-api/library-listings/versions/delete-listing-version.md): Deletes a specific version of a library listing. #### Teams - [List all teams](https://docs.baseten.co/reference/management-api/teams/lists-all-teams.md): Returns a list of all teams the authenticated user has access to. - [Get a team by ID](https://docs.baseten.co/reference/management-api/teams/gets-a-team-by-id.md): Returns a team the authenticated user has access to. #### Users - [List users](https://docs.baseten.co/reference/management-api/users/list-users.md): Returns the workspace's members. - [Get the current user](https://docs.baseten.co/reference/management-api/users/get-the-current-user.md): Returns info about the user making the request. - [Get a user](https://docs.baseten.co/reference/management-api/users/get-a-user.md): Returns info about a user in the caller's workspace. #### Organization - [Get the current organization](https://docs.baseten.co/reference/management-api/organization/get-the-current-organization.md): Returns info about the organization of the user making the request. #### Secrets - [Get all secrets](https://docs.baseten.co/reference/management-api/secrets/gets-all-secrets.md): Gets all secrets (metadata only, no plain text keys). - [Get all team secrets](https://docs.baseten.co/reference/management-api/secrets/gets-all-team-secrets.md): Gets all secrets for a team (metadata only, no plain text keys). - [Upsert a secret](https://docs.baseten.co/reference/management-api/secrets/upserts-a-secret.md): Creates or updates a secret by name. - [Upsert a team secret](https://docs.baseten.co/reference/management-api/secrets/upserts-a-team-secret.md): Creates a new secret or updates an existing secret if one with the provided name already exists. - [Delete a secret by name](https://docs.baseten.co/reference/management-api/secrets/deletes-a-secret-by-name.md): Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified. - [Delete a team secret](https://docs.baseten.co/reference/management-api/secrets/deletes-a-team-secret-by-name.md): Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified. #### Volumes - [List volumes](https://docs.baseten.co/reference/management-api/volumes/list-volumes.md): Returns one row per volume in the namespace, each with its tags, head version, and version counts. - [List volume namespaces](https://docs.baseten.co/reference/management-api/volumes/list-volume-namespaces.md): Returns the namespaces that hold volumes your API key can read, in lowercase. - [Get a volume](https://docs.baseten.co/reference/management-api/volumes/get-a-volume.md): Returns a volume with its tags, head version, and version counts. - [Delete a volume](https://docs.baseten.co/reference/management-api/volumes/delete-a-volume.md): Deletes every live version of the volume, after which the volume stops appearing in listings. - [List volume versions](https://docs.baseten.co/reference/management-api/volumes/list-volume-versions.md): Returns every live version of the volume, newest first, each with its digest, size, lifecycle, and the tags pointing at it. - [Get a volume version](https://docs.baseten.co/reference/management-api/volumes/get-a-volume-version.md): Returns a single version of the volume. - [Delete a volume version](https://docs.baseten.co/reference/management-api/volumes/delete-a-volume-version.md): Deletes the version the address names, along with every tag pointing at it. - [Restore a volume version](https://docs.baseten.co/reference/management-api/volumes/restore-a-volume-version.md): Returns a deleted version to service, provided its recovery deadline has not passed. - [Create a volume access token](https://docs.baseten.co/reference/management-api/volumes/create-a-volume-access-token.md): Exchanges your API key for a short-lived token that authenticates against Baseten volume storage. - [List volume syncs](https://docs.baseten.co/reference/management-api/volumes/list-volume-syncs.md): Lists volume syncs. - [Create a volume sync](https://docs.baseten.co/reference/management-api/volumes/create-a-volume-sync.md): Starts a volume sync. - [Get a volume sync](https://docs.baseten.co/reference/management-api/volumes/get-a-volume-sync.md): Gets a volume sync. - [Cancel a volume sync](https://docs.baseten.co/reference/management-api/volumes/cancel-a-volume-sync.md): Cancels a volume sync. - [Update a volume](https://docs.baseten.co/reference/management-api/volumes/update-a-volume.md): Updates a volume's settings, including its expiration time. - [Set a volume tag](https://docs.baseten.co/reference/management-api/volumes/set-a-volume-tag.md): Creates a tag or moves it to an existing volume version. - [Delete a volume tag](https://docs.baseten.co/reference/management-api/volumes/delete-a-volume-tag.md): Deletes a tag without deleting its version. #### Routes - [List routes](https://docs.baseten.co/reference/management-api/routes/lists-routes.md): Lists routes you can invoke, newest first, optionally filtered by team and exact name. - [Get a route](https://docs.baseten.co/reference/management-api/routes/gets-a-route.md): Returns one route, including its upstream target and the base URL for inference requests. - [Create a route](https://docs.baseten.co/reference/management-api/routes/creates-a-route.md): Creates a route targeting a Model API, a provider connection, or a route classifier. - [Update a route](https://docs.baseten.co/reference/management-api/routes/updates-a-route.md): Updates a route's label or description. Route names, targets, and owning teams are immutable. - [Delete a route](https://docs.baseten.co/reference/management-api/routes/deletes-a-route.md): Deletes the route the ID names. - [Get route usage](https://docs.baseten.co/reference/management-api/routes/get-route-usage.md): Gets daily route usage and estimated costs. - [List route connections](https://docs.baseten.co/reference/management-api/routes/list-route-connections.md): Lists a team's connections to upstream providers. - [Create a route connection](https://docs.baseten.co/reference/management-api/routes/create-route-connection.md): Creates a team's connection to an upstream provider. - [Update a route connection](https://docs.baseten.co/reference/management-api/routes/update-route-connection.md): Updates a connection's fields without changing its provider or team. - [Delete a route connection](https://docs.baseten.co/reference/management-api/routes/delete-route-connection.md): Deletes a connection and preserves its referenced team secret. - [Create a Grid access token](https://docs.baseten.co/reference/management-api/routes/creates-a-grid-access-token.md): Exchanges your API key for a short-lived token that authenticates against the Grid gateway as you, in one team. #### Route classifiers - [List route classifiers](https://docs.baseten.co/reference/management-api/route-classifiers/list-route-classifiers.md): Lists the Baseten-managed route classifiers available for intelligent routes. - [Get a route classifier](https://docs.baseten.co/reference/management-api/route-classifiers/get-a-route-classifier.md): Returns one Baseten-managed route classifier available for intelligent routes. #### Team settings - [Get team settings](https://docs.baseten.co/reference/management-api/team-settings/get-team-settings.md): Returns the team's Grid settings, including the default models for each coding harness and the team's spend limits. - [Update team settings](https://docs.baseten.co/reference/management-api/team-settings/update-team-settings.md): Changes the team's Grid settings, including default harness models and spend limits. - [List member settings](https://docs.baseten.co/reference/management-api/team-settings/list-member-settings.md): Lists each member's Grid settings in each team they belong to. - [Get member settings](https://docs.baseten.co/reference/management-api/team-settings/get-member-settings.md): Returns a member's Grid spend limit, this month's spend, and whether the spend reached the limit. - [Update member settings](https://docs.baseten.co/reference/management-api/team-settings/update-member-settings.md): Changes a member's Grid spend limit in a team. #### Explore - [List model metadata](https://docs.baseten.co/reference/management-api/explore/list-model-metadata.md): Lists model metadata. #### Blob credentials - [Get blob credentials for models](https://docs.baseten.co/reference/management-api/blob-credentials/gets-blob-credentials-for-models.md): Returns a short-lived S3 credential, key, and bucket for uploading a model blob. - [Get blob credentials for training](https://docs.baseten.co/reference/management-api/blob-credentials/gets-blob-credentials-for-training.md): Returns a short-lived S3 credential, key, and bucket for uploading a training blob. #### API keys - [Get all API keys](https://docs.baseten.co/reference/management-api/api-keys/lists-the-users-api-keys.md): Lists metadata for your personal API keys and the team keys you can manage. Organization admins also receive every member's personal keys. - [Create an API key](https://docs.baseten.co/reference/management-api/api-keys/creates-an-api-key.md): Creates an API key with the provided name, type, and expiration. - [Create a team API key](https://docs.baseten.co/reference/management-api/api-keys/creates-a-team-api-key.md): Creates a team API key with the provided name, type, and expiration. - [Delete an API key](https://docs.baseten.co/reference/management-api/api-keys/delete-an-api-key.md): Deletes an API key by prefix and returns info about the API key. #### Billing - [Get billing usage summary](https://docs.baseten.co/reference/management-api/billing/gets-billing-usage-summary-for-a-date-range.md): Returns billing usage data within the specified date range. - [Get Model APIs costs](https://docs.baseten.co/reference/management-api/billing/gets-model-apis-costs.md): Returns daily Model API costs in USD for your organization, with optional filtering and grouping by API key, user, model, and service tier. - [Get tool call usage](https://docs.baseten.co/reference/management-api/billing/get-tool-call-usage.md): Gets server-side tool call usage. #### Audit logs - [Get workspace audit logs](https://docs.baseten.co/reference/management-api/audit-logs/get-workspace-audit-logs.md): Returns audit-log entries across the workspace, newest first, covering models, chains, and workspace-level actions. - [Get model audit logs](https://docs.baseten.co/reference/management-api/audit-logs/get-model-audit-logs.md): Returns audit-log entries for a single model, newest first. - [Get chain audit logs](https://docs.baseten.co/reference/management-api/audit-logs/get-chain-audit-logs.md): Returns audit-log entries for a single chain, newest first. #### Sandboxes - [Sandboxes API reference](https://docs.baseten.co/reference/management-api/sandboxes/overview.md): Manage sandbox instances, images, previews, and volumes with the Baseten Management API, including authentication, teams, and pagination. - [Get sandbox configuration](https://docs.baseten.co/reference/management-api/sandboxes/get-sandbox-configuration.md): Gets the regions where you can create a sandbox. - [List sandboxes](https://docs.baseten.co/reference/management-api/sandboxes/list-sandboxes.md): Lists a page of sandboxes. - [Get a sandbox](https://docs.baseten.co/reference/management-api/sandboxes/get-a-sandbox.md): Gets a sandbox by name. - [Get sandbox logs](https://docs.baseten.co/reference/management-api/sandboxes/get-sandbox-logs.md): Gets a sandbox's runtime logs, newest first. - [Get sandbox metrics](https://docs.baseten.co/reference/management-api/sandboxes/get-sandbox-metrics.md): Gets a sandbox's request, error, CPU, and memory metrics over time. - [List built-in sandbox images](https://docs.baseten.co/reference/management-api/sandboxes/list-built-in-sandbox-images.md): Lists the built-in images you can create a sandbox from. - [List sandbox images](https://docs.baseten.co/reference/management-api/sandboxes/list-sandbox-images.md): Lists a page of sandbox images. - [Get a sandbox image](https://docs.baseten.co/reference/management-api/sandboxes/get-a-sandbox-image.md): Gets a sandbox image and its processing status. - [Get image build logs](https://docs.baseten.co/reference/management-api/sandboxes/get-image-build-logs.md): Gets logs from a sandbox image's latest build, newest first. - [List image tags](https://docs.baseten.co/reference/management-api/sandboxes/list-image-tags.md): Lists a page of tags for a sandbox image. - [List sandbox previews](https://docs.baseten.co/reference/management-api/sandboxes/list-sandbox-previews.md): Lists a sandbox's application previews. - [Get a sandbox preview](https://docs.baseten.co/reference/management-api/sandboxes/get-a-sandbox-preview.md): Gets a preview's configuration, URL, and status. - [List sandbox preview tokens](https://docs.baseten.co/reference/management-api/sandboxes/list-sandbox-preview-tokens.md): Lists tokens for a private sandbox preview, including expired tokens. - [Create a sandbox access token](https://docs.baseten.co/reference/management-api/sandboxes/create-a-sandbox-access-token.md): Create a token for accessing a sandbox. - [Create a sandbox](https://docs.baseten.co/reference/management-api/sandboxes/create-a-sandbox.md): Creates a sandbox from an image. - [Update a sandbox](https://docs.baseten.co/reference/management-api/sandboxes/update-a-sandbox.md): Updates the configuration of a sandbox. - [Delete a sandbox](https://docs.baseten.co/reference/management-api/sandboxes/delete-a-sandbox.md): Deletes a sandbox and its local data. - [Push a sandbox image](https://docs.baseten.co/reference/management-api/sandboxes/push-a-sandbox-image.md): Imports a sandbox image or starts an image build. - [Delete an image tag](https://docs.baseten.co/reference/management-api/sandboxes/delete-an-image-tag.md): Deletes a version of a sandbox image. - [Delete a sandbox image](https://docs.baseten.co/reference/management-api/sandboxes/delete-a-sandbox-image.md): Deletes a sandbox image and its tags. - [Clean up unused images](https://docs.baseten.co/reference/management-api/sandboxes/clean-up-unused-images.md): Removes unused image versions. - [Create a sandbox preview](https://docs.baseten.co/reference/management-api/sandboxes/create-a-sandbox-preview.md): Exposes a sandbox port through a public or token-protected HTTPS URL. - [Update a sandbox preview](https://docs.baseten.co/reference/management-api/sandboxes/update-a-sandbox-preview.md): Updates a preview's access, headers, or expiration. - [Delete a sandbox preview](https://docs.baseten.co/reference/management-api/sandboxes/delete-a-sandbox-preview.md): Deletes a sandbox preview and revokes its tokens. - [Create a sandbox preview token](https://docs.baseten.co/reference/management-api/sandboxes/create-a-sandbox-preview-token.md): Creates a token for accessing a private sandbox preview. - [Delete a sandbox preview token](https://docs.baseten.co/reference/management-api/sandboxes/delete-a-sandbox-preview-token.md): Revokes a token for a private sandbox preview. ##### Volumes - [List sandbox volumes](https://docs.baseten.co/reference/management-api/sandboxes/list-sandbox-volumes.md): Lists persistent volumes in a team. - [Get a sandbox volume](https://docs.baseten.co/reference/management-api/sandboxes/get-a-sandbox-volume.md): Returns a volume's status, capacity, region, and attachment. - [Create a sandbox volume](https://docs.baseten.co/reference/management-api/sandboxes/create-a-sandbox-volume.md): Creates persistent storage for sandbox files. - [Update a sandbox volume](https://docs.baseten.co/reference/management-api/sandboxes/update-a-sandbox-volume.md): Grows a volume or replaces its labels. - [Delete a sandbox volume](https://docs.baseten.co/reference/management-api/sandboxes/delete-a-sandbox-volume.md): Permanently deletes an unattached volume and its files. ### Loops API - [Loops API reference](https://docs.baseten.co/reference/loops-api/overview.md): HTTP routes for Loops sessions, runs, samplers, checkpoints, and deployments. #### Sessions - [Get a session](https://docs.baseten.co/reference/loops-api/sessions/get-a-session.md): Fetches a Loops session by ID. - [Create a session](https://docs.baseten.co/reference/loops-api/sessions/create-a-session.md): Creates a Loops session scoped to the calling org. - [Create a team session](https://docs.baseten.co/reference/loops-api/sessions/create-a-team-session.md): Creates a Loops session scoped to the calling org. #### Runs - [List runs](https://docs.baseten.co/reference/loops-api/runs/list-runs.md): Lists Loops runs visible to the requesting user, optionally filtered by run id and/or base model. - [List a team's runs](https://docs.baseten.co/reference/loops-api/runs/list-team-runs.md): Lists Loops runs in the given team, visible to the requesting user, optionally filtered by run id and/or base model. - [Get a run](https://docs.baseten.co/reference/loops-api/runs/get-a-run.md): Fetches a Loops run by ID. - [Create a run](https://docs.baseten.co/reference/loops-api/runs/create-a-run.md): Creates a Loops run with an associated sampler in the given session. - [Create a team run](https://docs.baseten.co/reference/loops-api/runs/create-a-team-run.md): Creates a Loops run with an associated sampler in the given session; the run's infrastructure belongs to the given team. - [Create a trainer](https://docs.baseten.co/reference/loops-api/runs/create-a-trainer.md): Creates a trainer-only Loops run in the given session, without a sampler. - [Create a team trainer](https://docs.baseten.co/reference/loops-api/runs/create-a-team-trainer.md): Creates a trainer-only Loops run in the given session, without a sampler. - [Deactivate a run](https://docs.baseten.co/reference/loops-api/runs/deactivate-a-run.md): Shuts down a Loops run by ID, tearing down both the run and its paired sampler. #### Samplers - [List samplers](https://docs.baseten.co/reference/loops-api/samplers/list-samplers.md): Lists Loops samplers (paired and standalone). - [List a team's samplers](https://docs.baseten.co/reference/loops-api/samplers/list-team-samplers.md): Lists Loops samplers (paired and standalone) in the given team, visible to the requesting user. - [Get a sampler](https://docs.baseten.co/reference/loops-api/samplers/get-a-sampler.md): Fetches a Loops sampler by ID. - [Create a sampler](https://docs.baseten.co/reference/loops-api/samplers/create-a-sampler.md): Creates a standalone Loops sampler not linked to a run. - [Create a team sampler](https://docs.baseten.co/reference/loops-api/samplers/create-a-team-sampler.md): Creates a standalone Loops sampler not linked to a run; the sampler belongs to the given team. - [Deactivate a standalone sampler](https://docs.baseten.co/reference/loops-api/samplers/deactivate-a-sampler.md): Shuts down a standalone Loops sampler by ID. #### Checkpoints - [List checkpoints](https://docs.baseten.co/reference/loops-api/checkpoints/list-checkpoints.md): Lists Loops checkpoints filtered by run id, base model, or bt:// URI. - [Get checkpoint source](https://docs.baseten.co/reference/loops-api/checkpoints/get-checkpoint-source.md): Identifies whether checkpoint files are available through S3 or a volume. - [Get checkpoint files](https://docs.baseten.co/reference/loops-api/checkpoints/get-checkpoint-files.md): Gets presigned URLs for the files under a Loops checkpoint. - [Validate a checkpoint](https://docs.baseten.co/reference/loops-api/checkpoints/validate-a-checkpoint.md): Returns whether the caller can manage and use this checkpoint. - [Deploy checkpoints](https://docs.baseten.co/reference/loops-api/checkpoints/deploy-checkpoints.md): Creates an inference deployment from one or more Loops sampler checkpoints. #### Deployments - [List deployments](https://docs.baseten.co/reference/loops-api/deployments/list-deployments.md): Lists Loops deployments. - [Get a deployment](https://docs.baseten.co/reference/loops-api/deployments/get-a-deployment.md): Fetches a Loops deployment by ID, including its latest status. - [Get deployment logs](https://docs.baseten.co/reference/loops-api/deployments/get-deployment-logs.md): Fetches logs from the trainer pods of a Loops deployment. - [Get deployment debug archive](https://docs.baseten.co/reference/loops-api/deployments/get-deployment-debug-archive.md): Gets presigned download URLs for a Loops deployment's debug archive. - [Get deployment metrics](https://docs.baseten.co/reference/loops-api/deployments/get-deployment-metrics.md): Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. - [Deactivate a deployment](https://docs.baseten.co/reference/loops-api/deployments/deactivate-a-deployment.md): Shuts down a Loops deployment by ID. #### Server - [Get server capabilities](https://docs.baseten.co/reference/loops-api/server/get-capabilities.md): Returns the list of models supported by the Loops server, including each model's maximum context length and whether it supports vision-language inputs. - [Get your Loops user config](https://docs.baseten.co/reference/loops-api/server/get-your-loops-user-config.md): Returns the caller's Loops user config (per-user accelerator priorities). - [Update your Loops user config](https://docs.baseten.co/reference/loops-api/server/update-your-loops-user-config.md): 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. ### Training API - [Training API reference](https://docs.baseten.co/reference/training-api/overview.md): Programmatically manage Baseten Training resources. #### Training projects - [List training projects](https://docs.baseten.co/reference/training-api/get-training-projects.md): Lists all training projects for the organization. - [Get training project](https://docs.baseten.co/reference/training-api/get-training-project.md): Gets the details of an existing training project. - [Get training project cache summary](https://docs.baseten.co/reference/training-api/get-training-project-cache-summary.md): Gets the cache summary for the most recent training job in the project. - [Create training project](https://docs.baseten.co/reference/training-api/create-training-project.md): Upserts a training project with the specified metadata. - [Create a team training project](https://docs.baseten.co/reference/training-api/create-team-training-project.md): Upserts a training project with the specified metadata for a team. - [Delete training project](https://docs.baseten.co/reference/training-api/delete-training-project.md): Deletes a training project and all associated training jobs. #### Training jobs - [List training jobs](https://docs.baseten.co/reference/training-api/list-training-jobs.md): Lists all training jobs for the training project. - [Get training job](https://docs.baseten.co/reference/training-api/get-training-job.md): Gets the details of an existing training job. - [Get training job queue context](https://docs.baseten.co/reference/training-api/get-training-job-queue-context.md): Returns the capacity pool that gated a training job, the jobs holding GPU capacity in that pool, and their status events. - [Get training job checkpoint files](https://docs.baseten.co/reference/training-api/get-training-job-checkpoint-files.md): Gets presigned URLs for all checkpoint files for a training job. - [List training job checkpoints](https://docs.baseten.co/reference/training-api/get-training-job-checkpoints.md): Gets the checkpoints for a training job. - [Get training job logs](https://docs.baseten.co/reference/training-api/get-training-job-logs.md): Gets the logs for a training job with the provided filters. - [Get training job metrics](https://docs.baseten.co/reference/training-api/get-training-job-metrics.md): Gets the metrics for a training job. - [Get auth codes for training job](https://docs.baseten.co/reference/training-api/get-auth-codes-for-training-job.md): Gets authentication codes for all nodes of a training job's interactive sessions. - [Download training job source code](https://docs.baseten.co/reference/training-api/download-training-job.md): Returns presigned S3 URLs for the artifacts uploaded by a training job. - [Create training job](https://docs.baseten.co/reference/training-api/create-training-job.md): Creates a training job with the specified configuration. - [Recreate training job](https://docs.baseten.co/reference/training-api/recreate-training-job.md): Creates a new training job with the same configuration as an existing training job. - [Search training jobs](https://docs.baseten.co/reference/training-api/search-training-jobs.md): Searches training jobs for the organization. - [Stop training job](https://docs.baseten.co/reference/training-api/stop-training-job.md): Stops a training job. - [Sign an SSH certificate for a training job](https://docs.baseten.co/reference/training-api/signs-an-ssh-certificate-for-a-training-job.md): Signs a short-lived SSH certificate granting access to a specific training job pod. - [Update training job](https://docs.baseten.co/reference/training-api/update-training-job.md): Updates mutable fields on a PENDING training job: the queue priority (higher priorities are dequeued first) and the availability model (dedicated or spot capacity). - [Update interactive session](https://docs.baseten.co/reference/training-api/update-interactive-session.md): Updates specific fields on a training job's interactive session. - [Delete training job](https://docs.baseten.co/reference/training-api/delete-training-job.md): Deletes a training job. ### Frontier Gateway API - [Frontier Gateway API reference](https://docs.baseten.co/reference/gateway/overview.md): Manage Frontier Gateway endpoints, groups, and federated API keys through the Baseten REST API. - [Billing webhooks](https://docs.baseten.co/reference/gateway/billing-webhooks.md): Payload, header, and signature reference for Frontier Gateway billing webhooks. #### Endpoints - [List endpoints](https://docs.baseten.co/reference/gateway/endpoints/list-endpoints.md): List every Frontier Gateway endpoint in your workspace. - [Get an endpoint](https://docs.baseten.co/reference/gateway/endpoints/get-an-endpoint.md): Retrieve a single Frontier Gateway endpoint by its ID. - [Create an endpoint](https://docs.baseten.co/reference/gateway/endpoints/create-an-endpoint.md): Create a Frontier Gateway endpoint: a routing slug and the target it points to. - [Update an endpoint](https://docs.baseten.co/reference/gateway/endpoints/replace-endpoint-targets.md): Replace the targets of a Frontier Gateway endpoint. - [Delete an endpoint](https://docs.baseten.co/reference/gateway/endpoints/delete-an-endpoint.md): Delete a Frontier Gateway endpoint and stop routing its slug. #### Groups - [List groups](https://docs.baseten.co/reference/gateway/groups/list-groups.md): List Frontier Gateway groups in your workspace. Cursor-paginated, with optional lookup by external identifier. - [Get a group](https://docs.baseten.co/reference/gateway/groups/get-a-group.md): Fetch a single Frontier Gateway group by its internal id, including its effective limits after inheritance. - [Create a group](https://docs.baseten.co/reference/gateway/groups/create-a-group.md): Create a Frontier Gateway group with its model set, per-model limits, and a place in the hierarchy. - [Update a group](https://docs.baseten.co/reference/gateway/groups/update-a-group.md): Update a Frontier Gateway group's display name or model configuration. Hierarchy and enforcement mode are immutable. #### API keys - [List API keys for a group](https://docs.baseten.co/reference/gateway/api-keys/list-api-keys-for-a-group.md): List the federated API keys minted under a Frontier Gateway group. Cursor-paginated. - [Get an API key](https://docs.baseten.co/reference/gateway/api-keys/get-an-api-key.md): Fetch metadata for one federated API key by its prefix. The plaintext key is never returned after creation. - [Create an API key](https://docs.baseten.co/reference/gateway/api-keys/create-an-api-key.md): Mint a federated API key under a Frontier Gateway group. The plaintext key is returned exactly once. - [Register an API key](https://docs.baseten.co/reference/gateway/api-keys/register-an-api-key.md): Attach a caller-supplied API key to a Frontier Gateway group so downstream consumers can continue using a key they already issued. #### Events - [List gateway events](https://docs.baseten.co/reference/gateway/events/list-gateway-events.md): Fetch Frontier Gateway billing events over a time window. Cursor-paginated, with optional filters by API key prefix and external entity ID. ### Sandbox runtime API - [Sandbox runtime API reference](https://docs.baseten.co/reference/sandbox-api/overview.md): Read the API contract for file, process, and network operations inside a sandbox. #### Endpoints ##### archive - [Export the filesystem changes to a presigned URL](https://docs.baseten.co/reference/sandbox-api/archive/export-the-filesystem-changes-to-a-presigned-url.md): Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived. The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then re… - [Lift the archive freeze](https://docs.baseten.co/reference/sandbox-api/archive/lift-the-archive-freeze.md): Makes the API serve every route again after an export. The processes stopped for the export are not relaunched: this exists so a failed or aborted export does not leave the sandbox unusable. - [Get the archive status](https://docs.baseten.co/reference/sandbox-api/archive/get-the-archive-status.md): Reports whether the sandbox is frozen for an archive export, and which processes were stopped for it. ##### fastapply - [Apply code edit](https://docs.baseten.co/reference/sandbox-api/fastapply/apply-code-edit.md): Uses the configured LLM provider (Relace or Morph) to apply a code edit to the original content. ##### codegen - [Code reranking/semantic search](https://docs.baseten.co/reference/sandbox-api/codegen/code-rerankingsemantic-search.md): Uses Relace's code reranking model to find the most relevant files for a given query. This is useful as a first pass in agentic exploration to narrow down the search space. ##### drive - [List currently mounted drives](https://docs.baseten.co/reference/sandbox-api/drive/list-currently-mounted-drives.md): Returns a list of all currently mounted drives managed by blfs - [Attach a drive to a local path](https://docs.baseten.co/reference/sandbox-api/drive/attach-a-drive-to-a-local-path.md): Mounts an agent drive using the blfs binary to a local path, optionally mounting a subpath within the drive. Supports optional UID/GID mapping to remap file ownership between the local sandbox and the filer (always mapped to filer UID/GID 0). Mapping values can be set per-request via uidMap/gidMap f… - [Detach a drive from a local path](https://docs.baseten.co/reference/sandbox-api/drive/detach-a-drive-from-a-local-path.md): Unmounts a previously mounted drive from the specified local path ##### system - [Reload environment from guest metadata](https://docs.baseten.co/reference/sandbox-api/system/reload-environment-from-guest-metadata.md): Re-reads /bl/metadata and applies its environment to the sandbox-api process, so this process and every process started afterwards see the current values. Called by the guest init after an environment update; safe to call manually. - [Health check](https://docs.baseten.co/reference/sandbox-api/system/health-check.md): Returns health status and system information including upgrade count and binary details Also includes last upgrade attempt status with detailed error information if available - [Upgrade the sandbox-api](https://docs.baseten.co/reference/sandbox-api/system/upgrade-the-sandbox-api.md): Triggers an upgrade of the sandbox-api process. Returns 200 immediately before upgrading. The upgrade will: download the specified binary from GitHub releases, validate it, and restart. All running processes will be preserved across the upgrade. Available versions: "latest" (default, most recent rel… ##### filesystem - [Search for text content in files](https://docs.baseten.co/reference/sandbox-api/filesystem/search-for-text-content-in-files.md): Searches for text content inside files. Returns each matching line, with the lines around it when contextLines is set. - [Find files and directories](https://docs.baseten.co/reference/sandbox-api/filesystem/find-files-and-directories.md): Finds files and directories using the find command. - [List multipart uploads](https://docs.baseten.co/reference/sandbox-api/filesystem/list-multipart-uploads.md): List all active multipart uploads - [Initiate multipart upload](https://docs.baseten.co/reference/sandbox-api/filesystem/initiate-multipart-upload.md): Initiate a multipart upload session for a file - [Abort multipart upload](https://docs.baseten.co/reference/sandbox-api/filesystem/abort-multipart-upload.md): Abort a multipart upload and clean up all parts - [Complete multipart upload](https://docs.baseten.co/reference/sandbox-api/filesystem/complete-multipart-upload.md): Complete a multipart upload by assembling all parts - [Upload part](https://docs.baseten.co/reference/sandbox-api/filesystem/upload-part.md): Upload a single part of a multipart upload. Re-uploading a part number replaces that part. Wait for the previous request for that part to finish before retrying. - [List parts](https://docs.baseten.co/reference/sandbox-api/filesystem/list-parts.md): List all uploaded parts for a multipart upload - [Fuzzy search for files and directories](https://docs.baseten.co/reference/sandbox-api/filesystem/fuzzy-search-for-files-and-directories.md): Ranks the files and directories under a path by how well their relative path fuzzy-matches `query` (fzf algorithm: the query's characters must appear in order, not necessarily next to each other), best match first. Fuzzy search is for "jump to file" lookups from a partial name. The `patterns` parame… - [Get directory tree](https://docs.baseten.co/reference/sandbox-api/filesystem/get-directory-tree.md): Get a recursive directory tree structure starting from the specified path - [Create or update directory tree](https://docs.baseten.co/reference/sandbox-api/filesystem/create-or-update-directory-tree.md): Create or update multiple files within a directory tree structure. Idempotent: existing files are overwritten, so retrying the same request is safe. - [Delete directory tree](https://docs.baseten.co/reference/sandbox-api/filesystem/delete-directory-tree.md): Delete a directory tree recursively - [Get file or directory information](https://docs.baseten.co/reference/sandbox-api/filesystem/get-file-or-directory-information.md): Get content of a file or listing of a directory. Use Accept header to control response format for files. - [Create or update a file or directory](https://docs.baseten.co/reference/sandbox-api/filesystem/create-or-update-a-file-or-directory.md): Create or update a file or directory. - [Delete file or directory](https://docs.baseten.co/reference/sandbox-api/filesystem/delete-file-or-directory.md): Delete a file or directory - [Stat a file or directory](https://docs.baseten.co/reference/sandbox-api/filesystem/stat-a-file-or-directory.md): Returns the metadata of a file or directory as headers, with no body. This checks stat availability, not permission to read file contents or list a directory. When the path does not exist or its metadata cannot be accessed, the response is an empty 200 without the X-File-Type header. - [Stream file modification events in a directory](https://docs.baseten.co/reference/sandbox-api/filesystem/stream-file-modification-events-in-a-directory.md): Streams change events for a directory until the client disconnects. ##### network - [Start monitoring ports for a process](https://docs.baseten.co/reference/sandbox-api/network/start-monitoring-ports-for-a-process.md): Start monitoring for new ports opened by a process - [Stop monitoring ports for a process](https://docs.baseten.co/reference/sandbox-api/network/stop-monitoring-ports-for-a-process.md): Stop monitoring for new ports opened by a process - [Get open ports for a process](https://docs.baseten.co/reference/sandbox-api/network/get-open-ports-for-a-process.md): Get a list of all open ports for a process - [Disconnect tunnel](https://docs.baseten.co/reference/sandbox-api/network/disconnect-tunnel.md): Stop the network tunnel and restore the original network configuration. WARNING: After disconnecting, the sandbox will lose all outbound internet connectivity (no egress). Inbound connections to the sandbox will still work. Use PUT /network/tunnel/config to re-establish the tunnel. - [Update tunnel configuration](https://docs.baseten.co/reference/sandbox-api/network/update-tunnel-configuration.md): Apply a new tunnel configuration on the fly. The existing tunnel is torn down and a new one is established. This endpoint is write-only; there is no corresponding GET to read the config back. ##### process - [List all processes](https://docs.baseten.co/reference/sandbox-api/process/list-all-processes.md): Get a list of all running and completed processes - [Execute a command](https://docs.baseten.co/reference/sandbox-api/process/execute-a-command.md): Execute a command and return process information. - [Get process by identifier](https://docs.baseten.co/reference/sandbox-api/process/get-process-by-identifier.md): Get information about a process by its PID or name - [Stop a process](https://docs.baseten.co/reference/sandbox-api/process/stop-a-process.md): Request graceful termination. Poll GET /process/{identifier} until terminal status confirms the managed process has exited. - [Kill a process](https://docs.baseten.co/reference/sandbox-api/process/kill-a-process.md): Request forceful termination. Poll GET /process/{identifier} until terminal status confirms the managed process has exited. - [Get process logs](https://docs.baseten.co/reference/sandbox-api/process/get-process-logs.md): Get the stdout and stderr output of a process - [Stream process logs in real time](https://docs.baseten.co/reference/sandbox-api/process/stream-process-logs-in-real-time.md): Streams the stdout and stderr output of a process in real time: the output so far, then live output as the process writes it. Closes when the process exits or the client disconnects. By default, output is plain text with `stdout:` or `stderr:` prefixes at the start of each source stream's lines. Par… - [Write to a process's stdin](https://docs.baseten.co/reference/sandbox-api/process/write-to-a-processs-stdin.md): Write the raw request body to the stdin of a process started with "stdin": true. Bytes are forwarded verbatim, so include the trailing newline your protocol expects. Sequential requests keep their order; each body is written atomically with respect to other writers. The pipe does not survive a sandb… - [Close a process's stdin](https://docs.baseten.co/reference/sandbox-api/process/close-a-processs-stdin.md): Send EOF to the process by closing its stdin pipe. Idempotent. For stdio protocols such as MCP this is the clean shutdown path. ### CLI reference - [Baseten command-line tools](https://docs.baseten.co/reference/cli/index.md): The Baseten CLI deploys and operates models while the Truss CLI authors model code: what each is for, where they overlap, and how to use them together. - [Baseten Switch CLI reference](https://docs.baseten.co/reference/cli/baseten-switch.md): Install, connect Claude Code, Codex CLI, and Pi, and control routing, spend, and health with the baseten-switch CLI. #### Baseten CLI - [Baseten CLI overview](https://docs.baseten.co/reference/cli/baseten/overview.md): Manage your Baseten workspace from the command line: organizations, API keys, secrets, deployment lifecycle, replicas, and raw API access. Designed for automation. - [baseten auth](https://docs.baseten.co/reference/cli/baseten/auth.md): Manage authentication - [baseten api](https://docs.baseten.co/reference/cli/baseten/api.md): Make raw API requests - [baseten grid](https://docs.baseten.co/reference/cli/baseten/grid.md): Manage Baseten Grid (PRE-RELEASE) - [baseten model](https://docs.baseten.co/reference/cli/baseten/model.md): Manage Baseten models - [baseten model-api](https://docs.baseten.co/reference/cli/baseten/model-api.md): Manage Model APIs - [baseten org](https://docs.baseten.co/reference/cli/baseten/org.md): Manage organization resources - [baseten sandbox](https://docs.baseten.co/reference/cli/baseten/sandbox.md): Manage sandboxes (PRE-RELEASE) - [baseten ssh](https://docs.baseten.co/reference/cli/baseten/ssh.md): Manage SSH access to Baseten workloads - [baseten volume](https://docs.baseten.co/reference/cli/baseten/volume.md): Manage volumes - [baseten truss](https://docs.baseten.co/reference/cli/baseten/truss.md): Run truss commands - [baseten version](https://docs.baseten.co/reference/cli/baseten/version.md): Print the baseten CLI version - [baseten whoami](https://docs.baseten.co/reference/cli/baseten/whoami.md): Show the authenticated user - [baseten loops](https://docs.baseten.co/reference/cli/baseten/loops.md): Manage Loops runs and checkpoints - [baseten train](https://docs.baseten.co/reference/cli/baseten/train.md): Manage training projects and jobs #### Truss CLI - [Truss CLI reference](https://docs.baseten.co/reference/cli/truss/overview.md): Author model code and run the Chains, Training, and Loops workflows with the Truss CLI. - [truss auth](https://docs.baseten.co/reference/cli/truss/auth.md): Manage authentication with Baseten remotes. - [truss cleanup](https://docs.baseten.co/reference/cli/truss/cleanup.md): Clean up Truss data. - [truss configure](https://docs.baseten.co/reference/cli/truss/configure.md): Configure Truss settings. - [truss container](https://docs.baseten.co/reference/cli/truss/container.md): Run and manage Truss containers locally. - [truss download](https://docs.baseten.co/reference/cli/truss/download.md): Download the Truss for a deployed model. - [truss login](https://docs.baseten.co/reference/cli/truss/login.md): Authenticate with Baseten. - [truss image](https://docs.baseten.co/reference/cli/truss/image.md): Build and manage Truss Docker images. - [truss init](https://docs.baseten.co/reference/cli/truss/init.md): Create a new Truss project. - [truss migrate](https://docs.baseten.co/reference/cli/truss/migrate.md): Migrate model_cache and external_data to the unified weights API. - [truss model-config](https://docs.baseten.co/reference/cli/truss/model-config.md): Fetch the config of a deployed model. - [truss model-logs](https://docs.baseten.co/reference/cli/truss/model-logs.md): Fetch logs for a deployed model. - [truss push](https://docs.baseten.co/reference/cli/truss/push.md): Deploy a model to Baseten. - [truss run-python](https://docs.baseten.co/reference/cli/truss/run-python.md): Run a Python script in the Truss environment. - [truss ssh](https://docs.baseten.co/reference/cli/truss/ssh.md): SSH access to Baseten workloads. - [truss upgrade](https://docs.baseten.co/reference/cli/truss/upgrade.md): Upgrade the truss package to the latest or a specified version. - [truss watch](https://docs.baseten.co/reference/cli/truss/watch.md): Live reload during development. - [truss whoami](https://docs.baseten.co/reference/cli/truss/whoami.md): Show user information. - [Chains CLI reference](https://docs.baseten.co/reference/cli/chains/chains-cli.md): Deploy, manage, and develop Chains using the Truss CLI. - [Loops CLI reference](https://docs.baseten.co/reference/cli/loops/loops-cli.md): Deploy and inspect Loops sessions, runs, samplers, and checkpoints using the Truss CLI. - [Training CLI reference](https://docs.baseten.co/reference/cli/training/training-cli.md): Deploy, manage, and monitor training jobs using the Truss CLI. ### SDKs and clients - [Chains SDK reference](https://docs.baseten.co/reference/sdk/chains.md): Python SDK reference for Chains. - [Training SDK](https://docs.baseten.co/reference/sdk/training.md): API reference for the Baseten training SDK. #### Management SDKs - [Python management SDK](https://docs.baseten.co/reference/sdk/management/python.md): Manage models and deployments with the Baseten Python SDK. - [TypeScript and JavaScript management SDK](https://docs.baseten.co/reference/sdk/management/typescript.md): Manage models and deployments with the Baseten TypeScript and JavaScript SDK. - [Go management SDK](https://docs.baseten.co/reference/sdk/management/go.md): Manage models and deployments with the Baseten Go SDK. #### Truss - [Truss SDK reference](https://docs.baseten.co/reference/sdk/truss/overview.md): Python SDK for deploying and managing models with Truss. - [truss.login](https://docs.baseten.co/reference/sdk/truss/login.md): Authenticate the Truss CLI with a Baseten API key and persist the credentials. - [truss.push](https://docs.baseten.co/reference/sdk/truss/push.md): Deploy a Truss model to Baseten from Python. - [truss.load](https://docs.baseten.co/reference/sdk/truss/load.md): Load a Truss build context from a local directory. - [truss.whoami](https://docs.baseten.co/reference/sdk/truss/whoami.md): Return account information for the authenticated user. - [ModelDeployment](https://docs.baseten.co/reference/sdk/truss/model-deployment.md): The object returned by truss.push(). #### Loops - [Loops Python SDK](https://docs.baseten.co/reference/sdk/loops/overview.md): Install the Loops SDK to run LoRA training, save checkpoints, and generate samples from Python. - [ServiceClient](https://docs.baseten.co/reference/sdk/loops/service-client.md): Create runs and samplers, manage the Loops session, and list checkpoints. - [TrainingClient](https://docs.baseten.co/reference/sdk/loops/training-client.md): Run forward and backward passes, optimizer steps, and publish weights against a live Loops trainer. - [SamplingClient](https://docs.baseten.co/reference/sdk/loops/sampling-client.md): Generate completions from current or version-pinned Loops weights. - [Types](https://docs.baseten.co/reference/sdk/loops/types.md): Training inputs, configuration, and result handles passed to and from the Loops clients. - [Errors](https://docs.baseten.co/reference/sdk/loops/errors.md): The Loops SDK exception types and when each is raised. - [Helpers](https://docs.baseten.co/reference/sdk/loops/helpers.md): Utility helpers exposed by the Loops SDK alongside the core clients. #### Performance clients - [Performance clients](https://docs.baseten.co/reference/sdk/performance-client/overview.md): Send concurrent inference requests with the Baseten Performance Client for Python, Node.js, or Rust. - [Python performance client](https://docs.baseten.co/reference/sdk/performance-client/python.md): Send concurrent embedding, reranking, classification, and custom HTTP requests from Python. - [Node.js performance client](https://docs.baseten.co/reference/sdk/performance-client/node.md): Send concurrent embedding, reranking, classification, and custom HTTP requests from Node.js. - [Rust performance client](https://docs.baseten.co/reference/sdk/performance-client/rust.md): Send concurrent inference requests from Rust with the Baseten Performance Client. ### Configuration - [Configuration reference](https://docs.baseten.co/reference/configuration.md): Configure Truss deployments, inference engines, and training jobs. - [Truss configuration](https://docs.baseten.co/reference/truss-configuration.md): Set your model resources, dependencies, and more - [BIS-LLM configuration](https://docs.baseten.co/engines/bis-llm/bis-llm-config.md): Configure a BIS-LLM (v2) deployment: engine selection, model weights, runtime settings, and token-based autoscaling - [BEI configuration](https://docs.baseten.co/engines/bei/bei-reference.md): Complete reference config for BEI and BEI-Bert engines - [Engine-Builder-LLM configuration](https://docs.baseten.co/engines/engine-builder-llm/engine-builder-config.md): Complete reference config for dense text generation models ### Metrics - [Exported metrics reference](https://docs.baseten.co/observability/export-metrics/supported-metrics.md): Every metric you can export from Baseten, with its type and labels ### Integrations - [Terraform provider](https://docs.baseten.co/reference/integrations/terraform.md): Manage Baseten resources with Terraform. - [Truss Push GitHub Action](https://docs.baseten.co/reference/ci/github-action.md): Deploy and validate a Truss model or Chain on Baseten from GitHub Actions. ## OpenAPI Specs - [inference-api-spec](/reference/inference-api/inference-api-spec.json) - [llm-openapi-spec](/reference/inference-api/llm-openapi-spec.json) - [responses-openapi-spec](/reference/inference-api/responses-openapi-spec.json) - [messages-openapi-spec](/reference/inference-api/messages-openapi-spec.json) - [openapi](/reference/sandbox-api/openapi.json)