Modal
Modal is a serverless cloud platform optimized for AI, data, and Python workloads. The Modal SDK and API let developers deploy GPU-accelerated functions, batch jobs, sandboxed code execution, web endpoints, and scheduled tasks with sub-second cold starts and pay-per-second billing.
APIs
Modal Functions API
Defines, deploys, and invokes serverless Python Functions on Modal with per-function GPU/CPU/memory configuration, autoscaling, and sub-second cold starts.
Modal Apps API
Logical grouping of functions, classes, and resources deployed and versioned together as an App.
Modal Sandboxes API
Spins up isolated, GPU-capable sandbox containers for running untrusted code (LLM agents, tool use, code-interpreter workflows) with file-system and network controls.
Modal Images API
Builds, caches, and rehydrates container images with pip / conda / apt / uv layers and supports custom Dockerfiles for function and sandbox runtimes.
Modal Volumes API
Distributed read/write Volumes for persistent storage of model weights, datasets, and caches across function invocations.
Modal Network File Systems API
Network File Systems for shared, mountable file storage across multiple functions and sandboxes.
Modal Secrets API
Stores environment-variable secrets and API keys, mountable into functions and sandboxes at runtime.
Modal Web Endpoints API
Publishes HTTP, WebSocket, and ASGI/WSGI web endpoints (FastAPI, Flask, Streamlit) backed by serverless Modal containers with custom domains and TLS.
Modal Cron API
Schedules functions to run on cron expressions with retries, time-zone awareness, and job history.
Modal Queues API
Distributed FIFO queues for asynchronous workloads, work-stealing, and producer/consumer patterns across functions.
Modal Dicts API
Distributed dictionaries (key-value stores) for sharing state between functions and across container restarts.
Modal Tunnels API
Forwards local ports into Modal containers (and vice versa) for development, debugging, and hybrid networking.
Modal Environments API
Multi-environment isolation (dev / staging / prod) within a workspace, each with its own apps, secrets, and quotas.
Modal Token / Workspace API
Manages workspaces, tokens, members, and authentication for the Modal control plane.