You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers-ai/platform/pricing.mdx
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,14 @@ pcx_content_type: concept
3
3
title: Pricing
4
4
sidebar:
5
5
order: 1
6
-
7
6
---
8
7
9
8
:::note
10
9
11
-
12
-
Workers AI has deprecated the usage of neurons in favor of unit-based pricing. The Cloudflare dashboards will be migrated this unit-based pricing soon so you can track your usage. Individual model pages will soon document the price for each model. We also made pricing cheaper!
10
+
Workers AI has deprecated the usage of neurons in favor of unit-based pricing. The Cloudflare dashboards will be migrated this unit-based pricing soon so you can track your usage. Individual model pages will soon document the price for each model. We also made pricing cheaper!
13
11
14
12
We will begin billing for all models under this new pricing structure beginning November 1, 2024.
15
13
16
-
17
14
:::
18
15
19
16
Workers AI is included in both the [Free and Paid Workers plans](/workers/platform/pricing/) and is priced based on model task, model size, and units.
@@ -24,20 +21,24 @@ These docs will be updated as we add new pricing for new task types in our model
24
21
25
22
## Pricing Structure
26
23
24
+
Some models may have specific pricing. For specific details, check the page of the [specific model](/workers-ai/models/).
25
+
27
26
### Text Generation LLMs (incl Vision models)
27
+
28
28
Model size is measured in parameters.
29
29
Pricing is based on blended tokens (input + output).
30
30
Vision models will convert the image input into tokens for billing. Depending on size and aspect ratio, images will be charged for between 1,601 and 6,404 tokens. Most images that are more that 224 pixels wide or tall will be charged as 6,404 tokens each.
31
31
32
-
| Model Size | Pricing |
33
-
| ----------------| ------------------------ |
34
-
|\<= 3B | $0.10 per Million Tokens |
35
-
| 3.1B - 8B | $0.15 per Million Tokens |
36
-
| 8.1B - 20B | $0.20 per Million Tokens |
37
-
| 20.1B - 40B | $0.50 per Million Tokens |
38
-
| 40.1B+ | $0.75 per Million Tokens |
32
+
| Model Size | Pricing |
33
+
| ----------- | ------------------------ |
34
+
|\<= 3B | $0.10 per Million Tokens |
35
+
| 3.1B - 8B | $0.15 per Million Tokens |
36
+
| 8.1B - 20B | $0.20 per Million Tokens |
37
+
| 20.1B - 40B | $0.50 per Million Tokens |
38
+
| 40.1B+ | $0.75 per Million Tokens |
39
39
40
40
### Embeddings
41
+
41
42
Model size is measured in parameters.
42
43
Pricing is based on input tokens.
43
44
@@ -47,30 +48,30 @@ Pricing is based on input tokens.
47
48
| 151M+ parameters | $0.015 per Million Tokens |
48
49
49
50
## Image Generation
51
+
50
52
Standard models are large image models such as `@cf/stabilityai/stable-diffusion-xl-base-1.0`
51
53
Fast models are usually smaller image models that require fewer steps to generate an image, such as `@cf/black-forest-labs/flux-1-schnell` and `@cf/bytedance/stable-diffusion-xl-lightning`
52
54
We take the maximum of the image height and width to calculate pricing. For example, an image of 1024x768 would fall under 1024x1024 pricing.
53
55
54
-
| Image Size | Price |
55
-
| ------------ | ---------------------|
56
-
|\<=256x256 | $0.00025 per 5 steps |
57
-
|\<=512x512 | $0.0005 per 5 steps |
58
-
|\<=1024x1024 | $0.001 per 5 steps |
59
-
|\<=2048x2048 | $0.002 per 5 steps |
56
+
| Image Size | Price |
57
+
| ------------ | -------------------- |
58
+
|\<=256x256 | $0.00025 per 5 steps |
59
+
|\<=512x512 | $0.0005 per 5 steps |
60
+
|\<=1024x1024 | $0.001 per 5 steps |
61
+
|\<=2048x2048 | $0.002 per 5 steps |
60
62
61
63
## Speech-to-text
64
+
62
65
Speech-to-text models like `@cf/openai/whisper` are billed on minutes of audio input.
63
66
64
67
| Price |
65
68
| --------------------------------- |
66
69
| $0.0039 per minute of audio input |
67
70
68
-
69
71
## Free Allocation
70
72
71
73
Our free allocation allows anyone to use Workers AI up to a certain limit per day. To use more than the free allocation, upgrade to the Workers Paid plan, where you will be charged on any usage above the free tier based on the pricing structure above.
| Text Generation - LLM | 10,000 tokens a day across any model size |
@@ -80,7 +81,6 @@ Our free allocation allows anyone to use Workers AI up to a certain limit per da
80
81
81
82
All limits reset daily at 00:00 UTC. If you exceed any one of the above limits, further operations will fail with an error.
82
83
83
-
84
84
## Archived Pricing
85
85
86
86
Workers AI was previously metered by Neurons. We deprecated this in favor of unit-based pricing on September 26, 2024. We wanted to make it simple for people to compare and contrast Workers AI with other providers, and we also generally updated pricing to be cheaper with these new units.
0 commit comments