Skip to content

Latest commit

 

History

History
 
 

next-aws-bedrock

Vercel AI SDK, Next.js, and AWS Bedrock Example

This example shows how to use the Vercel AI SDK with Next.js and Amazon Bedrock to create a ChatGPT-like AI-powered streaming chat bot.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

To run the example locally you need to:

  1. Create an AWS Account.
  2. Setup Amazon Bedrock and apply for access to the models that you want to use.
  3. Setup an access key under "Security Credentials".
  4. Set the region of the models, your access key and your secret access key as shown in the example env file but in a new file called .env.local
  5. pnpm install to install the required dependencies.
  6. pnpm dev to launch the development server.
  7. Go to the browser and try out a chatbot example for one of the following models:

Learn More

To learn more about AWS Bedrock, Next.js, and the Vercel AI SDK take a look at the following resources: