Docs / Pods

Pod storage

A pod has up to three kinds of storage. Knowing which one survives a stop is the difference between a relaxed weekend and a lost checkpoint.

Container disk, volume disk and network volume

Container diskVolume diskNetwork volume
FieldcontainerDiskInGbvolumeInGbnetworkVolumeId
Mounted at/ (container filesystem)volumeMountPathvolumeMountPath
Survives restartYesYesYes
Survives stopNo, wipedYesYes
Survives terminateNoNoYes
Tied toThe podThe physical hostA region
ShareableNoNoYes, across pods and endpoints
Price per GB / month$0.20 while running$0.20 running, $0.40 stoppedfrom $0.14, always

Container disk

The container disk holds the image's filesystem and everything written outside the mount path: installed packages, /tmp, caches in /root. It defaults to 20 GB, can be up to 500 GB, and is reset whenever the pod stops. Use it for scratch data only.

Volume disk

The volume disk is a local NVMe volume mounted at volumeMountPath (default /workspace). It keeps its contents across stops and is deleted when the pod is terminated. Point caches at it, for example HF_HOME=/workspace/hf, so models are not downloaded again after every stop.

Warning: A volume disk lives on the host where the pod first ran. If that host's GPUs are taken while your pod is stopped, start returns 503 no_capacity until a GPU frees up. Use a network volume if you need to restart anywhere.

You can increase volumeInGb at any time with PATCH /pods/{podId}. Volumes cannot shrink.

Network volumes

A network volume is created separately, lives in one region and outlives any pod. When you set networkVolumeId, it is mounted at volumeMountPath instead of a volume disk, and the pod is placed in the volume's region. The same volume can be mounted by several pods and by serverless workers, where it appears at /volume.

$ apipods volumes create --name checkpoints --size 1000 --region eu-nl-1
$ apipods pods create --gpu H100_SXM --image apipods/pytorch:2.9.0-py3.12-cuda12.8.1 --network-volume vol_c7d2h4ke

A network volume can be attached to any pod in its region. You can also read and write them over the S3-compatible API without running a pod.

Recommendations

  • Training runs: write checkpoints to a network volume so a failed host never costs you progress.
  • Notebooks and experiments: a volume disk is the cheapest persistent option.
  • Datasets used by many pods or endpoints: one network volume in the region where you run them.
  • Anything irreplaceable: copy it off Apipods. Volumes are redundant, but they are not backups. See Data transfer.