v1
latestOpenAPI 3.1.02026-07-13897404.3 KBServerless
create workergroup
Creates a new workergroup configuration that manages worker instances for a serverless endpoint.
CLI Usage: vastai create workergroup --template_hash <hash> --endpoint_name <name> [options]
post/api/v0/workergroups/
Request body
Example request
{
"endpoint_name": "vLLM-Qwen3-8B",
"endpoint_id": 123,
"template_hash": "abc123def456",
"template_id": 456,
"search_params": "gpu_name=RTX_3090 rentable=true",
"launch_args": "--env VAR=value",
"min_load": 1,
"target_util": 0.9,
"cold_mult": 3,
"cold_workers": 3,
"max_workers": 20,
"test_workers": 3,
"gpu_ram": 24
}Response
Successfully created workergroup
Example response
{
"success": true,
"id": 789
}