
Modal
Serverless GPU for AI builders.
About Modal
If you've ever tried to get a model into production, you know the real work often isn't the model. It's the GPU quota requests, the Kubernetes manifests, the cold starts that make your demo hang for 40 seconds, and the bill for an A100 that sat idle all weekend. Modal is built for exactly that pain. It pitches itself as "cloud infrastructure for teams that develop, train, and serve AI applications at scale," and the core promise is that you write code, and Modal handles capacity, scheduling and scaling underneath it.
The product splits into four pieces that share one runtime. Inference gives you OpenAI-compatible endpoints or lets you "bring your entire inference stack." Training covers everything from single-GPU LoRA runs to multi-node RL, with out-of-the-box support for open source frameworks like slime and Miles. Sandboxes are isolated environments for coding agents and untrusted code, and Modal claims you can create "millions of concurrent sandboxes in under a minute." Functions turn arbitrary code into serverless compute that can fan out over thousands of GPUs or become an HTTPS endpoint that "idles at zero." Under all of it sits a custom container runtime, a CDN-style distributed filesystem for weights and datasets, and a multi-cloud capacity pool.
The honest take: this is one of the more opinionated answers to the "I just want GPUs without the ops" problem, and the per-second billing for GPUs and CPUs means you aren't paying for idle hardware. The tradeoff is that you're buying into Modal's way of packaging and running code, and the pricing material we reviewed didn't include per-GPU rates, so you'll want to run your own workload through it before committing a production budget. If your team spends more time babysitting infrastructure than shipping models, it's worth a serious look.
Key features
OpenAI-compatible inference endpoints
You can serve LLMs, image, video and audio models through OpenAI-compatible endpoints, tune them for your traffic shape, or bring your own full inference stack while Modal runs the infrastructure.
Sandboxes for agents and untrusted code
Modal Sandboxes give coding agents and RL rollouts isolated environments, with support for any custom image, snapshot and restore for fast startup, and a claimed ability to spin up millions concurrently in under a minute.
Elastic training from one GPU to many nodes
Training supports RL, SFT, LoRA and full fine-tunes with autoscaling access to single and multi-node GPU capacity, and it's designed to work with open source frameworks like slime and Miles.
Serverless Functions with scale to zero
Functions let you fan out across thousands of GPUs without managing job orchestration, spawn async batch jobs, and turn any function into an HTTPS endpoint that scales with traffic and idles at zero.
CDN-style storage for weights and datasets
A distributed filesystem loads container images, model weights and datasets at full bandwidth wherever your Functions run, which targets one of the main causes of slow cold starts.
Multi-cloud capacity pool
Modal draws GPU capacity from a multi-cloud pool behind its own container runtime, so you aren't the one hunting for available hardware in a single provider's region.
Best for
- ML teams serving models without a dedicated infra engineer
- agent builders who need thousands of isolated sandboxes
- researchers running bursty RL or fine-tuning jobs
- startups that want per-second GPU billing instead of reserved instances
- batch workloads that need to fan out across many GPUs
Skip if
- Skip this if you need to self-host the platform on your own hardware, since nothing in the source mentions an on-prem option
- Skip this if finance needs a fixed monthly GPU bill, because per-second usage billing makes spend vary with traffic
- Skip this if you want a no-code model hosting UI, since Modal is a developer platform built around writing code
Pros & cons
Pros
- Per-second billing for GPUs and CPUs means idle time doesn't quietly eat your budget
- One platform covers inference, training, sandboxes and batch compute, so you're not stitching three vendors together
- Sandbox scale claims are aggressive: millions of concurrent environments in under a minute, with snapshot and restore
- HTTPS endpoints that idle at zero make it cheap to keep low-traffic models deployed
- Startup Credits and a free GPU Glossary and LLM Engine Advisor lower the barrier to trying it
Cons
- The pricing material we reviewed only says "pay per second for GPUs and CPUs" and doesn't list per-GPU rates or free tier limits, so you'll need the pricing page or a test run to estimate costs
- You're adopting Modal's custom container runtime and deployment model, which makes moving to raw AWS or GCP later more work than lifting a plain Docker setup
- Usage-based billing on bursty workloads can be hard to forecast compared with a reserved GPU instance
- Much of the marketing focuses on scale claims like 1 million concurrent sandboxes, and the source doesn't cover limits or quotas for smaller accounts
Pricing
| Tier | Price | Includes |
|---|---|---|
| Usage-based | Pay per second | GPU and CPU compute billed per second of use; specific per-GPU rates weren't included in the pricing text reviewed |
Frequently asked questions
How does Modal charge for compute?
Modal bills per second for GPUs and CPUs, so you pay for runtime rather than reserved hours. That's a different model from renting a fixed AWS or GCP GPU instance by the month.
Is there a free way to try Modal?
Modal is listed as freemium, and it also runs a Startup Credits program. The Playground lets you explore Modal in the browser before you deploy anything.
Can I swap Modal in for the OpenAI API?
Modal offers OpenAI-compatible endpoints for open models, so code written against the OpenAI client format can point at a model you host on Modal. You still choose and deploy the model yourself, unlike calling OpenAI directly.
How many sandboxes can Modal run at once?
Modal says you can programmatically create millions of concurrent sandboxes in under a minute, and its engineering blog features a post on scaling to 1 million. That's aimed at RL rollouts and coding agents rather than a handful of dev environments.
Does Modal support multi-node training?
Yes. Modal covers single-GPU fine-tuning up to multi-node runs, supporting RL, SFT, LoRA and full fine-tunes, and it works with open source frameworks like slime and Miles.
How Modal compares
Modal vs AWS SageMaker
SageMaker fits teams already deep in AWS, but Modal asks far less configuration to get a scale-to-zero GPU endpoint running.
Modal vs Replicate
Replicate is quicker if you just want to call a popular hosted model, while Modal gives you more control over custom stacks, training and sandboxes.
Modal vs RunPod
RunPod suits you if you want raw GPU pods to manage yourself, whereas Modal trades that control for serverless autoscaling and managed orchestration.
Reviews
Sign in to leave a review.
No reviews yet, be the first.
More like ModalAll code & developer tools
Google Antigravity SDKgoogle.comFree planGoogle’s AI Agent SDK for Autonomous DevelopmentCode & DeveloperAI Agents-38.3% search trend, 3 moNo reviews yet
Claudeclaude.aiFree planAnthropic's helpful, harmless, and honest AI assistant.FeaturedChatbot & AssistantsWriting & Content-7.2% search trend, 3 moNo reviews yet
ContextSnipergithub.comFree planSmart task-driven LLM context optimizerCode & DeveloperN/ANo reviews yet
DeepSeekdeepseek.comFree planStrong open reasoning models.FeaturedChatbot & AssistantsCode & Developer+5.1% search trend, 3 moNo reviews yet
Hugging Facehuggingface.coFree planThe home of open AI.Code & DeveloperResearch+165% search trend, 3 moNo reviews yet
Cursorcursor.comFree planThe AI-first code editor.FeaturedCode & Developer+4.5% search trend, 3 moNo reviews yet