Edge Function limits

Edge Function limits per plan.

LimitFreeProScaleEnterprise
Edge Functions per project101002501,000
Edge Function invocations per month500,0002,000,0005,000,00025,000,000
Edge Function CPU time per month (account)10,000 CPU-s30,000 CPU-s100,000 CPU-s500,000 CPU-s
Edge Function size (all files)5,120 KB20,480 KB20,480 KB20,480 KB
Edge Function memory128 MB150 MB256 MB256 MB
Edge Function CPU time per request2,000 ms2,000 ms4,000 ms4,000 ms
Edge Function wall-clock limit60 s150 s400 s400 s
  • CPU time counts only the time your code computes; waiting for fetch or the database does not count. Wall-clock is the total time a request (including waitUntil work) may take.
  • A function that goes over its CPU time or memory is stopped and the request gets 546.
  • When the monthly invocations are used up, functions answer 429 QUOTA_EXCEEDED until the 1st of next month or until you upgrade.
  • Request bodies up to 20 MB. Your plan's API requests per second apply to functions too.
  • Paused projects answer 503 until they are restored.
  • Work that takes longer than the wall clock (imports, batch e-mails, AI calls over many documents) fits background jobs: in steps, or in job mode as one run of up to 60 minutes.