🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@vercel/ai-sdk-gateway

Package Overview
Dependencies
Maintainers
8
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/ai-sdk-gateway

The Gateway provider for the [AI SDK](https://sdk.vercel.ai/docs) allows the use of a wide variety of AI models and providers.

0.1.8
latest
Source
npm
Version published
Weekly downloads
26K
14447.8%
Maintainers
8
Weekly downloads
 
Created
Source

AI SDK - Gateway Provider

The Gateway provider for the AI SDK allows the use of a wide variety of AI models and providers.

Setup

The Gateway provider is available in the @vercel/ai-sdk-gateway module. You can install it with

npm i @vercel/ai-sdk-gateway

Provider Instance

You can import the default provider instance gateway from @vercel/ai-sdk-gateway:

import { gateway } from '@vercel/ai-sdk-gateway';

Example

import { gateway } from '@vercel/ai-sdk-gateway';
import { generateText } from 'ai';

const { text } = await generateText({
  model: gateway('xai/grok-3-beta'),
  prompt: 'Tell me about the history of the San Francisco Mission-style burrito.',
});

Documentation

Please check out the AI SDK documentation for more information.

Keywords

ai

FAQs

Package last updated on 29 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts