modal-web-serving

Installation
SKILL.md

Modal Web Serving

Use this skill when exposing Modal Functions as web endpoints, building APIs, or serving web applications.

For Servers (@app.server / modal.Server) — long-lived port-based HTTP with regional routing and default proxy-token auth — see modal-servers. For managed OpenAI-compatible LLM APIs, see modal-endpoints.

When to Use This Skill

  • Creating REST/HTTP APIs from Modal Functions
  • Serving ML model inference over HTTP
  • Building web apps with FastAPI, Django, or Flask on Modal
  • Setting up streaming (SSE) endpoints
  • Configuring custom domains
  • Adding authentication to web endpoints

Quick Start

image = modal.Image.debian_slim().pip_install("fastapi[standard]")
Installs
5
GitHub Stars
4
First Seen
Jun 9, 2026