Modal
Modal needs a card on file and gives $30 of compute credits a month with no hard cap, so usage past the credit is auto-charged, and Model API tokens are billed from the first request.
Modal is a serverless cloud for Python that runs functions on CPUs and GPUs and bills by the second. It is for developers who run AI inference, batch jobs, training, or sandboxes without managing servers.
By ModalComputeChecked ✓ 23 Nov 2026
Is it a fit?
Good fit
Use it when you need CPUs or GPUs on demand for Python work such as inference, batch jobs, or fine-tuning, and you are fine paying per second beyond the credit.
- AI inference
- batch jobs
Not a fit
Avoid it if you cannot put a payment method on file, or if you need an always-on GPU that costs nothing.
- no payment method
- always-on free GPUs
You write Python functions with a decorator, and Modal builds the container and runs it in the cloud with the CPU or GPU you ask for. You launch work with the modal run command or deploy it as a web endpoint or scheduled job. It suits developers who run AI inference, batch jobs, or fine-tuning without owning GPUs.
What the free plan gives you
The Starter plan costs $0 plus compute, and it comes with $30 of free credits every month. It includes 3 workspace seats, 100 containers, and 10 GPU concurrency. It also covers limited scheduled and web functions, 5 deployed cron jobs, real-time metrics and logs, region selection, and 1 TiB per month of free network egress.
Modal bills per second, with no minimum usage increment. For example, an Nvidia T4 costs $0.000164 per second and CPU costs $0.0000131 per core per second. Sandboxes use non-preemptible CPU and memory rates at 3× the listed base rates. The credit pays for Functions and Sandboxes compute, so it lasts longer on small CPU work than on large GPUs. Model APIs are billed per token from the first request and are excluded from the free compute allowance.
When you hit a limit
Modal bills usage after the credit ends. The billing docs say each workspace is billed monthly and auto-charged for usage, less credits. It also charges incrementally the first time you pass certain thresholds.
You can cap this. A workspace budget sets a monthly limit on total usage. A spend limit stops workloads that would add out-of-pocket charges once it is reached. If you set none, the default spend limit is the usage limit minus your credits.
Gotchas
- Modal requires a payment method on file to use the service, and using a GPU requires a valid one. The billing docs say so.
- Volumes include 1 TiB of storage per month, then cost $0.09 per GiB-month. Separately, network egress includes 1 TiB per month, then costs $0.04 per GiB.
- Containers have a minimum request of 128 MiB of memory and 0.125 CPU cores, and you pay for whichever is higher, what you request or what you use.
Alternatives in this atlas
- Google Colab: when you want a notebook with free GPU time and no card.
- Hugging Face Spaces: when you want to host a small model demo for free.
- Paperspace: when you want a notebook-style GPU environment.
Questions people ask
Is Modal free?
Partly. The Starter plan includes $30 of free compute credits every month, and you pay for usage beyond that.
Does Modal need a credit card?
Yes. The billing docs say you must have a payment method on file to use Modal, and GPU use requires a valid one.
What happens when I use up the Modal free credits?
Modal auto-charges the usage that exceeds your credits at the end of the billing cycle. You can set a workspace budget or spend limit to cap it.
How to get started
- Create an account at modal.com.
- Run pip install modal.
- Run modal setup to authenticate; if it fails, run python -m modal setup.
- Write a Python file with a modal.App and a function decorated with app.function, optionally with a gpu argument.
- Run it with modal run and the path of your file.
Other free compute options
Same category, safest first.