Wednesday, April 10th 2024
Gemini AI Chatbot with Generative UI support
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F1nvXeRtBeI8sLr1TwJn26j%2F78310e410e7f0c209b306c6bc50b4034%2FGemini.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F21smJSTcbR2PZ8UoPbHT7z%2Ff920e47904fee1626cae010709ea6bff%2FGemini_Dark.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
Posted by
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F1nvXeRtBeI8sLr1TwJn26j%2F78310e410e7f0c209b306c6bc50b4034%2FGemini.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F21smJSTcbR2PZ8UoPbHT7z%2Ff920e47904fee1626cae010709ea6bff%2FGemini_Dark.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
The Gemini AI Chatbot template is a streaming-enabled, Generative UI starter application. It's built with the Vercel AI SDK, Next.js App Router, and React Server Components & Server Actions.
This template features persistent chat history, rate limiting to prevent abuse, session storage, user authentication, and more.
The Gemini model used is models/gemini-1.0-pro-001
, however, the Vercel AI SDK enables exploring an LLM provider (like OpenAI, Anthropic, Cohere, Hugging Face, or using LangChain) with just a few lines of code.