Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/ai-gateway/reference/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The following limits apply to gateway configurations, logs, and related features
| [Cache TTL](/ai-gateway/features/caching/#cache-ttl-cf-aig-cache-ttl) | 1 month |
| [Custom metadata](/ai-gateway/observability/custom-metadata/) | 5 entries per request |
| Gateways free plan | 10 per account |
| Gateways paid plan | 20 per account |
| Gateways paid plan | Unlimited, with a default limit of 20 per account. Each gateway above 20 costs [$0.10 per month](/ai-gateway/reference/pricing/#gateways). |
| Gateway name length | 64 characters |
| [Unified Billing](/ai-gateway/features/unified-billing/) request rate | 200 requests per 60 seconds per gateway <sup>1</sup> |

Expand Down
8 changes: 8 additions & 0 deletions src/content/docs/ai-gateway/reference/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ AI Gateway's core features available today are offered for free, and all it take

You can monitor your usage in the AI Gateway dashboard.

## Gateways

| Resource | Workers Free | Workers Paid |
| --- | --- | --- |
| Gateways per account | 10 | Unlimited, with a default limit of 20. First 20 included + $0.10 per additional gateway per month. |

Refer to [AI Gateway limits](/ai-gateway/reference/limits/#gateway-limits) for gateway creation limits and how to request a limit increase. Other usage charges apply separately.

## Logs

AI Gateway stores logs in either Workers Logs or Legacy Logs, depending on when your account created its first gateway.
Expand Down
8 changes: 7 additions & 1 deletion src/content/docs/ai-search/platform/limits-pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The following limits apply based on your [Workers plan](/workers/platform/pricin

| Limit | Workers Free | Workers Paid |
| -------------------------------------------- | --------------------------------------- | --------------------------------------- |
| AI Search instances per account | 100 | 5,000 |
| AI Search instances per account | 100 | Unlimited, with a default limit of 5,000. Each instance above 5,000 costs [$0.10 per month](#pricing). |
| Namespaces per account | 100 | 100 |
| Files per instance | 100,000 | 1M or 500K for hybrid search |
| Pages per crawl, `discover` parse type | 100,000 | 100,000 |
Expand Down Expand Up @@ -48,6 +48,12 @@ Every account receives the following included usage each month:
- 1,000 semantic queries
- 1,000 full-text queries

| Resource | Workers Free | Workers Paid |
| --- | --- | --- |
| AI Search instances per account | 100 | Unlimited, with a default limit of 5,000. First 5,000 included + $0.10 per additional instance per month. |

The instance allowance counts instances across all namespaces in your account. Namespaces group instances and do not incur an additional resource charge. To create more than the default limit, complete the [Limit Increase Request Form](https://forms.gle/wnizxrEUW33Y15CT8).

Usage beyond the included amounts is billed at these rates:

| Usage | Price |
Expand Down
10 changes: 10 additions & 0 deletions src/content/docs/cloudflare-for-platforms/artifacts.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Artifacts (git storage)
description: Store and manage versioned files for your platform with Artifacts.
pcx_content_type: navigation
external_link: /artifacts/
sidebar:
order: 4
products:
- cloudflare-for-platforms
---
10 changes: 10 additions & 0 deletions src/content/docs/cloudflare-for-platforms/d1.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: D1 (SQL DB)
description: Create and manage SQL databases for your platform with D1.
pcx_content_type: navigation
external_link: /d1/
sidebar:
order: 2
products:
- cloudflare-for-platforms
---
10 changes: 10 additions & 0 deletions src/content/docs/cloudflare-for-platforms/r2.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: R2 (Object Storage)
description: Store and manage objects for your platform with R2.
pcx_content_type: navigation
external_link: /r2/
sidebar:
order: 3
products:
- cloudflare-for-platforms
---
2 changes: 1 addition & 1 deletion src/content/docs/d1/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Create new serverless SQL databases to query from your Workers and Pages project

D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.

D1 allows you to create thousands of databases at no extra cost for isolation, perfect for scaling out application vibe-coding platforms. D1 pricing is based only on query and storage costs.
D1 supports separate databases for users, tenants, or projects. The Workers Paid plan includes 100,000 databases. Additional databases cost $0.10 per database per month, alongside [query and storage charges](/d1/platform/pricing/).

Create your first D1 database by [following the Get started guide](/d1/get-started/), learn how to [import data into a database](/d1/best-practices/import-export-data/), and how to [interact with your database](/d1/worker-api/) directly from [Workers](/workers/) or [Pages](/pages/functions/bindings/#d1-databases).

Expand Down
44 changes: 21 additions & 23 deletions src/content/docs/d1/platform/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,36 @@ products:

import { Render } from "~/components";

| Feature | Limit |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| Databases per account | 50,000 (Workers Paid) [^1] / 10 (Free) |
| Maximum database size | 10 GB (Workers Paid) / 500 MB (Free) |
| Maximum storage per account | 1 TB (Workers Paid) [^2] / 5 GB (Free) |
| [Time Travel](/d1/reference/time-travel/) duration (point-in-time recovery) | 30 days (Workers Paid) / 7 days (Free) |
| Maximum Time Travel restore operations | 10 restores per 10 minutes (per database) |
| Feature | Limit |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| Databases per account | Workers Paid: 1,000,000. The first 100,000 databases are included. Each database above 100,000 costs [$0.10 per month](/d1/platform/pricing/#billing-metrics). Free: 10. |
| Maximum database size | 10 GB (Workers Paid) / 500 MB (Free) |
| Maximum storage per account | 1 TB (Workers Paid) [^1] / 5 GB (Free) |
| [Time Travel](/d1/reference/time-travel/) duration (point-in-time recovery) | 30 days (Workers Paid) / 7 days (Free) |
| Maximum Time Travel restore operations | 10 restores per 10 minutes (per database) |
| Queries per Worker invocation (read [subrequest limits](/workers/platform/limits/#subrequests)) | 1000 (Workers Paid) / 50 (Free) |
| Maximum number of columns per table | 100 |
| Maximum number of rows per table | Unlimited (excluding per-database storage limits) |
| Maximum string, `BLOB` or table row size | 2,000,000 bytes (2 MB) |
| Maximum SQL statement length | 100,000 bytes (100 KB) |
| Maximum bound parameters per query | 100 |
| Maximum arguments per SQL function | 32 |
| Maximum characters (bytes) in a `LIKE` or `GLOB` pattern | 50 bytes |
| Maximum bindings per Workers script | Approximately 5,000 [^3] |
| Maximum SQL query duration | 30 seconds [^4] |
| Maximum file import (`d1 execute`) size | 5 GB [^5] |
| Maximum number of columns per table | 100 |
| Maximum number of rows per table | Unlimited (excluding per-database storage limits) |
| Maximum string, `BLOB` or table row size | 2,000,000 bytes (2 MB) |
| Maximum SQL statement length | 100,000 bytes (100 KB) |
| Maximum bound parameters per query | 100 |
| Maximum arguments per SQL function | 32 |
| Maximum characters (bytes) in a `LIKE` or `GLOB` pattern | 50 bytes |
| Maximum bindings per Workers script | Approximately 5,000 [^2] |
| Maximum SQL query duration | 30 seconds [^3] |
| Maximum file import (`d1 execute`) size | 5 GB [^4] |

:::note[Batch limits]
Limits for individual queries (listed above) apply to each individual statement contained within a batch statement. For example, the maximum SQL statement length of 100 KB applies to each statement inside a `db.batch()`.
:::

[^1]: The maximum number of databases per account can be increased by request on Workers Paid and Enterprise plans, with support for millions to tens-of-millions of databases (or more) per account. Refer to the guidance on limit increases on this page to request an increase.
[^1]: The maximum storage per account can be increased by request on Workers Paid and Enterprise plans. Refer to the guidance on limit increases on this page to request an increase.

[^2]: The maximum storage per account can be increased by request on Workers Paid and Enterprise plans. Refer to the guidance on limit increases on this page to request an increase.
[^2]: A single Worker script can have up to 1 MB of script metadata. A binding is defined as a binding to a resource, such as a D1 database, KV namespace, [environmental variable](/workers/configuration/environment-variables/), or secret. Each resource binding is approximately 150-bytes, however environmental variables and secrets are controlled by the size of the value you provide. Excluding environmental variables, you can bind up to \~5,000 D1 databases to a single Worker script.

[^3]: A single Worker script can have up to 1 MB of script metadata. A binding is defined as a binding to a resource, such as a D1 database, KV namespace, [environmental variable](/workers/configuration/environment-variables/), or secret. Each resource binding is approximately 150-bytes, however environmental variables and secrets are controlled by the size of the value you provide. Excluding environmental variables, you can bind up to \~5,000 D1 databases to a single Worker script.
[^3]: Requests to Cloudflare API must resolve in 30 seconds. Therefore, this duration limit also applies to the entire batch call.

[^4]: Requests to Cloudflare API must resolve in 30 seconds. Therefore, this duration limit also applies to the entire batch call.

[^5]: The imported file is uploaded to R2. Refer to [R2 upload limit](/r2/platform/limits).
[^4]: The imported file is uploaded to R2. Refer to [R2 upload limit](/r2/platform/limits).

Cloudflare also offers other storage solutions such as [Workers KV](/kv/api/), [Durable Objects](/durable-objects/), and [R2](/r2/get-started/). Each product has different advantages and limits. Refer to [Choose a data or storage product](/workers/platform/storage-options/) to review which storage option is right for your use case.

Expand Down
1 change: 1 addition & 0 deletions src/content/docs/d1/platform/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ D1 bills based on:
- **Usage**: Queries you run against D1 will count as rows read, rows written, or both (for transactions or batches).
- **Scale-to-zero**: You are not billed for hours or capacity units. If you are not running queries against your database, you are not billed for compute.
- **Storage**: You are only billed for storage above the included [limits](/d1/platform/limits/) of your plan.
- **Databases**: The Workers Paid plan includes 100,000 databases per account. Each additional database costs $0.10 per month.

## Billing metrics

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/kv/platform/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Render } from "~/components";
| Writes to different keys | 1,000 writes per day | Unlimited |
| Writes to same key | 1 per second | 1 per second |
| Operations/Worker invocation [^1] | 1000 | 1000 |
| Namespaces per account | 1,000 | 1,000 |
| Namespaces per account | 1,000 | Unlimited, with a default limit of 1,000. Each namespace above 1,000 costs [$0.10 per month](/kv/platform/pricing/). |
| Storage/account | 1 GB | Unlimited |
| Storage/namespace | 1 GB | Unlimited |
| Keys/namespace | Unlimited | Unlimited |
Expand Down
16 changes: 11 additions & 5 deletions src/content/docs/kv/platform/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,30 @@ products:
- kv
---

import { Render } from "~/components"
import { Render } from "~/components";

<Render file="kv_pricing" product="workers" />

## Pricing FAQ

#### When writing via KV's [REST API](/api/resources/kv/subresources/namespaces/subresources/keys/methods/bulk_update/), how are writes charged?
### How much do additional namespaces cost?

The Workers Paid plan includes 1,000 namespaces per account. Each additional namespace costs $0.10 per month.

For example, 1,050 namespaces existing for a full billing month cost `(1,050 - 1,000) × $0.10 = $5.00` for the 50 additional namespaces. Read, write, delete, list, and storage charges apply separately.

### When writing via KV's [REST API](/api/resources/kv/subresources/namespaces/subresources/keys/methods/bulk_update/), how are writes charged?

Each key-value pair in the `PUT` request is counted as a single write, identical to how each call to `PUT` in the Workers API counts as a write. Writing 5,000 keys via the REST API incurs the same write costs as making 5,000 `PUT` calls in a Worker.

#### Do queries I issue from the dashboard or wrangler (the CLI) count as billable usage?
### Do queries I issue from the dashboard or wrangler (the CLI) count as billable usage?

Yes, any operations via the Cloudflare dashboard or wrangler, including updating (writing) keys, deleting keys, and listing the keys in a namespace count as billable KV usage.

#### Does Workers KV charge for data transfer / egress?
### Does Workers KV charge for data transfer / egress?

No.

#### What operations incur operations charges?
### What operations incur operations charges?

All operations incur charges, including fetches for non-existent keys that return a `null` (Workers API) or `HTTP 404` (REST API). These operations still traverse KV's infrastructure.
4 changes: 2 additions & 2 deletions src/content/docs/queues/platform/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ products:
import { Render, WranglerConfig } from "~/components"

:::caution
The following limits apply to both Workers Paid and Workers Free plans with the exception of **Message Retention**, which is non-configurable at 24 hours for the Workers Free plan.
The following limits apply to both Workers Paid and Workers Free plans except for queue counts and **Message Retention**, which is non-configurable at 24 hours for the Workers Free plan.
:::

| Feature | Limit |
| ----------------------------------------------------------------| ------------------------------------------------------------- |
| Queues | 10,000 per account |
| Queues | Workers Paid: Unlimited, with a default limit of 10,000 per account. Each queue above 10,000 costs [$0.10 per month](/queues/platform/pricing/). Workers Free: 10,000 per account. |
| Message size | 128 KB <sup>1</sup> |
| Message retries | 100 |
| Maximum consumer batch size | 100 messages |
Expand Down
1 change: 1 addition & 0 deletions src/content/docs/queues/platform/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { Render } from "~/components"

## Examples


If an application writes, reads and deletes (consumes) one million messages a day (in a 30 day month), and each message is less than 64 KB in size, the estimated bill for the month would be:


Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/r2/platform/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { Render } from "~/components";
| ------------------------------------------------------------ | ------------------------------------------------- |
| Data storage per bucket | Unlimited |
| Number of objects per bucket | Unlimited |
| Maximum number of buckets per account | 1,000,000 |
| Maximum number of buckets per account | Unlimited, with a default limit of 100,000. Each bucket above 100,000 costs [$0.10 per month](/r2/pricing/#r2-pricing). |
| Maximum rate of bucket management operations per bucket [^1] | 50 per second |
| Number of custom domains per bucket | 100 |
| Number of custom domains per bucket | 100 |
| Object key length | 1,024 bytes |
| Object metadata size | 8,192 bytes |
| Object size | 5 TiB per object [^2] |
Expand Down
Loading
Loading