ai 7.0.2
AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
ai@7.0.2 was published on 2026-06-25. Its manifest declares 3 runtime dependencies and 1 peer requirement. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=22.
All ai versions · Permanent reference to 7.0.2 · Latest release
Package specifications
| Version | 7.0.2 |
|---|---|
| License declaration | Apache-2.0 |
| Published | 2026-06-25T21:04:06.914Z |
| Node.js requirement | >=22 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 3 |
| Peer requirement count | 1 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 6115.85 KiB |
| Published file count | 601 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | ./dist/index.js |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 8 |
| Repository stars | 27503 |
| Repository forks | 5433 |
Install ai 7.0.2
npm install ai@7.0.2 pnpm add ai@7.0.2 yarn add ai@7.0.2
Runtime dependencies
- @ai-sdk/gateway 4.0.2
- @ai-sdk/provider 4.0.0
- @ai-sdk/provider-utils 5.0.0
Peer requirements
- zod ^3.25.76 || ^4.1.8
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @ai-sdk/gateway@4.0.2 — direct
- @ai-sdk/provider@4.0.0 — direct
- @ai-sdk/provider-utils@5.0.0 — direct
- @standard-schema/spec@1.1.0 — indirect
- @vercel/oidc@3.2.0 — indirect
- @workflow/serde@4.1.0 — indirect
- eventsource-parser@3.1.1 — indirect
- json-schema@0.4.0 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Evidence and freshness
- https://registry.npmjs.org/ai/7.0.2 — retrieved 2026-10-31T16:30:11.947Z
- https://api.deps.dev/v3/projects/github.com%2Fvercel%2Fai — retrieved 2026-10-31T12:37:35.424Z
- https://api.deps.dev/v3/systems/npm/packages/ai/versions/7.0.2 — retrieved 2026-10-31T16:30:12.408Z
- https://api.deps.dev/v3/systems/npm/packages/ai/versions/7.0.2:dependencies — retrieved 2026-10-31T16:30:12.423Z