Use the official llm-chat-app-template to create a private, blazing-fast AI chatbot in minutes — completely free with Cloudflare's generous limits.
Or clone the repo directly:
Open http://localhost:8787 to test your chatbot locally.
After deployment, you'll get a URL like https://my-ai-chatbot.yourusername.workers.dev
Edit wrangler.toml or the worker code to change the model (e.g., @cf/meta/llama-3.1-8b-instruct).
After deployment, you can embed your chatbot on any website using an iframe.
Place this code anywhere in your HTML page. Adjust width/height as needed.
@cf/meta/llama-3.1-8b-instruct for great performance