Serverless functions

Write your code, we'll run the rest

JavaScript/TypeScript functions for API endpoints, webhooks, redirects and small back ends. No servers to set up, no scaling to think about; you pay only for what you use.

Write and deploy in the browser

Write your code in the panel and deploy with one click; your own HTTPS address is ready right away.

Global network

Your function runs close to the visitor; if a provider fails it moves to the backup automatically.

Secrets

Store API keys as encrypted environment variables and read them from code via env.

Versions and rollback

The last 10 versions are kept; roll back with one click if something breaks. You can attach your own domain too.

Pricing

Free

$0

100,000 requests and 1,000,000 ms of CPU time every month.

Pay as you go

$0.45 / million requests

CPU time $0.03 per million ms. Deducted from your balance.

Functions running on the backup provider may have a different unit price; the panel shows it. Excl. VAT.

Good to know

  • A function is a single-file ES module: export default { fetch(request, env) { ... } }.
  • 5 functions per account, up to 1 MB of code each; CPU time per request is limited.
  • A new function's address becomes active within the first minute.

Your Cart Is Empty

You haven't added any products to your cart yet.

Start Shopping