Model endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/models | Get all models |
GET | /v1/models/{model_id} | Get models by ID |
DEL | /v1/models/{model_id} | Delete models |
Chain endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/chains | Get all Chains |
GET | /v1/chains/{chain_id} | Get all Chains by ID |
DEL | /v1/chains/{chain_id} | Delete Chains |
Deployment endpoints
- Models
- Chains
Activate a model deployment
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/models/{model_id}/environments/{env_name}/activate | Activate an environment |
POST | /v1/models/{model_id}/deployments/development/activate | Activate development |
POST | /v1/models/{model_id}/deployments/{deployment_id}/activate | Activate a deployment |
Deactivate a model deployment
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/models/{model_id}/environments/{env_name}/deactivate | Deactivate an environment |
POST | /v1/models/{model_id}/deployments/development/deactivate | Deactivate development |
POST | /v1/models/{model_id}/deployments/{deployment_id}/deactivate | Deactivate a deployment |
Promote a model deployment
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/models/{model_id}/environments/{env_name}/promote | Promote to model environment |
POST | /v1/models/{model_id}/environments/{env_name}/cancel_promotion | Cancel a promotion to an environment |
POST | /v1/models/{model_id}/deployments/development/promote | Promote development deployment |
POST | /v1/models/{model_id}/deployments/{deployment_id}/promote | Promote any deployment |
Autoscaling
| Method | Endpoint | Description |
|---|---|---|
PATCH | .../deployments/development/autoscaling_settings | Updates development’s autoscaling settings |
PATCH | .../deployments/{deployment_id}/autoscaling_settings | Updates a deployment’s autoscaling settings |
Manage deployment endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/models/{model_id}/deployments | Get all model deployments |
GET | /v1/models/{model_id}/deployments/production | Production model deployment |
GET | /v1/models/{model_id}/deployments/development | Development model deployment |
GET | /v1/models/{model_id}/deployments/{deployment_id} | Any model deployment by ID |
DEL | /v1/models/{model_id}/deployments/{deployment_id} | Delete model deployments |
Environment endpoints
- Models
- Chains
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/models/{model_id}/environments | Create environment |
GET | /v1/models/{model_id}/environments | Get all environments |
GET | /v1/models/{model_id}/environments/{env_name} | Get an environment details |
PATCH | /v1/models/{model_id}/environments/{env_name} | Update model environment |
Instance type endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/instance_types | Get all instance types |
GET | /v1/instance_type_prices | Get instance type prices |
Team endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/teams | Get all teams |
Secret endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/secrets | Get all secrets |
POST | /v1/secrets | Create or update a secret |
GET | /v1/teams/{team_id}/secrets | Get all team secrets |
POST | /v1/teams/{team_id}/secrets | Create or update a team secret |
API Key endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/api_keys | Get all API keys |
POST | /v1/api_keys | Create an API key |
DELETE | /v1/api_keys/{api_key_prefix} | Delete an API key |
POST | /v1/teams/{team_id}/api_keys | Create a team API key |