@ai-sdk/quiverai
v2.0.59
Published
Keywords
Readme
AI SDK - QuiverAI Provider
The QuiverAI provider for the AI SDK adds Arrow language-model and image-generation support for the QuiverAI API.
Deploying to Vercel? With Vercel's AI Gateway you can access many models from other providers — no additional packages, API keys, or extra cost. Get started with AI Gateway.
Setup
The QuiverAI provider is available in the @ai-sdk/quiverai module. You can install it with:
npm i @ai-sdk/quiveraiSkill for Coding Agents
If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:
npx skills add vercel/aiProvider Instance
You can import the default provider instance quiverai from @ai-sdk/quiverai:
import { quiverai } from '@ai-sdk/quiverai';Image Generation Example
import { quiverai } from '@ai-sdk/quiverai';
import { generateImage } from 'ai';
import fs from 'fs';
const { image } = await generateImage({
model: quiverai.image('arrow-2'),
prompt: 'A logo for the next AI Design startup',
});
const filename = `image-${Date.now()}.svg`;
fs.writeFileSync(filename, image.uint8Array);
console.log(`Image saved to ${filename}`);Text Generation Example
import { quiverai } from '@ai-sdk/quiverai';
import { generateText } from 'ai';
const { text } = await generateText({
model: quiverai('arrow-2'),
prompt: 'Design a simple compass icon and explain the visual choices.',
});
console.log(text);Documentation
Please check out the QuiverAI provider for more information.
