Skip to main content
POST
Create Template

Headers

Content-Type
string
vereist

Allowed value: application/json.

Authorization
string
vereist

Bearer authentication format, e.g.: Bearer {{API_KEY}}.

Body

application/json
name
string
vereist

Template name.

Voorbeeld:

"pytorch-2.3-cuda12"

type
string
vereist

Template type.

Voorbeeld:

"instance"

image
string
vereist

Image address.

Voorbeeld:

"registry.example.com/ml/pytorch:2.3-cuda12"

registry_auth_id
string

Registry authentication ID.

Voorbeeld:

"auth-001"

command
string

Startup command.

Voorbeeld:

""

entrypoint
string

Image entrypoint.

Voorbeeld:

"/bin/bash"

rootfs_size_gb
integer

Root disk size. Unit: GB.

Voorbeeld:

50

ports
object[]

Exposed port configuration.

envs
object[]

Environment variables.

metadata
object

Template metadata.

min_cuda_version
string

Minimum CUDA version.

Voorbeeld:

"12.2"

Respons

200 - application/json

OK

template_id
string

Template ID

Voorbeeld:

"tpl-001"

Laatst gewijzigd op 10 augustus 2026