AI Gateway authenticates the request and routes it to an available provider.Install the AI SDK (pnpm add ai dotenv), create an API key from the API Keys page, and set it as AI_GATEWAY_API_KEY in your environment.