Skip to main content
POST
gpu.template.create

Authorizations

Authorization
string
header
required

API key: sk_live_…

Headers

Idempotency-Key
string
required

Required: this capability has an external effect.

Maximum string length: 255
Pramaan-Max-Price-Micro
string

Optional. The most this request may be priced at, in micro-USD (a whole number above 0). It replaces the capability's own price ceiling for this request, lower or higher. Sources that could cost more are left out; when none is left the answer is 400 with the lowest limit that would work.

Pattern: ^[1-9]\d{0,14}$

Body

application/json
name
string
required

Your chosen name, unique within this kind of resource.

Required string length: 1 - 100
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9 ._-]*$
image
string
required

Container image you control.

Required string length: 1 - 1024
startCommand
string

Raw container start command; use this or command/entrypoint, not both.

Maximum string length: 8192
command
string[]

Container command in argument form; an empty array clears it.

Maximum array length: 100

One command argument.

Maximum string length: 2048
entrypoint
string[]

Override the image entrypoint; an empty array clears it.

Maximum array length: 100

One entrypoint argument.

Maximum string length: 2048
diskGB
integer

Ephemeral container disk in GB, 1 to 1000.

Required range: 1 <= x <= 1000
environment
object

Environment values, forwarded only; omitted from results and saved ownership data.

ports
string[]

Ports exposed by the container.

Maximum array length: 30

Port number and protocol, such as 8080/http.

Pattern: ^(?:[1-9]\d{0,4})\/(?:http|tcp)$
registryName
string | null

Your registry credential name; null removes it.

Required string length: 1 - 100
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9 ._-]*$
category
enum<string>

Template workload category.

Available options:
cpu,
gpu,
alternate-gpu
serverless
boolean

True for serverless workers, false for persistent machines.

public
boolean

Explicitly share this template publicly; default false.

startSsh
boolean

Provision secure shell access when deployed; default false.

startNotebook
boolean

Start a notebook server when deployed; default false.

allowedRuntimeVersions
string[]

Acceptable accelerator runtime versions.

Maximum array length: 32

Version in major.minor form.

Pattern: ^\d+\.\d+$
persistentMount
object

Persistent mount configuration for future deployments.

Response

The result

name
any
required

Your template name.

serverless
boolean
required

Whether this is a serverless template.

public
boolean
required

Whether the template is public.

diskGB
integer
required

Configured container disk in GB.

Required range: x <= 9007199254740991