Serverless GPU endpoints that scale with your traffic

0 → 100s

Workers, scaled automatically

$0

Cost when your endpoint is idle

Serverless

Ship a model as an API without managing a single server.

Wrap your model in a small handler function, build it into a container and deploy. Every request goes into a queue, workers start as traffic grows, and they shut down again when it drops.

handler.py
import apipods
from vllm import LLM, SamplingParams

llm = LLM(model="/volume/models/llama-3.1-8b-instruct")

def handler(job):
    prompt = job["input"]["prompt"]
    out = llm.generate(prompt, SamplingParams(max_tokens=512))
    return {"text": out[0].outputs[0].text}

apipods.serverless.start({"handler": handler})
Scale to zero when idle
Sub-second Warmstart resumes
Sync, async and streaming
Core capabilities

Production inference without the infrastructure

Autoscaling

Scale from zero to hundreds of workers based on queue depth.

Warmstart

Resume recently used workers in well under a second.

Built-in queue

Every request is queued, retried on failure and never dropped.

Streaming

Stream tokens and partial results back as they are generated.

Webhooks

Get notified the moment an async job completes or fails.

OpenAI-compatible

Point the OpenAI SDK at your vLLM endpoint and it just works.

Cached weights

Mount a network volume so workers load models without downloading.

Logs & metrics

Per-request latency, queue delay, worker counts and live logs.

Serverless
Deploy once. Scale automatically. Pay per second.
How it works

Your model, behind an endpoint, in three steps

A
Build

Write a handler

A handler is a Python function that takes a job and returns a result. Package it in a Docker image with your model.

B
Deploy

Create an endpoint

Choose GPU classes in order of priority, set min and max workers, and point the endpoint at your image.

C
Call

Send requests

Call /run, /runsync or /stream over HTTPS with your API key. Apipods handles queueing and scaling.

Serverless pricing

Billed per second of worker time

Choose a GPU class per endpoint. Idle queues are free and there are no request fees.

Serverless workers
NVIDIA B300
288 GB VRAM · scales to zero
$0.006661 / sec
NVIDIA B200
180 GB VRAM · scales to zero
$0.005994 / sec
NVIDIA H200 SXM
141 GB VRAM · scales to zero
$0.003883 / sec
NVIDIA H100 SXM
80 GB VRAM · scales to zero
$0.003272 / sec
NVIDIA RTX PRO 6000
96 GB VRAM · scales to zero
$0.002050 / sec
NVIDIA A100 80GB
80 GB VRAM · scales to zero
$0.001661 / sec
NVIDIA L40S
48 GB VRAM · scales to zero
$0.001050 / sec
NVIDIA L4
24 GB VRAM · scales to zero
$0.000417 / sec
Billed from worker start until it stops after the idle timeout. Queued requests are free. Always-on Active workers are available on Enterprise.
Storage
Container disk
Billed while the pod is running
$0.20 / GB / mo
Volume disk
While the pod is running
$0.20 / GB / mo
Volume disk
While the pod is stopped
$0.40 / GB / mo
Network volume
Standard, first 1 TB
$0.14 / GB / mo
Network volume
Standard, beyond 1 TB
$0.10 / GB / mo
Network volume
High-performance tier
$0.28 / GB / mo
Network
Ingress & egress
No data transfer fees on any plan
Free

Active (always-on) workers are available at a discount on our Enterprise plan. Contact sales.

FAQ

Questions about serverless

You pay per second for the time a worker is running, from the moment it starts until it shuts down after its idle timeout. Requests waiting in the queue are free.

Flex workers start on demand and scale to zero when there's no traffic. Active workers are always on, so they never have a cold start; they're offered at a discounted rate through our Enterprise plan.

Warmstart keeps a snapshot of recently used workers ready to resume, so a scaled-down endpoint can serve its next request in well under a second instead of booting from scratch.

Yes. Handlers can yield partial results, which clients read from the /stream route as they're produced.

Our worker SDK is for Python, but a worker is just a container: anything that can read jobs from the worker API and return results works, including Node.js, Go and Rust.

Deploy your model

Turn any model into a production API that scales to zero when nobody is using it.