
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
vercel-ai-aimlapi
Advanced tools
The **[AIMLAPI provider](https://ai-sdk.dev/providers/community-providers/aimlapi)** for the [AI SDK](https://ai-sdk.dev/docs) enables access to over 300+ models via the [AIMLAPI](https://aimlapi.com/?utm_source=vercel-ai-aimlapi&utm_medium=github&utm_cam
The AIMLAPI provider for the AI SDK enables access to over 300+ models via the AIMLAPI platform.
Install the official package:
npm i vercel-ai-aimlapi
# or
yarn add vercel-ai-aimlapi
# or
pnpm add vercel-ai-aimlapi
Import the default provider instance:
import { aimlapi } from 'vercel-ai-aimlapi';
import { aimlapi } from 'vercel-ai-aimlapi';
import { generateText } from 'ai';
const { text } = await generateText({
model: aimlapi('gpt-3.5-turbo'),
prompt: 'Hello from AIMLAPI!',
});
console.log(text);
import 'dotenv/config';
import { generateText, LanguageModel } from 'ai';
import { aimlapi } from 'vercel-ai-aimlapi';
async function main() {
const { text } = await generateText({
model: aimlapi('gpt-4o') as LanguageModel,
system: 'You are a friendly assistant!',
prompt: 'Why is the sky blue?',
});
console.log(text);
}
main();
import 'dotenv/config';
import { experimental_generateImage } from 'ai';
import { aimlapi } from 'vercel-ai-aimlapi';
import * as fs from 'fs';
async function main() {
const model = aimlapi.imageModel?.('flux-realism');
if (!model) throw new Error('Image model not available');
const { image } = await experimental_generateImage({
model,
prompt: 'pixelated image of a cute baby sea otter, 8-bit style, vibrant colors',
});
const jsonText = new TextDecoder().decode(image.uint8Array);
const json = JSON.parse(jsonText);
const url = json.data?.[0]?.url;
if (!url) {
console.error('❌ URL not found in image response');
return;
}
console.log('✅ Image URL:', url);
fs.writeFile('imageUrlFile.txt', url, (err) => {
if (err) {
console.error('Error writing to file:', err);
return;
}
console.log('File written successfully.');
});
}
main().catch(console.error);
FAQs
The **[AIMLAPI provider](https://ai-sdk.dev/providers/community-providers/aimlapi)** for the [AI SDK](https://ai-sdk.dev/docs) enables access to over 300+ models via the [AIMLAPI](https://aimlapi.com/?utm_source=vercel-ai-aimlapi&utm_medium=github&utm_cam
We found that vercel-ai-aimlapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.