What you'll learn
- What Cloudflare is, and the handful of its services that matter for you
- What you get for free, and what the $5 a month Workers plan adds
- How AI pictures and videos can be made through Cloudflare, and what they cost
- How one image can be shown in any size without making copies
- How Zero Trust puts a login in front of your site, so only you get in
- Small, useful ideas for your own course site
This course is for knowing what's possible. When you want to use something, tell Claude, and it does the setup in your Cloudflare account. Claude asks you first about anything that costs money.
What Cloudflare is
Cloudflare runs computers in hundreds of cities around the world. Companies rent small slices of them to show websites, store files and run programs close to whoever is visiting. About one in five websites goes through Cloudflare.
For you, it works like a big shopping centre: one account and one bill, with many shops inside. You only walk into the shops you need, and many of them have a free shelf at the front.
These are the shops this course visits. The ones with an amber frame are the ones you already use:
you have this
your course site
R2 is a storage cupboard for files (pictures, videos, backups), with 10 GB free. D1 is a small database, like a spreadsheet your programs can read and write. You'll meet both again in Lesson 09.
Which service does what?
Practise: for each job, pick the Cloudflare service that does it.
Hosting: your site today
Your course site is a set of finished pages: words, pictures and a little code that runs in the visitor's browser. Cloudflare keeps copies of those pages in its computers around the world and hands them out to whoever opens foundation.promptityourself.ai.
The part of Cloudflare that does this is called Workers. Cloudflare used to have a separate service for websites called Pages, and in 2026 it merged it into Workers. That's why your site appears under "Workers & Pages" in the dashboard.
Pages that are simply handed out as they are (Cloudflare calls them static assets) are free and unlimited, even on the free plan. Only the domain name costs money.
A website is public unless you put a door in front of it. Lesson 08 shows how Zero Trust lets only you in.
- Open dash.cloudflare.com and log in.
- In the left menu, click Workers & Pages (it may be inside Compute).
- Click foundation. That's your course site. On its page you can see how many times it was opened, and under Settings → Domains & Routes your address foundation.promptityourself.ai.
- Just look. You don't need to change anything.
The $5 Workers plan
Workers can do more than hand out pages: they can run small programs on Cloudflare's computers. For example, a program that asks an AI model for a picture, or one that saves your course progress. Every time a program runs, that's one request.
There are two plans for these programs:
| Free | Workers Paid: $5 a month | |
|---|---|---|
| Program runs | 100,000 a day | 10 million a month included, then $0.30 per extra million |
| Thinking time per run | 10 milliseconds: enough for small jobs | Up to 5 minutes, 30 million milliseconds a month included |
| AI (Workers AI) | A daily free amount, then it stops | The same daily free amount, then pay as you go |
| Storage and databases | Small free amounts | Bigger free amounts, then pay as you go |
| Your website pages | Free and unlimited | Free and unlimited |
The free plan is like prepaid credit that refills every day: when it runs out, things stop until tomorrow, and you never get a bill. The $5 plan is a contract: a bigger bundle each month, and if you go over, you pay a little extra instead of being cut off.
Practise: for each plan of yours, is the free plan enough, or would you need the $5 plan?
Making pictures with AI
Workers AI runs AI models on Cloudflare's own computers. You (or your tool) send a sentence like "a friendly robot reading a book, watercolour", and a picture comes back a few seconds later.
Picture models running on Cloudflare itself include FLUX.2 and FLUX.1 schnell (from Black Forest Labs), Lucid Origin and Phoenix (from Leonardo), and Stable Diffusion XL Lightning. They are good, fast everyday models.
Cloudflare also has a bigger model catalogue that passes your request on to other companies' models, such as Google's Nano Banana, OpenAI's GPT Image and ByteDance's Seedream. Those are usually the most impressive, and they're always paid per picture, at each company's own price.
Cloudflare's own models
Measured in neurons, Cloudflare's unit for AI work. Every account gets 10,000 neurons a day free. Above that it's $0.011 per 1,000 neurons, on the $5 plan only.
Other companies' models
Paid per picture at that company's price. Some need your own account with that company. Claude checks the current price before using one.
Practise: how many pictures a day fit in the free amount? Move the slider. This uses a rough figure from one independent test: about 173 neurons per FLUX.1 schnell picture. Bigger models and bigger pictures use more.
Video: making and playing
"Video on Cloudflare" can mean two quite different things. It helps to keep them apart:
🎥 Making a video with AI
You describe a scene (or give a picture) and get a short clip back, often 5 to 20 seconds, sometimes with sound.
Cloudflare doesn't run video models on its own computers. Its model catalogue passes the request on to other companies' models, such as Google Veo, Kling, Runway, ByteDance Seedance and Lightricks LTX.
A clip takes from several seconds to a few minutes to make, and it costs noticeably more than a picture, at each company's own price.
▶️ Storing and playing videos (Stream)
You upload a finished video. Stream prepares it so it plays smoothly on phones, laptops and slow connections, and gives you a player to put on your site.
$5 a month per 1,000 minutes stored, plus $1 per 1,000 minutes watched. Uploading is free. There's no free tier.
For a few short course videos, that's about $5 a month.
For a handful of short clips that only you watch, probably not: a small video file can sit next to your pages, or in R2 storage (10 GB free), and play in a normal video player. Stream is worth it for many or long videos, or for many viewers.
Resizing images on the fly
A photo from your phone can be 4,000 pixels wide and 5 MB. On a course page it's shown at 400 pixels, so most of that download is wasted. Usually you'd save a small copy, a medium copy and a large copy by hand.
Image transformations (part of Cloudflare Images) do it for you. You keep one original, and the web address of the picture says what size and format you want. Cloudflare makes that version the first time someone asks, and keeps it ready for next time.
5,000 different versions a month are free. On the free plan, it simply stops making new versions after that (versions already made keep working). On a paid Images plan, extra versions are $0.50 per 1,000. For a personal site you'd stay well inside the free amount.
Practise: choose a size and a format, and watch the picture's address and file size change. (The sizes are rough, for illustration.)
Zero Trust: a login for your site
Zero Trust is a security idea: trust nobody by default, check everyone at the door. Cloudflare's version for websites is called Access.
Access puts a doorman in front of your site. Your pages don't change at all. Before anyone sees them, Cloudflare asks: who are you?
Zero Trust is free for up to 50 people. One catch: when you first switch it on, Cloudflare asks for a payment card, even for the free plan. It doesn't charge you. That's the one step Claude can't do for you.
Your ticks and learning time stay in your browser, as now. The login only decides who can open the pages.
Practise: your guest list has one email: yours. Send each visitor to the door and see what happens.
Pick a visitor above.
Ideas for your course site
Small, personal ideas that fit what you've seen. Each one is something you could ask Claude for. Green means it fits in the free plans; amber means it could cost a little.
free (card needed once)
free
free
free for light use
free
R2 free · Stream from $5 a month
If the site is just for you, the login (Access) is the natural first step. Everything else can come later, one idea at a time.
What would you use?
Pick the best answer for each situation.
Cheat sheet and prices
Which service for which job
- Workers
- show a website, run small programs
- Workers AI
- make pictures, write text
- Images
- resize and shrink pictures
- Stream
- store and play videos
- Access
- a login door for a site (Zero Trust)
- R2 / D1
- file storage / small database
Words in this course
- Static assets
- finished pages handed out as they are
- Request
- one time a program runs
- Neurons
- Cloudflare's unit for AI work
- Transformation
- one size or format of a picture
- Zero Trust
- check everyone at the door
Free amounts
- Website pages
- unlimited
- Program runs
- 100,000 a day
- Workers AI
- 10,000 neurons a day
- Image versions
- 5,000 a month
- R2 storage
- 10 GB
- Zero Trust
- up to 50 people
What costs money
- Domain
- promptityourself.ai, about $80 a year
- Workers Paid
- $5 a month, for more AI and longer programs
- AI beyond free
- $0.011 per 1,000 neurons
- Stream
- $5 per 1,000 min stored + $1 per 1,000 min watched
- Other AI models
- each company's own price
Can I get a surprise bill?
Not on the free plans: when a free amount runs out, that thing stops until it refills. On the $5 plan, going over costs a little extra instead of stopping. Claude will always ask before switching on anything paid.
Is the $5 plan worth it for me right now?
Not yet. Your site, a login door and a few AI pictures a day all fit in the free plans. The $5 plan makes sense once you make many AI pictures a day or build programs that do heavy work.
Does Zero Trust slow my site down?
No. You log in once with an emailed code, and after that pages open as fast as before until the login runs out.
Why do Cloudflare's own AI models cost less than the famous ones?
Cloudflare runs its own models on its own computers and includes a daily free amount. The famous models belong to other companies, which set their own prices. Cloudflare just passes the request on.
What happened to "Cloudflare Pages"?
Cloudflare merged it into Workers in 2026. Same idea, one place: your site runs as a Worker that hands out your pages.