Skip to content
masterclass Buddy

AI Tools · Tool

Weaviate

AI Gateway connects the AI SDK to models from many providers through one interface. Use a provider/model string to select a model and keep the same application code when switching providers.

Last updated

Syntax

generateText({ model: 'provider/model', prompt: 'text' })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • AI SDK
  • generateText
  • Vercel AI Gateway
  • OpenAI
  • Anthropic
  • Google
  • Meta
  • xAI

Source: AI Gateway | AI SDK. Checked 2026-11-03.