Skip to content
Modal logo

Modal

Run Python on cloud hardware by adding a decorator, including GPUs.

12 votes

About Modal

What Modal is

Modal runs Python functions on cloud infrastructure. You decorate a function, declare the hardware and dependencies it needs in Python, and it executes remotely, scaling out and back to nothing.

The problem it addresses

The gap between a model running in a notebook and a service other people can call is almost entirely infrastructure, and almost none of it is the practitioner's expertise. It means a container, a registry, an orchestrator, a scaling policy, a GPU instance that bills continuously whether or not anybody is using it, and somebody on call for it. Teams either hire for that or let a data scientist improvise it, and the improvised version is usually a single expensive instance nobody dares restart.

Infrastructure as Python

The image, the hardware request and the schedule are all declared in the same file as the function. There is no second language and no separate deployment artefact to keep in step.

Cold starts that are usable

Containers start in seconds rather than minutes, which is what makes scaling to zero viable for interactive work rather than only for batch.

One set of primitives

Endpoints, scheduled jobs and queues come from the same decorators, so a prototype becomes a service without being rebuilt around a different model.

Billing

Charging per second of actual execution matches the shape of inference traffic, where idle time otherwise dominates the bill.

Where it stops

It is Python, so other ecosystems are out. Heavy sustained load is cheaper on reserved capacity, and the crossover deserves arithmetic rather than faith. The orchestration layer is proprietary, so migration means rewriting that layer even though your own code is portable. And GPU availability is a market condition no platform fully controls.

Development and debugging

Code runs locally against remote hardware during development, so iterating on a GPU function does not require deploying between edits. Logs stream back into the terminal as execution proceeds, and failures surface ordinary Python tracebacks rather than opaque orchestrator events. Sandboxes isolate untrusted execution, which matters when the workload includes evaluating code somebody else generated. Regional placement reduces latency for callers concentrated geographically.

Modal interface

Key features

  • Functions decorated in Python and executed on remote hardware, GPUs included
  • Container images defined in Python rather than a Dockerfile
  • Cold starts in seconds, with scale to zero between invocations
  • Scheduled jobs, web endpoints and queues from the same primitives
  • Per-second billing for the compute a function actually used
  • Volumes and secrets for state and credentials across runs

What people use it for

  • Running model inference without maintaining a GPU server that idles overnight
  • Giving a data scientist cloud compute without teaching them Kubernetes
  • Batch processing that scales to hundreds of workers and back to nothing

Key facts

Key facts about Modal
CategoryDeveloper tools
PricingFreemium
Free tierYes
Upvotes12
Listed2 November 2026

Questions

How is this different from a serverless platform?

GPUs, and the Python-native model. Conventional serverless offers short-lived CPU functions with packaging constraints that machine learning work breaks immediately. Here the image is defined in Python, large dependencies are expected, and a function can request a specific accelerator.

Does scale to zero actually save money?

Substantially, for spiky work. A GPU instance left running costs the same at three in the morning as at noon, and most inference traffic is nothing like flat. For genuinely continuous high-volume load a reserved instance is cheaper, and that crossover is worth calculating rather than assuming.

What is the lock-in?

Real but bounded. The decorators and image definitions are specific to the platform, so moving means rewriting the orchestration layer. Your actual Python, the model code and the business logic, is ordinary and portable. Keeping that separation deliberate is what makes leaving a week rather than a quarter.

Summarise with AI

Is this your product?

Claim the listing to correct anything wrong with it, add features and a changelog, and answer questions from people deciding whether to try it. Free, and it stays yours.

Claim this listing
  • Errors with the stack trace, the release and the user who hit them.

    Freemium
  • Autocomplete and chat wherever you already write code.

    Paid
  • Deploy a frontend by pushing to a branch, and get a URL per pull request.

    Freemium
  • Postgres with auth, storage and realtime attached, and no lock-in.

    Freemium

Best developer tools, ranked

Nobody from Modal has claimed this listing. We wrote it from their own website. Work there? Claim it.