Cloudflare is the entire infrastructure layer of 2nth.ai. Not just DNS — Workers, Pages, D1, KV, R2, AI, Zero Trust, Queues, and Durable Objects. Every product, explained for operators who build on it.
The full Cloudflare compute stack — from serverless functions to stateful objects, workflow engines, and browser automation. All running at the edge, globally distributed.
Every 2nth.ai API endpoint is a Worker. Auth, billing, agents, webhooks — deployed globally, zero cold starts. Pages deploys 2nth.ai, skills, demo, agents from GitHub.
Workers Logpush, Tail Workers, and Analytics Engine. Stream request logs to R2 or third-party tools. Trace every invocation across your worker graph.
Run customer-provided code in isolated Workers per tenant. Build platforms where each user or client gets their own sandboxed execution environment.
Run any Docker image on-demand, controlled by Workers and Durable Objects. Full Linux environment, 6 instance sizes, auto-sleep billing — no container cluster to manage.
Read the explainer →Single-threaded objects with global unique ID. Strongly consistent state at the edge — real-time collaboration, WebSocket hubs, per-user state machines.
Background jobs, event processing, async pipelines. Queue a task in one Worker, consume it in another. Guaranteed at-least-once delivery with automatic retry and dead-letter support.
Long-running, resumable workflows built on Durable Objects. Define multi-step processes — AI pipelines, onboarding flows, approval chains — that survive failures and retries.
Full Puppeteer-compatible browser running in a Worker. Screenshot any URL, scrape dynamic content, generate PDFs, test UI flows — all serverless, no infrastructure.
Connect Workers to private resources — databases, internal APIs — via a Cloudflare-managed VPC. No public IP exposure, no firewall rules needed.
Route inbound email to Workers, send transactional email via the API. SPF, DKIM, DMARC all handled. Use with Email Routing to build full email workflows without an ESP.
Free: 100K requests/day. Workers Paid ($5/mo): 10M requests, unlimited scripts, Queues, Durable Objects, Workflows. Enterprise: custom SLA, dedicated support, higher limits.
Run AI models, manage inference pipelines, and build vector search — all within the Cloudflare network, billed by token not by uptime.
LLaMA 3, Whisper, Stable Diffusion, BAAI embeddings — callable from any Worker. No GPU provisioning, no model hosting. AI as a function call, billed per token.
Single endpoint for OpenAI, Anthropic, Workers AI, Replicate, and more. Caches identical prompts, logs all requests, rate limits, and falls back across providers.
Store, index, and query embedding vectors at scale. Pair with Workers AI embeddings for retrieval-augmented generation. Native to the Workers runtime — no external calls.
Relational, key-value, and object storage — all living at the edge, co-located with compute, zero separate connection overhead.
2nth.ai's primary database. Users, tokens, contracts, projects, activity logs — all in D1. Queried directly from Workers with zero network hop. Wrangler-managed migrations.
Session tokens, magic link JWTs, rate limiting counters — stored in KV. Microsecond reads from anywhere on the Cloudflare network. Built-in TTL, no server needed.
Assets, uploads, generated files. Any S3-compatible SDK works. No egress fees — unlike AWS S3, you pay only for storage and operations, never for bandwidth out.
Image optimisation and video streaming — globally cached, resized on the fly, no CDN configuration required.
Store images in Cloudflare Images or use Image Resizing via URL params. WebP/AVIF auto-conversion, responsive variants, on-the-fly transforms — all cached globally.
Upload any video — Cloudflare encodes it for adaptive bitrate playback. Embed with a signed URL, set expiry, restrict to domains. No egress costs for video delivery.
Zero Trust access control, DNS, and DDoS protection — the perimeter layer that everything else sits behind.
Access, Tunnel, WARP, Gateway, Browser Isolation. Replaces VPN with identity-aware access. Every connection verified — regardless of network location.
Read the explainer →All 2nth.ai and imbila.ai DNS runs on Cloudflare. Sub-millisecond resolution, DNSSEC, proxied records for DDoS protection and origin hiding, API-managed records.
Every Cloudflare product 2nth.ai runs on today — and why.
| Product | Used for | Why Cloudflare |
|---|---|---|
| Workers & Pages | All 2nth.ai properties — API functions, static sites, preview deploys | Zero cold starts, GitHub CI, free tier, same deploy unit |
| Durable Objects | Per-agent state, real-time session coordination | Strongly consistent edge state — no separate state server |
| Queues | Async job processing — email sends, webhook fanout | Guaranteed delivery, retry, dead-letter, no separate broker |
| Workflows | Multi-step agent pipelines, onboarding flows (planned) | Durable steps that survive failures without external orchestrator |
| D1 | Users, tokens, contracts, projects, activity logs, costs | SQLite native, no connection pool, wrangler migrations |
| KV | Sessions, magic link JWTs, rate limiting counters | Microsecond global reads, built-in TTL, no server needed |
| R2 | Asset uploads, generated files (planned) | Zero egress vs S3, same S3 API, no bandwidth cost |
| Containers | Python toolchains, document parsing, heavy ML preprocessing | Any language/runtime, auto-sleep billing, no cluster management |
| Workers AI | Brief analysis, context enrichment, embeddings | No GPU provisioning, billed per token, stays on Cloudflare network |
| AI Gateway | Proxy + cache for Anthropic/OpenAI calls (planned) | Unified logging, caching, fallback across providers |
| Zero Trust | Admin route protection, team access, future client portals | Identity-aware access without VPN, any IdP |
| DNS | 2nth.ai, imbila.ai, b2bs.co.za zones | Fastest authoritative DNS, proxied records, full API control |