Skip to content

Change a template

PUT
/api/v1/templates/{id}
curl --request PUT \
--url https://gpu-kitchen.example.lan/api/v1/templates/1 \
--header 'Content-Type: application/json' \
--cookie gpuk_session=<gpuk_session> \
--data '{ "name": "example", "name_is_customized": true, "model_id": 1, "engine_id": 1, "own_image": { "image": "example", "port": 1, "health_path": "/", "generation_route": "completions", "env": [], "max_concurrent_requests": 1 }, "gpu_config": "example", "objective": "chat", "params": { "additionalProperty": "example" }, "request_params": { "additionalProperty": "example" }, "notes": "example", "task_type": "text-generation", "description": "example", "fixed_args": "example", "quant_model_ids": [ 1 ], "own_gpu_count": 1, "own_vram_per_gpu_gb": 1, "vram_per_gpu_gb": 1, "nvlink_condition": "with", "own_compute_capability": "example", "declared_plat": { "kv": "example", "options": "example", "context": 1 }, "ram_tier_gb": 1, "ram_cache_max_gb": 1 }'

Its name, notes, parameters and axes change; its setup (model, engine, task) is fixed: duplicate it to change that.

id
required
integer
> 0 <= 2147483647
Media typeapplication/json
object
name
string
<= 200 characters
name_is_customized
boolean | null
model_id
Any of:
integer
> 0 <= 2147483647
engine_id
integer
> 0 <= 2147483647
own_image
object
image
required
string
>= 1 characters <= 512 characters
port
required
integer
>= 1 <= 65535
health_path
string format: starts_with
default: / <= 512 characters /^\/.*/
generation_route
string
default: completions
Allowed values: completions chat
env
Array
default: <= 64 items
Any of:
object
name
required
string
>= 1 characters <= 128 characters
value
required
string
<= 65536 characters
max_concurrent_requests
number | null
gpu_config
string
>= 1 characters <= 200 characters
objective
Any of:
string
Allowed values: chat many-users long-documents batch efficiency
params
Any of:
object
key
additional properties
request_params
object
key
additional properties
notes
string | null
task_type
string
Allowed values: text-generation embedding reranking classification asr tts speech-to-speech image-generation vision audio-generation video-generation custom
description
string | null
fixed_args
string | null
quant_model_ids
Any of:
Array<integer>
own_gpu_count
Any of:
integer
> 0 <= 9007199254740991
own_vram_per_gpu_gb
Any of:
number
> 0
vram_per_gpu_gb
Any of:
number
> 0 <= 1024
nvlink_condition
Any of:
string
Allowed values: with without
own_compute_capability
Any of:
string
/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/
declared_plat
Any of:
object
kv
required
string
<= 32 characters
options
required
string
<= 8 characters
context
required
integer
> 0 <= 100000000
ram_tier_gb
Any of:
integer
>= 1 <= 1048576
ram_cache_max_gb
Any of:
number
<= 1048576

Success.

Media typeapplication/json
object
template
required
object
id
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
name_is_customized
required
boolean
model_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
engine_id
required
integer
>= -9007199254740991 <= 9007199254740991
gpu_config
required

[BLD-15] The exact GPU configuration its benchmarks run on: card model × count, e.g. “rtx 3090*2”. It is no requirement: each variation forecasts its own.

string
objective
required
Any of:
string
Allowed values: chat many-users long-documents batch efficiency
params
required
Any of:
object
key
additional properties
request_params
required

The parameters each benchmark request is sent with, and their axes.

object
key
additional properties
notes
required
string | null
task_type
required

What the model does: text-generation, embeddings, image…

string
Allowed values: text-generation embedding reranking classification asr tts speech-to-speech image-generation vision audio-generation video-generation custom
description
required
string | null
fixed_args
required
string | null
max_concurrent_requests
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
own_gpu_count
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
own_vram_per_gpu_gb
required

[BLD-370] The usable VRAM per card an own image needs, in GB; null otherwise.

number | null
vram_per_gpu_gb
required

[BLD-390] The VRAM per GPU a catalog engine’s template allows its recipes, in GB; null for an own image.

number | null
nvlink_condition
required
Any of:
string
Allowed values: with without
own_compute_capability
required

[BLD-370] The lowest compute capability an own image needs, when its author set one.

string | null
declared_plat
required
Any of:
object
kv
required
string
<= 32 characters
options
required
string
<= 8 characters
context
required
integer
> 0 <= 100000000
ram_tier_gb
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
ram_cache_max_gb
required

[VIS-31] The largest size its options give a RAM cache that grows with traffic, in GB; null when it declares none.

number | null
created_at
required
string format: date-time
updated_at
required
string format: date-time
best_single_thread
required

[REG-330] The best speed per user: 1000 / the lowest ITL p50, in tokens/s.

number | null
best_multi_thread
required
number | null
model_name
required
string | null
model_capabilities
required
Array<string>
engine_name
required
string | null
quant_model_ids
required
Any of:
Array<integer>
variations_count
required

The recipes it has materialized.

integer
>= -9007199254740991 <= 9007199254740991
Example
{
"template": {
"objective": "chat",
"task_type": "text-generation",
"nvlink_condition": "with"
}
}

Error codes: validation_error.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: auth_required.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: forbidden, management_key_read_only, own_image_admins_only.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: template_not_found.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: template_setup_fixed.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: payload_too_large.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: custom_name_invalid, custom_name_taken, engine_task_unsupported, engine_unavailable, gpu_config_invalid, model_required, nvlink_condition_unavailable, objective_required, objective_task_mismatch, own_image_params, own_requirement_not_own_image, ram_cache_without_tier, request_params_invalid, vram_budget_not_offered, vram_per_gpu_over_usable, vram_per_gpu_own_image, vram_per_gpu_required, workload_task_mismatch.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: rate_limited.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}