Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ai-sdk/xai

vercel362.5kApache-2.01.2.16TypeScript support: included

The xAI Grok provider for the AI SDK contains language model support for the xAI chat and completion APIs.

ai

readme

packages/ai/README.md

changelog

@ai-sdk/xai

1.2.16

Patch Changes

1.2.15

Patch Changes

1.2.14

Patch Changes

1.2.13

Patch Changes

1.2.12

Patch Changes

1.2.11

Patch Changes

1.2.10

Patch Changes

  • 45de936: feat (providers/xai): add grok-3 models

1.2.9

Patch Changes

1.2.8

Patch Changes

1.2.7

Patch Changes

1.2.6

Patch Changes

1.2.5

Patch Changes

1.2.4

Patch Changes

1.2.3

Patch Changes

  • a6b55cc: feat (providers/openai-compatible): add openai-compatible image model and use as xai image model base
  • Updated dependencies [a6b55cc]

1.2.2

Patch Changes

1.2.1

Patch Changes

  • 82b5620: fix (providers/xai): handle raw b64 image response data

1.2.0

Minor Changes

  • 5bc638d: AI SDK 4.2

Patch Changes

1.1.18

Patch Changes

  • 6f0e741: feat (providers/xai): add xai image model support

1.1.17

Patch Changes

1.1.16

Patch Changes

1.1.15

Patch Changes

1.1.14

Patch Changes

1.1.13

Patch Changes

1.1.12

Patch Changes

1.1.11

Patch Changes

1.1.10

Patch Changes

1.1.9

Patch Changes

1.1.8

Patch Changes

1.1.7

Patch Changes

1.1.6

Patch Changes

1.1.5

Patch Changes

1.1.4

Patch Changes

1.1.3

Patch Changes

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

  • 62ba5ad: release: AI SDK 4.1

Patch Changes

1.0.19

Patch Changes

1.0.18

Patch Changes

1.0.17

Patch Changes

1.0.16

Patch Changes

1.0.15

Patch Changes

1.0.14

Patch Changes

1.0.13

Patch Changes

1.0.12

Patch Changes

1.0.11

Patch Changes

1.0.10

Patch Changes

1.0.9

Patch Changes

1.0.8

Patch Changes

  • 50821de: feat (docs): Use new grok-2 model in xai example code.

1.0.7

Patch Changes

  • 4e9032c: feat (provider/xai): Add grok-2 models, use openai-compatible base impl.

1.0.6

Patch Changes

1.0.5

Patch Changes

1.0.4

Patch Changes

  • b1f31da: chore (providers): Remove obsolete 'internal' from several packages.

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

  • 870c09e: feat (provider/xai): add groq-vision-beta support

1.0.0

Patch Changes

  • 75d0065: feat (providers/xai): Initial xAI provider.
  • Updated dependencies [b469a7e]
  • Updated dependencies [dce4158]
  • Updated dependencies [c0ddc24]
  • Updated dependencies [b1da952]
  • Updated dependencies [dce4158]
  • Updated dependencies [8426f55]
  • Updated dependencies [db46ce5]

1.0.0-canary.1

Patch Changes

  • 75d0065: feat (providers/xai): Initial xAI provider.