Docs / Get started

Core concepts

A short tour of the objects you work with on Apipods and how they relate. Every object has a prefixed ID, so you can tell what an ID refers to at a glance.

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.

StateMeaning
CREATEDThe pod object exists and is waiting for a host with a free GPU of the requested type.
PROVISIONINGA host is assigned. The image is being pulled, disks are allocated and the container is starting.
RUNNINGThe container is running and its ports are reachable.
EXITEDThe container stopped, either because you stopped it or because its main process exited. The GPU is released; the volume disk is kept.
TERMINATEDThe 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 (minWorkers above 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 stateMeaning
IN_QUEUEAccepted and waiting for a free worker.
IN_PROGRESSA worker picked up the job and the handler is running.
COMPLETEDThe handler returned. The result is in output.
FAILEDThe handler raised an exception or returned an error key. Details are in error.
CANCELLEDCancelled through /cancel/{jobId} or /purge-queue before it completed.
TIMED_OUTThe 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

StorageLifetimeMounted at
Container diskWiped when the pod stops or restarts on a new host./
Volume diskKept while the pod exists, including when stopped. Tied to the host./workspace
Network volumeIndependent 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

PrefixResource
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)