
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
@ai-sdk/xai
Advanced tools
The **[xAI Grok provider](https://sdk.vercel.ai/providers/ai-sdk-providers/xai)** for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the xAI chat and completion APIs.
The xAI Grok provider for the AI SDK contains language model support for the xAI chat and completion APIs.
The xAI Grok provider is available in the @ai-sdk/xai module. You can install it with
npm i @ai-sdk/xai
You can import the default provider instance xai from @ai-sdk/xai:
import { xai } from '@ai-sdk/xai';
import { xai } from '@ai-sdk/xai';
import { generateText } from 'ai';
const { text } = await generateText({
model: xai('grok-2-1212'),
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});
Please check out the xAI Grok provider documentation for more information.
FAQs
The **[xAI Grok provider](https://ai-sdk.dev/providers/ai-sdk-providers/xai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the xAI chat and completion APIs.
The npm package @ai-sdk/xai receives a total of 779,029 weekly downloads. As such, @ai-sdk/xai popularity was classified as popular.
We found that @ai-sdk/xai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.