curl --request GET \ 
--url https://api.baseten.co/v1/models/{model_id}/deployments/production \ 
--header "Authorization: Api-Key $BASETEN_API_KEY" \ 
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "model_id": "<string>",
  "is_production": true,
  "is_development": true,
  "status": "BUILDING",
  "active_replica_count": 123,
  "autoscaling_settings": {
    "min_replica": 123,
    "max_replica": 123,
    "autoscaling_window": 123,
    "scale_down_delay": 123,
    "concurrency_target": 123
  }
}

Authorizations

Authorization
string
headerrequired

You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>

Path Parameters

model_id
string
required

Response

200 - application/json
id
string
required

Unique identifier of the deployment

created_at
string
required

Time the deployment was created in ISO 8601 format

name
string
required

Name of the deployment

model_id
string
required

Unique identifier of the model

is_production
boolean
required

Whether the deployment is the production deployment of the model

is_development
boolean
required

Whether the deployment is the development deployment of the model

status
enum<string>
required

Status of the deployment

Available options:
BUILDING,
DEPLOYING,
DEPLOY_FAILED,
LOADING_MODEL,
ACTIVE,
UNHEALTHY,
BUILD_FAILED,
BUILD_STOPPED,
DEACTIVATING,
INACTIVE,
FAILED,
UPDATING,
SCALED_TO_ZERO,
WAKING_UP
active_replica_count
integer
required

Number of active replicas

autoscaling_settings
object
required

Autoscaling settings for the deployment