Skip to main content
POST
Create Template

En-têtes

Content-Type
string
requis

Allowed value: application/json.

Authorization
string
requis

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

Corps

application/json
name
string
requis

Template name.

Exemple:

"pytorch-2.3-cuda12"

type
string
requis

Template type.

Exemple:

"instance"

image
string
requis

Image address.

Exemple:

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

registry_auth_id
string

Registry authentication ID.

Exemple:

"auth-001"

command
string

Startup command.

Exemple:

""

entrypoint
string

Image entrypoint.

Exemple:

"/bin/bash"

rootfs_size_gb
integer

Root disk size. Unit: GB.

Exemple:

50

ports
object[]

Exposed port configuration.

envs
object[]

Environment variables.

metadata
object

Template metadata.

min_cuda_version
string

Minimum CUDA version.

Exemple:

"12.2"

Réponse

200 - application/json

OK

template_id
string

Template ID

Exemple:

"tpl-001"

Dernière modification le 10 août 2026