管理 Edge Function 调用使用情况
你被收费的项目 #
🌐 What you are charged for
你的费用取决于函数被调用的次数,不管响应状态码是什么。预检(OPTIONS)请求不收费。
🌐 You are charged for the number of times your functions get invoked, regardless of the response status code. Preflight (OPTIONS) requests are not billed.
费用是怎么计算的 #
🌐 How charges are calculated
Edge 函数调用按套餐计费,每个套餐代表 100 万次调用。如果你的使用量介于两个套餐之间,会按下一个完整套餐收费。
🌐 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.
示例 #
🌐 Example
为了简单起见,假设每个包的大小为100万,每个包的收费为 $2 ,没有免费配额。
| 调用次数 | 已计费套餐 | 费用 |
|---|---|---|
| 999,999 | 1 | $2 |
| 1,000,000 | 1 | $2 |
| 1,000,001 | 2 | $4 |
| 1,500,000 | 2 | $4 |
在你的发票上的用途 #
🌐 Usage on your invoice
在发票上使用情况会显示为“函数调用”。
🌐 Usage is shown as "Function Invocations" on your invoice.
价格 #
🌐 Pricing
$2 每 100 万次调用。你只需为超出订阅计划配额的使用量付费。
| 计划 | 配额 | 超额使用 |
|---|---|---|
| 免费 | 500,000 | - |
| 专业版 | 200万 | $2 每 100 万次调用 |
| 团队版 | 200万 | $2 每 100 万次调用 |
| 企业版 | 自定义 | 自定义 |
计费示例 #
🌐 Billing examples
在配额内 #
🌐 Within quota
这个组织的功能调用在限额内,所以不会产生费用。
🌐 The organization's function invocations are within the quota, so no charges apply.
| 项目 | 单位 | 费用 |
|---|---|---|
| 专业计划 | 1 | $25 |
| 小型计算小时 | 730 小时 | $15 |
| 函数调用 | 1,800,000 次调用 | $0 |
| 小计 | $40 | |
| 计算积分 | -$10 | |
| 总计 | $30 |
超出配额 #
🌐 Exceeding quota
该组织的功能调用超过了配额 140 万次,因此需要为这部分额外使用支付费用。
🌐 The organization's function invocations exceed the quota by 1.4 million, incurring charges for this additional usage.
| 项目 | 单位 | 成本 |
|---|---|---|
| 专业计划 | 1 | $25 |
| 小型计算小时 | 730 小时 | $15 |
| 函数调用 | 3,400,000 次调用 | $4 |
| 小计 | $44 | |
| 计算积分 | -$10 | |
| 总计 | $34 |
查看使用情况 #
🌐 View usage
你可以在组织的使用情况页面查看 Edge Function 调用的使用情况。该页面默认显示所有项目的使用情况。要查看特定项目的使用情况,请从下拉菜单中选择它。你也可以选择不同的时间段。
🌐 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.

在边缘函数调用部分,你可以看到你的项目在所选时间段内有多少次调用。
🌐 In the Edge Function Invocations section, you can see how many invocations your projects have had during the selected time period.

超额 #
🌐 Exceeding Quotas
如果你使用的是付费计划并且已关闭花费上限,或者你的组织使用的是团队计划及以上,你将需要支付任何超出部分的费用。
🌐 If you are on a paid plan and have Spend Cap disabled or your organization is on Team Plan or above, you will pay for any overages.
当你在使用免费计划或启用了消费上限时超出配额,你会收到发送到账单邮箱的通知,并进入宽限期。更多细节请参阅我们的公平使用政策。
🌐 When you are exceeding your quotas while being on a Free Plan or having Spend Cap enabled, you will get a notification to your billing email address and put under a grace period. For more details, refer to our Fair Use Policy.