New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@ai-sdk/gateway

Package Overview
Dependencies
Maintainers
3
Versions
812
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/gateway

Source
npmnpm
Version
4.0.126
Version published
Weekly downloads
40M
232.37%
Maintainers
3
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

npm i ai @ai-sdk/gateway

Skill for Coding Agents

If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:

npx skills add vercel/ai

Usage

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

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

See the Gateway Provider documentation for more information.

Keywords

ai

FAQs

Package last updated on 24 Oct 2026

Related posts