CutX Documentation
CutX is an AI-powered ad creation platform and Whatnot seller suite deployed on Cloudflare’s edge network. Paste a product URL, and CutX generates ad copy, static images, and UGC videos — ready for Meta, TikTok, Google, and more.
What CutX Does
Section titled “What CutX Does”- AI Copy Generator — 5 platform-optimized ad copy variants per click (1 credit)
- Static Ad Generator — Professional ad images via Flux AI (3 credits)
- UGC Video Generator — AI avatars deliver your script with realistic lip sync (40 credits)
- Campaign Manager — Launch ads directly to Meta, TikTok, and Google from one dashboard
- Whatnot Seller Suite — Inventory tracking, show planning, payout analytics, and competitor intelligence
Architecture
Section titled “Architecture”CutX runs as a 3-worker system on Cloudflare:
┌──────────────────────────────────────────────────────┐│ Cloudflare Edge ││ ││ ┌──────────────┐ ┌──────────────┐ ┌─────────────┐ ││ │ Main App │ │ Pipeline │ │ Webhook │ ││ │ (Astro SSR) │──│ Worker │──│ Worker │ ││ │ Pages │ │ Queue │ │ Replicate │ ││ │ │ │ Consumer │ │ Stripe │ ││ └──────┬───────┘ └──────┬──────┘ └──────┬──────┘ ││ │ │ │ ││ ┌──────┴─────────────────┴─────────────────┴──────┐ ││ │ Cloudflare Services │ ││ │ Hyperdrive │ R2 │ KV │ Queues │ Workers AI │ ││ └──────────────────────┬──────────────────────────┘ │└──────────────────────────┼───────────────────────────┘ │ ┌────────┴────────┐ │ PostgreSQL 16 │ │ (Hyperdrive) │ └─────────────────┘Tech Stack
Section titled “Tech Stack”| Layer | Technology |
|---|---|
| Frontend | Astro 5 + React 19 + Tailwind CSS |
| Backend | Cloudflare Workers (edge) |
| Database | PostgreSQL 16 via Hyperdrive |
| Storage | Cloudflare R2 |
| Cache | Cloudflare KV |
| Queue | Cloudflare Queues |
| AI (Copy) | Workers AI — Llama 3.1 70B |
| AI (Images) | Replicate — Flux 1.1 Pro |
| AI (TTS) | Replicate — Minimax Speech-02-Turbo |
| AI (Lip Sync) | Replicate — OmniHuman |
| Payments | Stripe |
| Auth | JWT (jose) + Magic Link + GitHub OAuth |
| Validation | Zod |
Next Steps
Section titled “Next Steps”- Quickstart — Get CutX running locally
- API Reference — Explore the API
- Credit System — Understand pricing
- Architecture — Deep dive into the system