DeploymentService
Create a deployment
Changed onCreates a model deployment under an endpoint. The deployment provisions asynchronously; monitor its status before routing live traffic to it.
post/v2/projects/{projectId}/endpoints/{endpointId}/deployments
Request
- Base URLhttps://api.together.ai
- URLhttps://api.together.ai/v2/projects/{projectId}/endpoints/{endpointId}/deployments
- AuthHTTP bearer
Path parameters
projectIdstring required
ID of the project that owns the endpoint.
endpointIdstring required
ID of the endpoint that will contain the deployment.
Query parameters
validateOnlyboolean
When true, validates the request without creating or provisioning a deployment.
Request body
Example request
{
"autoscaling": {
"scaleUp": {
"policies": [
{
"type": "SCALING_POLICY_TYPE_PERCENT",
"value": 25,
"periodSeconds": 60
},
{
"type": "SCALING_POLICY_TYPE_PODS",
"value": 10,
"periodSeconds": 60
}
],
"selectPolicy": "SCALING_POLICY_SELECT_MIN"
},
"scaleDown": {
"policies": [
{
"type": "SCALING_POLICY_TYPE_PERCENT",
"value": 25,
"periodSeconds": 60
},
{
"type": "SCALING_POLICY_TYPE_PODS",
"value": 10,
"periodSeconds": 60
}
],
"selectPolicy": "SCALING_POLICY_SELECT_MIN"
}
}
}Response
OK
Example response
{
"autoscaling": {
"scaleUp": {
"policies": [
{
"type": "SCALING_POLICY_TYPE_PERCENT",
"value": 25,
"periodSeconds": 60
},
{
"type": "SCALING_POLICY_TYPE_PODS",
"value": 10,
"periodSeconds": 60
}
],
"selectPolicy": "SCALING_POLICY_SELECT_MIN"
},
"scaleDown": {
"policies": [
{
"type": "SCALING_POLICY_TYPE_PERCENT",
"value": 25,
"periodSeconds": 60
},
{
"type": "SCALING_POLICY_TYPE_PODS",
"value": 10,
"periodSeconds": 60
}
],
"selectPolicy": "SCALING_POLICY_SELECT_MIN"
}
}
}Changes
- info
endpoint added
- info