Modal Functions API
Modal Functions are the core serverless primitive — Python functions backed by autoscaling container pools. They support optional GPU attachment (T4 through B200), Modal-built container images, Volumes, Secrets, retries, timeouts, scheduling, web endpoints, dynamic batching, and class-based stateful workers. Invoke synchronously (`.remote()`), asynchronously (`.spawn()`), or as a map (`.map()`).
Documentation
Documentation
https://modal.com/docs/guide/apps
Documentation
https://modal.com/docs/reference/modal.Function
Documentation
https://modal.com/docs/reference/modal.App