aiagent.club
中文
npm package

@ai-sdk/openai

Updated 2026-09-12 View source ↗

#6 of 203 by Downloads / week among npm packages

9.4M Downloads / week

The **[OpenAI provider](https://ai-sdk.dev/providers/ai-sdk-providers/openai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the OpenAI chat and completion APIs and embedding model support for the OpenAI embeddings API.

About

The OpenAI provider for the AI SDK contains language model support for the OpenAI chat and completion APIs and embedding model support for the OpenAI embeddings API.

Deploying to Vercel? With Vercel's AI Gateway you can access OpenAI (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. Get started with AI Gateway.

The OpenAI provider is available in the @ai-sdk/openai module. You can install it with

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

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

Please check out the OpenAI provider documentation for…

Excerpted from www.npmjs.com/package/@ai-sdk/openai

Latest metrics

Downloads / week 9.4M 2026-09-12