Skip to content

Commit 81fa8f4

Browse files
committed
pricin
1 parent dd0c5c3 commit 81fa8f4

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

src/content/docs/workflows/reference/pricing.mdx

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,52 @@ Workflows is included in both the Free and Paid [Workers plans](/workers/platfor
1414

1515
:::
1616

17-
Workflows pricing is identical to [Workers Standard pricing](/workers/platform/pricing/#workers) and are billed on two dimensions:
17+
Workflows pricing is identical to [Workers Standard pricing](/workers/platform/pricing/#workers) and are billed on three dimensions:
1818

1919
* **CPU time**: the total amount of compute (measured in milliseconds) consumed by a given Workflow.
2020
* **Requests** (invocations): the number of Workflow invocations. [Subrequests](/workers/platform/limits/#subrequests) made from a Workflow do not incur additional request costs.
21+
* **Storage**: the total amount of storage (measured in GB) persisted by your Workflows.
2122

2223
A Workflow that is waiting on a response to an API call, paused as a result of calling `step.sleep`, or otherwise idle, does not incur CPU time.
2324

25+
### Workflows Pricing
26+
27+
| Unit | Workers Free | Workers Paid |
28+
|------|--------------|--------------|
29+
| Requests (millions) | 100,000 per day ([shared with Workers requests](/workers/platform/pricing/#workers)| 10 million included per month + $0.30 per additional million |
30+
| CPU time (ms) | 10 milliseconds of CPU time per invocation | 30 million CPU milliseconds included per month + $0.02 per additional million CPU milliseconds |
31+
| Storage (GB-mo) | 1GB | 1GB included per month + $0.20/ GB-month |
32+
33+
::note[CPU limits]
34+
35+
You can increase the CPU limit available to your Workflow instances up to 5 minutes per Workflow by [setting the `limits.cpu_ms` property](/workers/wrangler/configuration/#limits) in your Wrangler configuration.
36+
37+
:::
38+
39+
### Storage Usage
40+
41+
:::Note
42+
43+
Storage billing for Workflows will go live on September 15th, 2025.
44+
45+
:::
46+
47+
Storage is billed using gigabyte-month (GB-month) as the billing metric, identical to [Durable Objects SQL storage](/durable-objects/platform/pricing/#sqlite-storage-backend). A GB-month is calculated by averaging the peak storage per day over a billing period (30 days).
48+
49+
* Storage is calculated across all instances, and includes running, errored, sleeping and completed instances.
50+
* By default, instance state is retained for [3 days on the Free plan](/workflows/reference/limits/) and [7 days on the Paid plan](/workflows/reference/limits/).
51+
* When creating a Workflow instance, you can set a shorter state retention period if you do not need to retain state for errored or completed Workflows.
52+
* Deleting instances via the [Workers API](/workflows/build/workers-api/), [wrangler CLI](/workers/wrangler/commands/#workflows), REST API or dashboard will free up storage. Note that it may take a few minutes for storage limits to update.
53+
54+
An instance that attempts to store state when your have reached the storage limit on the Free plan will cause an error to be thrown.
55+
2456
## Frequently Asked Questions
2557

2658
Frequently asked questions related to Workflows pricing:
2759

2860
### Are there additional costs for Workflows?
2961

30-
No. Workflows are priced based on the same compute (CPU time) and requests (invocations) as Workers.
62+
No. Workflows are priced based on the same compute (CPU time), requests (invocations) as Workers, as well as storage (state from a Workflow).
3163

3264
### Are Workflows available on the [Workers Free](/workers/platform/pricing/#workers) plan?
3365

0 commit comments

Comments
 (0)