Learn It Yourself
All courses · Dashboard › Cloudflare for Your Own Tools
Learn It YourselfOnline servicesBeginner

Cloudflare for Your Own Tools

Your course site already runs on Cloudflare. Cloudflare can do a lot more than host a website, though: make pictures and videos with AI, resize images on the fly, play videos, and put a login in front of a site. This course shows what each service does, what it costs for one person, and what would be useful for your own small tools.

Beginner 11 lessons 1 try-it-yourself step 10 practice goals

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
How each lesson works
1. ReadA short, plain explanation with an everyday comparison.
2. PractisePretend exercises on this page. Nothing here touches your real account.
3. Tick it offFinished exercises get a tick. Progress also shows on your dashboard.
You don't have to set anything up yourself

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.

Lesson 01Reading

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:

🌐DomainsBuying and renewing your web address, like promptityourself.ai.
you have this
🏠Workers (hosting)Shows your website, and can run small programs too.
your course site
🎨Workers AIRuns AI models: makes pictures, writes text, reads images.
🖼️ImagesResizes, crops and shrinks pictures automatically.
🎬StreamStores videos and plays them smoothly on any device.
🚪Zero TrustA login door in front of a website, so only chosen people get in.
Two more you may hear about

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.

Lesson 02Practice

Which service does what?

Practise: for each job, pick the Cloudflare service that does it.

Lesson 03Try it yourself

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.

1You change a courseThrough Claude, as usual.
2Claude uploads itWith the go-live script and your Cloudflare key from piy-sops.
3Cloudflare spreads itCopies go to its computers worldwide within seconds.
4Anyone with the linkopens it fast, with the padlock.
What it costs: nothing

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.

Right now, anyone with the link can open it

A website is public unless you put a door in front of it. Lesson 08 shows how Zero Trust lets only you in.

Try it yourselfCloudflare websitenot done yet
  1. Open dash.cloudflare.com and log in.
  2. In the left menu, click Workers & Pages (it may be inside Compute).
  3. 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.
  4. Just look. You don't need to change anything.
Lesson 04Practice

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:

FreeWorkers Paid: $5 a month
Program runs100,000 a day10 million a month included, then $0.30 per extra million
Thinking time per run10 milliseconds: enough for small jobsUp to 5 minutes, 30 million milliseconds a month included
AI (Workers AI)A daily free amount, then it stopsThe same daily free amount, then pay as you go
Storage and databasesSmall free amountsBigger free amounts, then pay as you go
Your website pagesFree and unlimitedFree and unlimited
Think of a phone plan

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?

Lesson 05Practice

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.

Free
Try a small number first, then go past the free line.
Lesson 06Reading

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.

Do you need Stream?

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.

Lesson 07Practice

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.

What it costs

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.)

Width
Format
Original photo: 4,000 pixels wide, about 5 MB.
Lesson 08Practice

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?

1You open the siteCloudflare shows its own login page first.
2You type your emailOnly emails on your guest list count.
3A code arrivesA 6-digit code is emailed to you. No password to remember.
4You're inFor a set time, for example a day or a month, then it asks again.
What it costs: nothing for 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.

What it means for your progress ticks

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.

Opens the link→Types an email→Gets a code→Sees the courses

Pick a visitor above.

Seen 0 of 4 visitors.
Lesson 09Reading

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.

🚪 Only you can open itPut Access in front of foundation.promptityourself.ai with your email on the guest list.
free (card needed once)
🔄 Progress on every deviceSave your ticks in a small D1 database through a Worker, so your phone and laptop show the same progress.
free
🎨 A picture for each courseMake a header illustration for each course with a Workers AI picture model, in your brand colours.
free
💬 "Explain it differently"A button under each lesson that asks a Workers AI text model for a simpler explanation or an example.
free for light use
🖼️ Light, fast screenshotsAdd real screenshots to lessons and let image transformations shrink them for phones.
free
🎬 Short video lessonsRecord your screen once and play it in a lesson. Small files are fine in R2; many or long videos suit Stream.
R2 free · Stream from $5 a month
Start with the door

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.

Lesson 10Quiz

What would you use?

Pick the best answer for each situation.

Lesson 11Reference

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.