Serverless Python and GPU cloud — deploy ML models, batch jobs, and APIs with decorator syntax
Inference & HostingFreemium
Modal is a serverless cloud platform for Python developers that makes running GPU workloads as easy as writing a function. Decorate any Python function with `@app.function(gpu='A100')` and Modal handles container building, GPU provisioning, auto-scaling, and deployment. Popular for LLM fine-tuning, Stable Diffusion inference, batch data processing, and API endpoints.
Containers: Custom Python environments built from modal.Image; supports pip, conda, Docker
Secrets:modal.Secret for environment variables; integrations with AWS, GCP, Cloudflare
Founded: 2021; New York; raised $67M (Redpoint, Andreessen Horowitz)
Team: Ex-Stripe, ex-Google, MIT engineers
Ideal for
ML engineers who want GPU access for LLM inference, diffusion models, or training without managing Kubernetes or Docker.
Python developers building AI-powered APIs or batch processing pipelines on serverless infrastructure.
Startups and researchers who need powerful GPUs for experiments but don't want to pay for idle VMs.
Not ideal for
Non-Python workloads — Modal is built around Python; Go, Rust, or Node.js backend work needs another solution.
Sustained high-throughput inference at scale — RunPod or dedicated GPU instances may be cheaper at constant load.
Teams who need fine-grained GPU memory sharing across concurrent users (LoRAX, vLLM serving features).
See also
RunPod — Raw GPU cloud; cheaper for sustained workloads, more control but more setup.
Baseten — Model-centric deployment platform; better for teams focused on ML model serving specifically.
fal.ai — Specialized serverless for image generation and diffusion models; faster cold starts.
FAQ
What is Modal?
Modal is a serverless cloud platform for Python. You decorate Python functions with `@app.function()` and specify compute requirements (CPU, GPU, memory, timeout). Modal automatically builds a container, provisions resources, runs the function, and scales to zero when idle. It's designed for ML workloads: fine-tuning LLMs, running inference, processing datasets, and deploying web APIs.
Is Modal free?
Modal has a free tier with $30/month in credits for new accounts, then $0.10/credit thereafter. T4 GPU: ~$0.59/hr; A10G: ~$1.10/hr; A100: ~$3.72/hr; H100: ~$7.20/hr. You pay only for compute time — no idle costs. Free tier is generous enough for experimentation and small projects.
How does Modal compare to RunPod?
RunPod gives raw GPU VMs or serverless endpoints — you manage environment setup (Docker, dependencies). Modal is Python-native: you write Python code with decorators, and Modal handles containerization automatically. Modal is faster to iterate; RunPod is cheaper for sustained workloads and has more GPU options. Modal is better for developers; RunPod for MLOps teams with existing Docker setups.
What can Modal deploy?
Modal runs: LLM inference (Llama, Mistral via vLLM), Stable Diffusion image generation, batch ML jobs (data processing, feature engineering), scheduled cron tasks, REST APIs (FastAPI with `@asgi_app()`), web scraping, and custom ML training. Any Python code that can run in a container can run on Modal.
SEO, AI search (how ChatGPT, Perplexity and Google describe Modal), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.
Founding offer: $299 a month for your first 3 months, plus a free case study.