Workers, scaled automatically
Cost when your endpoint is idle
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.
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 from zero to hundreds of workers based on queue depth.
Resume recently used workers in well under a second.
Every request is queued, retried on failure and never dropped.
Stream tokens and partial results back as they are generated.
Get notified the moment an async job completes or fails.
Point the OpenAI SDK at your vLLM endpoint and it just works.
Mount a network volume so workers load models without downloading.
Per-request latency, queue delay, worker counts and live logs.
A handler is a Python function that takes a job and returns a result. Package it in a Docker image with your model.
Choose GPU classes in order of priority, set min and max workers, and point the endpoint at your image.
Call /run, /runsync or /stream over HTTPS with your API key. Apipods handles queueing and scaling.
Choose a GPU class per endpoint. Idle queues are free and there are no request fees.
Active (always-on) workers are available at a discount on our Enterprise plan. Contact sales.
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.