
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
A Wix AI SDK that provides seamless integration with AI providers through the Wix AI Gateway. This package is designed to work with the Vercel AI SDK and provides type-safe access to OpenAI models via Wix's infrastructure.
npm install @wix/ai ai
import { generateText } from 'ai';
import { openai } from '@wix/ai';
const result = await generateText({
model: openai('gpt-4o'),
prompt: 'What is the capital of France?',
});
console.log(result.text);
openai(modelId)Default OpenAI provider instance. Use this for quick access to OpenAI models.
Parameters:
modelId - The model to use (e.g., 'gpt-4o', 'gpt-4o-mini', 'gpt-4')Returns: LanguageModelV1 - A model instance compatible with Vercel AI SDK
import { generateText } from 'ai';
import { openai } from '@wix/ai';
const result = await generateText({
model: openai('gpt-4o'),
prompt: 'Hello, world!',
});
createOpenAI(config?)Creates a custom OpenAI provider with optional configuration.
Parameters:
config (optional) - Configuration object
apiKey (optional) - Custom API key for authenticationReturns: OpenAIProvider - A provider instance for creating models
import { generateText } from 'ai';
import { createOpenAI } from '@wix/ai';
const customOpenAI = createOpenAI({
apiKey: process.env.WIX_API_KEY,
});
const result = await generateText({
model: customOpenAI('gpt-4o-mini'),
prompt: 'Explain quantum computing in simple terms.',
});
import { generateText } from 'ai';
import { openai } from '@wix/ai';
const result = await generateText({
model: openai('gpt-4o'),
prompt: 'Write a haiku about programming.',
});
console.log(result.text);
console.log('Tokens used:', result.usage);
import { generateText } from 'ai';
import { openai } from '@wix/ai';
const result = await generateText({
model: openai('gpt-4o'),
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'What is TypeScript?' },
],
});
console.log(result.text);
The package exports comprehensive TypeScript types:
import type {
OpenAIModelId,
OpenAIProvider,
WixAIConfig,
} from '@wix/ai';
const config: WixAIConfig = {
apiKey: 'your-api-key',
};
const modelId: OpenAIModelId = 'gpt-4o';
This package requires:
ai package (Vercel AI SDK) as a peer dependencyMIT
FAQs
Wix AI SDK
The npm package @wix/ai receives a total of 162 weekly downloads. As such, @wix/ai popularity was classified as not popular.
We found that @wix/ai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 22 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.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.