Pod storage
Container disk, volume disk and network volume
| Container disk | Volume disk | Network volume | |
|---|---|---|---|
| Field | containerDiskInGb | volumeInGb | networkVolumeId |
| Mounted at | / (container filesystem) | volumeMountPath | volumeMountPath |
| Survives restart | Yes | Yes | Yes |
| Survives stop | No, wiped | Yes | Yes |
| Survives terminate | No | No | Yes |
| Tied to | The pod | The physical host | A region |
| Shareable | No | No | Yes, across pods and endpoints |
| Price per GB / month | $0.20 while running | $0.20 running, $0.40 stopped | from $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.
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_c7d2h4keA 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.