apps/docs/content/guides/platform/manage-your-usage/edge-function-invocations.mdx
You are charged for the number of times your functions get invoked, regardless of the response status code. Preflight (OPTIONS) requests are not billed.
Edge Function Invocations are billed using Package pricing, with each package representing 1 million invocations. If your usage falls between two packages, you are billed for the next whole package.
For simplicity, let's assume a package size of 1 million and a charge of <Price price="2" /> per package without a free quota.
| Invocations | Packages Billed | Costs |
|---|---|---|
| 999,999 | 1 | <Price price="2" /> |
| 1,000,000 | 1 | <Price price="2" /> |
| 1,000,001 | 2 | <Price price="4" /> |
| 1,500,000 | 2 | <Price price="4" /> |
Usage is shown as "Function Invocations" on your invoice.
<$Partial path="billing/pricing/pricing_edge_functions.mdx" />
The organization's function invocations are within the quota, so no charges apply.
| Line Item | Units | Costs |
|---|---|---|
| Pro Plan | 1 | <Price price="25" /> |
| Compute Hours Micro | 744 hours | <Price price="10" /> |
| Function Invocations | 1,800,000 invocations | <Price price="0" /> |
| Subtotal | <Price price="35" /> | |
| Compute Credits | -<Price price="10" /> | |
| Total | <Price price="25" /> |
The organization's function invocations exceed the quota by 1.4 million, incurring charges for this additional usage.
| Line Item | Units | Costs |
|---|---|---|
| Pro Plan | 1 | <Price price="25" /> |
| Compute Hours Micro | 744 hours | <Price price="10" /> |
| Function Invocations | 3,400,000 invocations | <Price price="4" /> |
| Subtotal | <Price price="39" /> | |
| Compute Credits | -<Price price="10" /> | |
| Total | <Price price="29" /> |
You can view Edge Function Invocations usage on the organization's usage page. The page shows the usage of all projects by default. To view the usage for a specific project, select it from the dropdown. You can also select a different time period.
<Image alt="Usage page navigation bar" src={{ light: '/docs/img/guides/platform/usage-navbar--light.png', dark: '/docs/img/guides/platform/usage-navbar--dark.png', }}
width={1546} height={208} />
In the Edge Function Invocations section, you can see how many invocations your projects have had during the selected time period.
<Image alt="Usage page Edge Function Invocations section" src={{ light: '/docs/img/guides/platform/usage-function-invocations--light.png', dark: '/docs/img/guides/platform/usage-function-invocations--dark.png', }}
width={2008} height={734} />
<$Partial path="billing/exceeding_usage_quotas.mdx" />