Management API
Get all models
- Truss docs
- Changelog
- Model library
- POSTProduction deployment
- POSTDevelopment deployment
- POSTPublished deployment
OpenAI compatible endpoints
Wake deployment endpoints
Deprecated endpoints
- POSTProduction deployment
- POSTDevelopment deployment
- POSTPublished deployment
- GETGet async request status
- DELCancel async request
- GETGet all secrets
- POSTUpsert a secret
- GETGet all models
- GETGet a model by ID
- GETGet all model deployments
Get model deployment
Update autoscaling settings
Promote deployment
Activate deployment
Deactivate deployment
Inference API
Async Inference API
Management API
Management API
Get all models
curl --request GET \
--url https://api.baseten.co/v1/models \
--header "Authorization: Api-Key $BASETEN_API_KEY" \
{
"models": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"deployments_count": 123,
"production_deployment_id": "<string>",
"development_deployment_id": "<string>",
"instance_type_name": "<string>"
}
]
}
Authorizations
Authorization
string
headerrequiredYou must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>
Response
200 - application/json
models
object[]
requiredmodels.id
string
requiredUnique identifier of the model
models.created_at
string
requiredTime the model was created in ISO 8601 format
models.name
string
requiredName of the model
models.deployments_count
integer
requiredNumber of deployments of the model
models.production_deployment_id
string | null
requiredUnique identifier of the production deployment of the model
models.development_deployment_id
string | null
requiredUnique identifier of the development deployment of the model
models.instance_type_name
string
requiredName of the instance type the model is deployed on
curl --request GET \
--url https://api.baseten.co/v1/models \
--header "Authorization: Api-Key $BASETEN_API_KEY" \
{
"models": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"deployments_count": 123,
"production_deployment_id": "<string>",
"development_deployment_id": "<string>",
"instance_type_name": "<string>"
}
]
}