# @ai-sdk/azure

Latest version **4.0.82** (published 2026-09-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @ai-sdk/azure
pnpm add @ai-sdk/azure
yarn add @ai-sdk/azure
bun add @ai-sdk/azure
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.82 |
| Published | 2026-09-26 |
| First published | 2024-06-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 4 |
| Unpacked size | 165.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 26741 |
| Maintainers | vercel-release-bot, matheuss, matt.straka |
| Keywords | ai |

## Links

- npm: https://www.npmjs.com/package/@ai-sdk/azure
- Repository: https://github.com/vercel/ai
- Homepage: https://ai-sdk.dev/docs
- Issues: https://github.com/vercel/ai/issues
- npm.io page: https://npm.io/package/@ai-sdk/azure

## Dependencies (4)

- [@ai-sdk/openai](https://npm.io/package/@ai-sdk/openai.md) 4.0.78
- [@ai-sdk/deepseek](https://npm.io/package/@ai-sdk/deepseek.md) 3.0.54
- [@ai-sdk/provider](https://npm.io/package/@ai-sdk/provider.md) 4.0.18
- [@ai-sdk/provider-utils](https://npm.io/package/@ai-sdk/provider-utils.md) 5.0.49

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 4.0.82 (latest) — 2026-09-26
- 3.0.126 (ai-v6) — 2026-09-24
- 2.0.137 (ai-v5) — 2026-09-24
- 0.0.0-f1630544-20260811180950 (snapshot) — 2026-08-11
- 4.0.0-beta.79 (beta) — 2026-06-23
- 4.0.0-canary.75 (canary) — 2026-06-12
- 2.0.0-alpha.15 (alpha) — 2025-06-18
- 4.0.81 — 2026-09-25
- 4.0.79 — 2026-09-24
- 2.0.136 — 2026-09-23
- 3.0.125 — 2026-09-23
- 4.0.78 — 2026-09-23
- 3.0.124 — 2026-09-23
- 4.0.77 — 2026-09-23
- 2.0.135 — 2026-09-23
- … 716 more at https://npm.io/package/@ai-sdk/azure/versions

## README

# AI SDK - Azure OpenAI Provider

The **[Azure provider](https://ai-sdk.dev/providers/ai-sdk-providers/azure)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the Azure OpenAI API.

> **Deploying to Vercel?** With Vercel's AI Gateway you can access Azure OpenAI (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).

## Setup

The Azure provider is available in the `@ai-sdk/azure` module. You can install it with

```bash
npm i @ai-sdk/azure
```

## 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:

```shell
npx skills add vercel/ai
```

## Provider Instance

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

```ts
import { azure } from '@ai-sdk/azure';
```

## Example

```ts
import { azure } from '@ai-sdk/azure';
import { generateText } from 'ai';

const { text } = await generateText({
  model: azure('gpt-4o'), // your deployment name
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});
```

## Documentation

Please check out the **[Azure provider](https://ai-sdk.dev/providers/ai-sdk-providers/azure)** for more information.

---
_Source: https://npm.io/package/@ai-sdk/azure · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
