Skip to main content
POST
code.sandbox.create-configured

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
language
enum<string>
required

Runtime language; a controlled image must contain it.

Available options:
python,
javascript,
bash,
typescript,
r,
java
ttlSeconds
integer
default:300

Prepaid lifetime, 60–1,800 seconds.

Required range: 60 <= x <= 1800
environment
object

Non-secret application variables, up to 64 entries and 16,384 UTF-8 bytes. Do not include credentials.

cpu
integer
default:2

Reserved CPU cores, 1–8; larger choices cost more.

Required range: 1 <= x <= 8
memoryGiB
integer
default:4

Reserved memory, 1–8 GiB.

Required range: 1 <= x <= 8
diskGiB
integer
default:10

Reserved disk, 1–20 GiB.

Required range: 1 <= x <= 20
gpu
integer
default:0

Graphics processors, 0 by default; 1 requires an enabled tier.

Required range: 0 <= x <= 1
gpuClass
enum<string>

Requested graphics class; only explicitly enabled priced classes are available.

Available options:
standard,
high-memory,
largest
spot
boolean
default:false

Allow instant removal of a graphics sandbox when capacity is needed.

operatingSystem
enum<string>
default:linux

Operating system; Windows needs an enabled image and tier.

Available options:
linux,
windows
virtualized
boolean
default:false

Expose nested virtualization only when explicitly enabled.

region
string

Neutral region key mapped to an enabled location.

Pattern: ^[a-z][a-z0-9-]{0,31}$
queueTimeoutSeconds
integer
default:60

Maximum queue wait before the request fails, 60–300 seconds.

Required range: 60 <= x <= 300

Response

Job started; poll GET /v1/jobs/{id}

job_id
string
required
status
enum<string>
required
Available options:
running
held_micro
integer
required

The credit set aside for the job (its estimate), micro-USD; 0 when it takes none. Not a price: what the job is charged reads on GET /v1/jobs/{id} once it is settled.