# @ai-sdk/mistral

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

## Install

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

## 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.50 |
| Published | 2026-09-23 |
| First published | 2024-04-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 2 |
| Unpacked size | 264.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 26721 |
| Maintainers | vercel-release-bot, matheuss, matt.straka |
| Keywords | ai |

## Links

- npm: https://www.npmjs.com/package/@ai-sdk/mistral
- 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/mistral

## Dependencies (2)

- [@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.47

## 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.50 (latest) — 2026-09-23
- 3.0.67 (ai-v6) — 2026-09-23
- 2.0.49 (ai-v5) — 2026-09-23
- 0.0.0-f1630544-20260811180950 (snapshot) — 2026-08-11
- 4.0.0-beta.56 (beta) — 2026-06-23
- 4.0.0-canary.54 (canary) — 2026-06-12
- 2.0.0-alpha.15 (alpha) — 2025-06-18
- 3.0.66 — 2026-09-23
- 4.0.49 — 2026-09-23
- 3.0.65 — 2026-09-21
- 4.0.48 — 2026-09-18
- 4.0.47 — 2026-09-18
- 4.0.46 — 2026-09-16
- 4.0.45 — 2026-09-16
- 4.0.44 — 2026-09-15
- … 420 more at https://npm.io/package/@ai-sdk/mistral/versions

## README

# AI SDK - Mistral Provider

The **[Mistral provider](https://ai-sdk.dev/providers/ai-sdk-providers/mistral)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model, embedding model, and speech model support for Mistral APIs.

> **Deploying to Vercel?** With Vercel's AI Gateway you can access Mistral (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 Mistral provider is available in the `@ai-sdk/mistral` module. You can install it with

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

## 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 `mistral` from `@ai-sdk/mistral`:

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

## Example

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

const { text } = await generateText({
  model: mistral('mistral-large-latest'),
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});
```

## Documentation

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

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