Skip to content

ChangoMan/ai-sdk-template

Repository files navigation

AI SDK Template

Everything you need to build your next AI powered application. Built with:

  • Vercel AI SDK
  • Next.js 16
  • Tailwind CSS
  • shadcn/ui

Getting Started

1. Clone the repository

git clone https://github.com/ChangoMan/ai-sdk-template
cd ai-sdk-template

2. Install dependencies

npm install

3. Set up environment variables

cp .env.example .env.local

Then open .env.local and fill in your API keys:

  • GOOGLE_GENERATIVE_AI_API_KEY - Get from Google Gemini
  • OPENAI_API_KEY - (Optional) Get from OpenAI

By default, this template will use the Google Generative AI Provider since it has a generous free tier. However, if you want to try out the image generation feature, you may need to add a billing plan.

4. Run the development server

npm run dev

Open http://localhost:3000 in your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Learn More

To learn more about the Vercel AI SDK, check out the following resources:

You can check out the AI SDK GitHub repository - your feedback and contributions are welcome!

About

Everything you need to build your next AI powered application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published