AI SDK Integration
Use the thirdweb blockchain models with the Vercel AI SDK to build AI agents and UIs that can interact with your contracts and wallets.
Client Code Example
Use the Vercel AI React SDK to build a chat UI that can interact with the server code.
Code
Preview
Next.js Server Code Example
The server code is responsible for handling the chat requests and streaming the responses to the client.
Server Code