Overview
The Vercel AI SDK is a simple way to use AI models from many different providers, including OpenAI, Microsoft Azure, Google Generative AI, Anthropic, Amazon Bedrock, Groq, Perplexity and more. It provides a consistent interface to interact with the different AI models, so you can easily switch between them without needing to change your code.Generate text using OpenAI
This task shows how to use the Vercel AI SDK to generate text from a prompt with OpenAI.Task code
trigger/vercel-ai-sdk-openai.ts