Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Input for Pod creation.
Set to SECURE to create the Pod in Secure Cloud. Set to COMMUNITY to create the Pod in Community Cloud. To determine which one suits your needs, see https://docs.runpod.io/references/faq/#secure-cloud-vs-community-cloud.
SECURE
, COMMUNITY
Set to GPU to create a GPU Pod. Set to CPU to create a CPU Pod. If set to CPU, the Pod will not have a GPU attached and properties related to GPUs such as gpuTypeIds will be ignored. If set to GPU, the Pod will have a GPU attached and properties related to CPUs such as cpuFlavorIds will be ignored.
GPU
, CPU
The amount of disk space, in gigabytes (GB), to allocate on the container disk for the created Pod. The data on the container disk is wiped when the Pod restarts. To persist data across Pod restarts, set volumeInGb to configure the Pod network volume.
Registry credentials ID.
"clzdaifot0001l90809257ynb"
A list of country codes where the created Pod can be located. If not set, the Pod can be located in any country.
If the created Pod is a CPU Pod, a list of Runpod CPU flavors which can be attached to the Pod. The order of the list determines the order to rent CPU flavors. See cpuFlavorPriority for how the order of the list affects Pod creation.
If the created Pod is a CPU Pod, set to availability to respond to current CPU flavor availability. Set to custom to always try to rent CPU flavors in the order specified in cpuFlavorIds.
availability
, custom
A list of Runpod data center IDs where the created Pod can be located. See dataCenterPriority
for information on how the order of the list affects Pod creation.
["EU-RO-1", "CA-MTL-1"]
Set to availability to respond to current machine availability. Set to custom to always try to rent machines from data centers in the order specified in dataCenterIds.
availability
, custom
If specified, overrides the ENTRYPOINT for the Docker image run on the created Pod. If [], uses the ENTRYPOINT defined in the image.
If specified, overrides the start CMD for the Docker image run on the created Pod. If [], uses the start CMD defined in the image.
{ "ENV_VAR": "value" }
Set to true to enable global networking for the created Pod. Currently only available for On-Demand GPU Pods on some Secure Cloud data centers.
true
If the created Pod is a GPU Pod, the number of GPUs attached to the created Pod.
x >= 1
If the created Pod is a GPU Pod, a list of Runpod GPU types which can be attached to the created Pod. The order of the list determines the order to rent GPU types. See gpuTypePriority
for information on how the order of the list affects Pod creation.
If the created Pod is a GPU Pod, set to availability to respond to current GPU type availability. Set to custom to always try to rent GPU types in the order specified in gpuTypeIds.
availability
, custom
The image tag for the container run on the created Pod.
"runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04"
Set to true to create an interruptible or spot Pod. An interruptible Pod can be rented at a lower cost but can be stopped at any time to free up resources for another Pod. A reserved Pod is rented at a higher cost but runs until it exits or is manually stopped.
Set to true to lock a Pod. Locking a Pod disables stopping or resetting the Pod.
The minimum disk bandwidth, in megabytes per second (MBps), for the created Pod.
The minimum download speed, in megabits per second (Mbps), for the created Pod.
If the created Pod is a GPU Pod, the minimum amount of RAM, in gigabytes (GB), allocated to the created Pod for each GPU attached to the Pod.
The minimum upload speed, in megabits per second (Mbps), for the created Pod.
If the created Pod is a GPU Pod, the minimum number of virtual CPUs allocated to the created Pod for each GPU attached to the Pod.
A user-defined name for the created Pod. The name does not need to be unique.
191
The unique string identifying the network volume to attach to the created Pod. If attached, a network volume replaces the Pod network volume.
A list of ports exposed on the created Pod. Each port is formatted as [port number]/[protocol]. Protocol can be either http or tcp.
["8888/http", "22/tcp"]
If the created Pod is on Community Cloud, set to true if you need the Pod to expose a public IP address. If null, the Pod might not have a public IP address. On Secure Cloud, the Pod will always have a public IP address.
true
If the Pod is created with a template, the unique string identifying that template.
null
If the created Pod is a CPU Pod, the number of vCPUs allocated to the Pod.
The amount of disk space, in gigabytes (GB), to allocate on the Pod volume for the created Pod. The data on the Pod volume is persisted across Pod restarts. To persist data so that future Pods can access it, create a network volume and set networkVolumeId to attach it to the Pod.
If either a Pod volume or a network volume is attached to a Pod, the absolute path where the network volume will be mounted in the filesystem.
Response
Pod successfully created.
The effective cost in Runpod credits per hour of running a Pod, adjusted by active Savings Plans.
0.69
Synonym for endpointId (legacy name).
null
A unique string identifying the Runpod user who rents a Pod.
"user_2PyTJrLzeuwfZilRZ7JhCQDuSqo"
The amount of disk space, in gigabytes (GB), to allocate on the container disk for a Pod. The data on the container disk is wiped when the Pod restarts. To persist data across Pod restarts, set volumeInGb to configure the Pod network volume.
50
If a Pod is created with a container registry auth, the unique string identifying that container registry auth.
"clzdaifot0001l90809257ynb"
The cost in Runpod credits per hour of running a Pod. Note that the actual cost may be lower if Savings Plans are applied.
"0.74"
If the Pod is a CPU Pod, the unique string identifying the CPU flavor the Pod is running on.
"cpu3c"
The current expected status of a Pod.
RUNNING
, EXITED
, TERMINATED
If specified, overrides the ENTRYPOINT for the Docker image run on the created Pod. If [], uses the ENTRYPOINT defined in the image.
If specified, overrides the start CMD for the Docker image run on the created Pod. If [], uses the start CMD defined in the image.
If the Pod is a Serverless worker, a unique string identifying the associated endpoint.
null
{ "ENV_VAR": "value" }
The image tag for the container run on a Pod.
"runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04"
Describes how a Pod is rented. An interruptible Pod can be rented at a lower cost but can be stopped at any time to free up resources for another Pod. A reserved Pod is rented at a higher cost but runs until it exits or is manually stopped.
false
The UTC timestamp when a Pod was last started.
"2024-07-12T19:14:40.144Z"
A string describing the last lifecycle event on a Pod.
"Rented by User: Fri Jul 12 2024 15:14:40 GMT-0400 (Eastern Daylight Time)"
Set to true to lock a Pod. Locking a Pod disables stopping or resetting the Pod.
false
A unique string identifying the host machine a Pod is running on.
"s194cr8pls2z"
The amount of RAM, in gigabytes (GB), attached to a Pod.
62
A user-defined name for the created Pod. The name does not need to be unique.
191
If a network volume is attached to a Pod, information about the network volume (see network volume schema).
A mapping of internal ports to public ports on a Pod. For example, { "22": 10341 } means that port 22 on the Pod is mapped to port 10341 and is publicly accessible at [public ip]:10341. If the Pod is still initializing, this mapping is not yet determined and will be empty.
{ "22": 10341 }
A list of ports exposed on a Pod. Each port is formatted as [port number]/[protocol]. Protocol can be either http or tcp.
["8888/http", "22/tcp"]
The public IP address of a Pod. If the Pod is still initializing, this IP is not yet determined and will be empty.
"100.65.0.119"
The list of active Savings Plans applied to a Pod (see Savings Plans). If none are applied, the list is empty.
If the Pod is a Serverless worker, the version of the associated endpoint (see Endpoint Version).
0
If a Pod is created with a template, the unique string identifying that template.
null
The number of virtual CPUs attached to a Pod.
24
Set to true if the local network volume of a Pod is encrypted. Can only be set when creating a Pod.
false
The amount of disk space, in gigabytes (GB), to allocate on the Pod volume for a Pod. The data on the Pod volume is persisted across Pod restarts. To persist data so that future Pods can access it, create a network volume and set networkVolumeId to attach it to the Pod.
20
If either a Pod volume or a network volume is attached to a Pod, the absolute path where the network volume is mounted in the filesystem.
"/workspace"