API reference
Baseten provides APIs for inference, workspace management, training, and the Frontier Gateway:
Inference API
Call deployed models and Chains.

Management API
Manage models, workspaces, and deployments.
Training API
Use the Loops API and manage training projects and jobs.
Frontier Gateway API
Manage gateway endpoints, groups, and federated API keys.
CLI reference
The Baseten and Truss CLIs cover model authoring, deployment, and workspace management. See the CLI overview to choose the right CLI for a task.- Truss CLI reference: Commands for initializing, deploying, and managing models.
- Baseten CLI reference: Commands for managing organizations, API keys, secrets, and the deployment lifecycle from scripts and CI.
- Chains CLI reference: Commands for orchestrating multi-model workflows.
- Loops CLI reference: Commands for deploying and inspecting Loops sessions, runs, samplers, and checkpoints.
- Training CLI reference: Commands for managing training jobs.
- Baseten Switch CLI reference: Commands for routing Claude Code, Codex CLI, and Pi to Model APIs.
Truss configuration
The Truss configuration reference documents every key inconfig.yaml: model resources, dependencies, secrets, and engine settings.
SDK reference
Use the Python SDKs to deploy models, manage deployments, and call models from code.- Truss SDK reference: Deploy and interact with Truss models using Python.
- Chains SDK reference: Build and manage inference chains programmatically.
- Loops SDK reference: Python clients for Loops training, sampling, and session management.
- Training SDK reference: Deploy and interact with trained models using Python.