How it works
Each function is a TypeScript file that handles an HTTP request, deployed with the Supabase CLI and run close to users on a global network. Functions run on Deno, can import npm packages, read secrets from environment variables, and receive the caller's sign-in token so they can act on the user's behalf. Common jobs are webhooks, payments, sending email and calling AI APIs.
They are meant for short tasks: each request gets up to two seconds of CPU time (waiting on the network does not count) and 256 MB of memory, and a worker lives for at most 150 seconds on the Free plan or 400 seconds on paid plans. Outgoing SMTP ports are blocked, so email goes through an HTTP API such as Resend. Long jobs belong in a queue or another service.
Supabase Edge Functions pricing
Free tier
Free plan includes 500,000 invocations a month; Pro includes 2 million, then about $2 per million.
Supabase Edge Functions pricing page (opens in a new tab)Approximate, checked September 2026.What the other tools cost
Related terms
More in Backend platforms
Supabase pieces