Add an AI chat the easy way, your API key ships to every visitor.
A tutorial in four steps, from the chat live on cv.tonytang.dev and tonytang.dev. The Worker's own comment lists its defences: "Only the sites' own origins may call it", "A Turnstile challenge is required to get a session (no scripted use)", "Sessions last 30 min and are bound to the site and the client IP", per-IP and global daily caps, and "Model, system prompt and answer length are fixed here". Its limits: 6 questions a minute, 40 a day, and "1000 questions a day is at most ~$0.45 a day."
Source: tonytangdev/ask, commit fd0a8da, Nov 1, 2026 (Tony Tang), live at https://cv.tonytang.dev and https://tonytang.dev
The browser and DevTools of the easy way, the Freeloader, the visitors, the gate, the pass and its seal are dramatizations; every quote and number on screen is from the code and the live sites.
Where does your API key live right now?




