Introduction
Modal is a cloud function platform that lets you:
- Run any code remotely within seconds.
- Define container environments in code (or use one of our pre-built backends).
- Scale out horizontally to thousands of containers.
- Attach GPUs with a single line of code.
- Serve your functions as web endpoints.
- Deploy and monitor persistent scheduled jobs.
- Store data in distributed versions of dictionaries and queues.
You get full serverless execution and pricing, because we host everything and charge per second of usage. Notably, there’s zero configuration in Modal - everything is code. Take a breath of fresh air and feel how good it tastes with no YAML in it.
Getting started
The nicest thing about all of this is that you don’t have to set up any infrastructure. Just:
- Create an account at modal.com
- Run
pip install modalto install themodalPython package - Run
modal setupto authenticate (if this doesn’t work, trypython -m modal setup)
…and you can start running jobs right away. Check out some of our simple getting started examples:
You can also learn Modal interactively without installing anything through our code playground.
Programming language support
Python is the primary language for building Modal applications and implementing Modal Functions, but you can also use JavaScript/TypeScript and Go to call Modal Functions, run Sandboxes, and manage Modal resources.
How does it work?
Modal takes your code, puts it in a container, and executes it in the cloud.
Where does it run? Modal runs it in its own cloud environment. The benefit is that we solve all the hard infrastructure problems for you, so you don’t have to do anything. You don’t need to mess with Kubernetes, Docker or even an AWS account.