# Serverless GPU

> Canonical: https://skillalmanac.com/glossary/serverless-gpu | Last verified: 2026-11-24 | Index status: not offered to search engines

Serverless GPU is a way to run AI code on graphics processors that a cloud provider allocates on demand and releases when work stops, so you do not manage or keep a server running.

Also called: serverless GPUs, GPU serverless, serverless inference GPU, serverless GPU inference.

## In plain language

A serverless GPU lets you run an AI model on a powerful graphics card without renting a whole machine all day. You send a request, the provider starts the work on a card, and it shuts the card down afterwards. Think of a taxi instead of owning a car. The catch is the wait when nothing is warm: a first request can be slow while the model loads. You are billed for the time workers run, which may include that start-up, so check the provider's pricing page before a busy job.

## Technical definition

IBM describes serverless computing as an execution model where the provider manages the servers and can scale to zero, and says serverless does not mean there are no servers. Providers apply this to GPUs differently. Cloudflare's Workers AI docs describe running models on serverless GPUs on its network. Modal's docs say a Function picks a GPU type through a gpu argument and that Modal may upgrade a request for one type to another. Runpod's docs describe workers, container instances that scale to zero after an idle timeout, with cold start defined as the time until a worker is ready for its first job, and billing while workers run.

## How it shows up when you use agents

Coding agents such as Claude Code or Codex usually call a hosted model, so you meet serverless GPUs when you build around them: an app that serves an open-weight model, a fine-tuned model behind an endpoint, or a tool your agent calls over HTTP. Your agent may write the deployment code, but the billing and the waiting are yours.

In practice you package the code, pick a GPU type, and let the provider start workers when requests arrive. Modal's docs show choosing the type with a gpu argument. Runpod's docs describe workers that scale to zero after an idle timeout. The first request after idle can hit a cold start, and Runpod's docs say workers are billed during it.

What breaks when this is misunderstood: a latency-sensitive tool feels slow after quiet periods, a retry loop keeps starting paid workers, and an endpoint without access control can be reached by others. The next step is to size the model with [local model sizing](/skills/skill-almanac/local-model-sizing), estimate cost with your own figures, and read the [self-hosted AI agent considerations](/learn/self-hosted-ai-agent-considerations) checklist. For the wider ideas see [inference](/glossary/inference), [GPU for AI](/glossary/gpu-for-ai) and [inference cost](/glossary/inference-cost).

## Common confusions

- **Serverless versus no servers.** IBM says the servers still exist and the provider manages them.
- **Serverless GPU versus a dedicated GPU instance.** A dedicated instance stays yours while it runs. Serverless workers start and stop with demand. Which suits you depends on traffic.
- **Serverless GPU versus a model API.** With a model API you call a hosted model. With serverless GPUs you often bring the code or model, though Cloudflare's Workers AI also offers ready models.
- **Myth: serverless is automatically cheaper.** Billing follows running time, including cold starts per Runpod's docs, so steady heavy traffic and bursty traffic compare differently. Use your own numbers.

## Worked examples in this catalogue

### [local-model-sizing](https://skillalmanac.com/skills/skill-almanac/local-model-sizing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Works out whether an open-weight language model will run on a given GPU, Mac or PC, with a script that computes weight, KV-cache and overhead memory per quantisation.

Why it exercises the concept: Even on serverless GPUs you choose a card with enough memory for the model. This skill does that sum before you pick.

### [llm-cost-estimator](https://skillalmanac.com/skills/skill-almanac/llm-cost-estimator)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Turns a usage profile and your own price table into a monthly LLM cost range with cache, batch and subscription effects.

Why it exercises the concept: Serverless billing follows running time, so you need a usage profile. You enter the prices from the provider's page; the estimator holds none.

### [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: What you own when an AI agent runs on your machine: model memory, network exposure, file access and vetting skills, as a checklist with decision points.

Why it exercises the concept: A serverless GPU is not your machine, but exposed endpoints and what the agent can reach are still your duty. The checklist is a starting point.

## Related terms

- [Inference](https://skillalmanac.com/glossary/inference.md)
- [GPU for AI](https://skillalmanac.com/glossary/gpu-for-ai.md)
- [Self-hosted LLM](https://skillalmanac.com/glossary/self-hosted-llm.md)
- [Inference cost](https://skillalmanac.com/glossary/inference-cost.md)
- [Open-weights model](https://skillalmanac.com/glossary/open-weights-model.md)
- [Rate limit](https://skillalmanac.com/glossary/rate-limit.md)

## Sources

- [Workers AI overview](https://developers.cloudflare.com/workers-ai/), Cloudflare Docs (accessed 2026-11-24)
- [GPU acceleration](https://modal.com/docs/guide/gpu), Modal Docs (accessed 2026-11-24)
- [Serverless overview](https://docs.runpod.io/serverless/overview), Runpod Docs (accessed 2026-11-24)
- [What is serverless computing?](https://www.ibm.com/think/topics/serverless), IBM Think (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
