Socket
Book a DemoInstallSign in
Socket

@vercel/ai-sdk-gateway

Package Overview
Dependencies
Maintainers
8
Versions
25
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.10
latest
Source
npmnpm
Version published
Weekly downloads
553
-27.81%
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 03 Jun 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.