
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.
Wix AI SDK for the Vercel AI SDK. Provides access to AI models through Wix infrastructure with automatic authentication.
⚠️ Note: This package depends on Vercel AI SDK v6 (currently in beta).
| Provider | Status | Capabilities |
|---|---|---|
| OpenAI | ✅ Available | Text generation, chat, embeddings |
| Runware | ✅ Available | Image generation |
npm install @wix/ai
Requirements:
ai@>=6.0.27(Vercel AI SDK v6)zod@^4.1.8
import { generateText } from 'ai';
import { openai } from '@wix/ai';
const { text } = await generateText({
model: openai('gpt-4o'),
prompt: 'What is the capital of France?',
});
For apps running outside Wix, pass a WixClient configured with AppStrategy or ApiKeyStrategy:
import { generateText } from 'ai';
import { createOpenAI } from '@wix/ai';
import { createClient, AppStrategy } from '@wix/sdk';
const wixClient = createClient({
auth: AppStrategy({
appId: 'YOUR_APP_ID',
appSecret: 'YOUR_APP_SECRET',
instanceId: 'YOUR_INSTANCE_ID',
}),
});
const openai = createOpenAI({ client: wixClient });
const { text } = await generateText({
model: openai('gpt-4o'),
prompt: 'What is the capital of France?',
});
Technical requirements:
ai package v6.0.0+import { generateText } from 'ai';
import { openai } from '@wix/ai';
const { text } = await generateText({
model: openai('gpt-4o'),
prompt: 'Explain quantum computing.',
});
Or explicitly:
const model = openai.responses('gpt-4o');
import { generateText } from 'ai';
import { openai } from '@wix/ai';
const { text } = await generateText({
model: openai.chat('gpt-4o'),
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'What is TypeScript?' },
],
});
import { embed, cosineSimilarity } from 'ai';
import { openai } from '@wix/ai';
const { embedding } = await embed({
model: openai.embeddingModel('text-embedding-3-small'),
value: 'Hello world',
});
const similarity = cosineSimilarity(embedding1, embedding2);
Batch embeddings:
import { embedMany } from 'ai';
import { openai } from '@wix/ai';
const { embeddings } = await embedMany({
model: openai.embeddingModel('text-embedding-3-small'),
values: ['Hello', 'World', 'Foo', 'Bar'],
});
| Method | Description |
|---|---|
openai(modelId) | Responses API (default) |
openai.responses(modelId) | Responses API (explicit) |
openai.chat(modelId) | Chat Completions API |
openai.embeddingModel(modelId) | Text embeddings |
import { generateImage } from 'ai';
import { runware } from '@wix/ai';
const result = await generateImage({
model: runware.imageModel('runware:101@1'),
prompt: 'A serene mountain landscape at sunset',
n: 4, // Generate 4 images in one call
});
import { generateImage } from 'ai';
import { runware } from '@wix/ai';
const result = await generateImage({
model: runware.image('FLUX.1'),
prompt: 'A futuristic cityscape at night with neon lights',
});
For apps running outside Wix, use createRunware with a WixClient:
import { generateImage } from 'ai';
import { createRunware } from '@wix/ai';
import { createClient, ApiKeyStrategy } from '@wix/sdk';
const wixClient = createClient({
auth: ApiKeyStrategy({
siteId: 'YOUR_SITE_ID',
apiKey: 'YOUR_API_KEY',
}),
});
const runware = createRunware({ client: wixClient });
const result = await generateImage({
model: runware.imageModel('runware:101@1'),
prompt: 'A beautiful sunset over mountains',
n: 2,
});
| Method | Description |
|---|---|
runware.image(modelId) | Image generation (shortcut method) |
runware.imageModel(modelId) | Image generation model |
MIT
FAQs
Wix AI SDK
The npm package @wix/ai receives a total of 165 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.