Skip to main content
POST
Create Template

Header

Content-Type
string
erforderlich

Allowed value: application/json.

Authorization
string
erforderlich

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

Body

application/json
name
string
erforderlich

Template name.

Beispiel:

"pytorch-2.3-cuda12"

type
string
erforderlich

Template type.

Beispiel:

"instance"

image
string
erforderlich

Image address.

Beispiel:

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

registry_auth_id
string

Registry authentication ID.

Beispiel:

"auth-001"

command
string

Startup command.

Beispiel:

""

entrypoint
string

Image entrypoint.

Beispiel:

"/bin/bash"

rootfs_size_gb
integer

Root disk size. Unit: GB.

Beispiel:

50

ports
object[]

Exposed port configuration.

envs
object[]

Environment variables.

metadata
object

Template metadata.

min_cuda_version
string

Minimum CUDA version.

Beispiel:

"12.2"

Antwort

200 - application/json

OK

template_id
string

Template ID

Beispiel:

"tpl-001"

Zuletzt geändert am 10. August 2026