Core concepts
Pods
A pod is a Docker container with dedicated GPUs, a container disk, an optional volume disk and exposed ports. You choose the GPU type and count, the image and, optionally, the region. Pods are billed per second while RUNNING.
| State | Meaning |
|---|---|
CREATED | The pod object exists and is waiting for a host with a free GPU of the requested type. |
PROVISIONING | A host is assigned. The image is being pulled, disks are allocated and the container is starting. |
RUNNING | The container is running and its ports are reachable. |
EXITED | The container stopped, either because you stopped it or because its main process exited. The GPU is released; the volume disk is kept. |
TERMINATED | The pod and its container disk and volume disk are deleted. Network volumes are not affected. Terminal state. |
Endpoints, workers and jobs
A serverless endpoint (ep_) has a queue and a pool of workers (wrk_). Each request becomes a job (job_) that waits in the queue until a worker runs your handler on it.
- Flex workers start when jobs arrive and stop after the idle timeout, so the endpoint can scale to zero.
- Active workers are always on (
minWorkersabove 0) and never cold-start. They are priced under an agreement; contact sales@apipods.com. - Warmstart snapshots an initialized worker so new workers restore it instead of starting from scratch, typically in under 2 seconds.
| Job state | Meaning |
|---|---|
IN_QUEUE | Accepted and waiting for a free worker. |
IN_PROGRESS | A worker picked up the job and the handler is running. |
COMPLETED | The handler returned. The result is in output. |
FAILED | The handler raised an exception or returned an error key. Details are in error. |
CANCELLED | Cancelled through /cancel/{jobId} or /purge-queue before it completed. |
TIMED_OUT | The job exceeded its execution timeout, or its time-to-live expired while it was still in the queue. |
GPU types and GPU pools
Pods request a specific GPU type by gpuTypeId, for example NVIDIA_H100_80GB_SXM. Serverless endpoints instead list GPU pools in gpuPoolIds, in priority order. A pool groups GPUs with similar memory and there is one pool per GPU model, so H200 runs workers on the H200 SXM at $13.98/hr per worker. Listing two pools gives the scheduler a fallback when the first is busy.
See the GPU reference for every type and the pool it maps to.
Storage
| Storage | Lifetime | Mounted at |
|---|---|---|
| Container disk | Wiped when the pod stops or restarts on a new host. | / |
| Volume disk | Kept while the pod exists, including when stopped. Tied to the host. | /workspace |
| Network volume | Independent of any pod. Shared across pods and workers in one region. | /workspace on pods, /volume on workers |
Templates and secrets
A template (tpl_) saves an image, disk sizes, ports and environment variables so you can launch the same configuration repeatedly. Secrets (sec_) hold credentials such as HF_TOKEN; reference them from env as {{ secrets.HF_TOKEN }}.
Regions and organizations
Resources live in a region such as eu-nl-1. Every region is Secure Cloud: Tier III/IV data centers with redundant power and networking, operated with vetted partners.
Everything belongs to an organization (org_). API keys act on behalf of a user within one organization.
ID prefixes
| Prefix | Resource |
|---|---|
pod_ | Pod |
ep_ | Serverless endpoint |
job_ | Serverless job |
wrk_ | Serverless worker |
vol_ | Network volume |
tpl_ | Template |
sec_ | Secret |
rcr_ | Registry credential |
key_ | API key (metadata object) |
ssh_ | SSH key |
whk_ | Webhook subscription |
evt_ | Webhook event |
dlv_ | Webhook delivery attempt |
s3k_ | S3 access key (metadata object) |
aud_ | Audit log entry |
inv_ | Invoice |
org_ | Organization |
usr_ | User |
req_ | Request ID (response header) |