Modal
Best for small Python teams shipping AI features without infrastructure staff
Modal is a serverless cloud for running Python code and AI models on GPUs without managing servers. You write a Python function, decorate it, and Modal runs it on the GPU you pick, scaling from zero to thousands of containers. It suits small teams building AI features into a product without hiring a DevOps engineer.
Billing is per second, so you pay only while a container runs. An L4 costs $0.000222 per second (about $0.80 an hour) and an H100 costs $0.001097 per second (about $3.95 an hour), with CPU and memory billed on top. The Starter plan costs nothing and includes $30 of compute credit each month.
The catch is the Python-only focus and preemption: every GPU function can be interrupted, and pinning a region multiplies the price by 1.5x to 1.75x. Cold starts are fast, but Modal is not the cheapest choice for a model that must stay warm all day.
Key features
- Serverless GPUs billed per second, from T4 to B300
- Scale to zero with fast cold starts
- Scheduled jobs, queues and web endpoints
- Volumes for model weights and data
- Sandboxes for running untrusted code
- Team workspaces with spending controls
- Free option
- Starter plan with $30 of compute credit each month
Plans & pricing
What we like
- True pay-per-second billing with no idle cost
- $30 of free credit every month on Starter
- Python-native workflow with minimal setup
Watch out for
- GPU functions are preemptible by default
- Region pinning adds a 1.5x to 1.75x multiplier
- CPU and memory are billed on top of the GPU rate
Skip it if you need guaranteed non-preemptible GPUs, or you do not write Python