Training API
Overview
The Training API enables programmatic management of Baseten Training resources.
The Training API allows you to manage training projects, jobs, and related resources through a RESTful interface. This API is used to:
- Monitor training job metrics and logs
- Manage training jobs
- Manage checkpoints and artifacts
Authentication
All Training API requests require authentication using an API key:
Base URL
All Training API endpoints are relative to:
Available Endpoints
Training Projects
Method | Endpoint | Description |
---|---|---|
GET | /training_projects | List all training projects |
POST | /training_projects | Create a new training project |
Training Jobs
Note: Creating Training Jobs via REST API is not supported at this time.
The following endpoints have the relative base path: /training_projects/{training_project_id}/jobs
Method | Endpoint | Description |
---|---|---|
GET | .../ | List all jobs in a project |
GET | .../{training_job_id} | Get a specific training job |
POST | .../{training_job_id}/stop | Stop a training job |
POST | .../{training_job_id}/logs | Get training job logs |
POST | .../{training_job_id}/metrics | Get training job metrics |
GET | .../{training_job_id}/checkpoints | List job checkpoints |
Search endpoint:
Method | Endpoint | Description |
---|---|---|
POST | /training_jobs/search | Search across all training jobs |