Everywhere Inference
Create inference deployment
post/cloud/v3/inference/{project_id}/deployments
Path parameters
project_idinteger required
Project ID
Example:1
Project ID
Request body
Example request
{
"api_keys": [
"key1",
"key2"
],
"command": [
"nginx",
"-g",
"daemon off;"
],
"containers": [
{
"region_id": 1,
"scale": {
"cooldown_period": 60,
"max": 3,
"min": 1,
"triggers": {
"cpu": {
"threshold": 80
},
"memory": {
"threshold": 70
}
}
}
}
],
"credentials_name": "dockerhub",
"description": "My first instance",
"envs": {
"DEBUG_MODE": "False",
"KEY": "12345"
},
"flavor_name": "inference-16vcpu-232gib-1xh100-80gb",
"image": "nginx:latest",
"ingress_opts": {
"disable_response_buffering": true
},
"listening_port": 80,
"logging": {
"destination_region_id": 1,
"enabled": true,
"retention_policy": {
"period": 45
},
"topic_name": "my-log-name"
},
"name": "my-instance",
"probes": {
"liveness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"readiness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"startup_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
}
},
"timeout": 120
}Response
OK
Example response
{
"tasks": [
"d478ae29-dedc-4869-82f0-96104425f565"
]
}