Documentation
One API for 234+ generative models
Image, video, audio and text through one consistent surface. Call any model from the type-safe @picsart/ai-sdk, the REST API, the gen-ai CLI, or an MCP-connected agent.
- Image
- 71
- Video
- 96
- Audio
- 32
- Text
- 35
Start here#
Hello, world#
Every model runs through the same generate() call — only the model id and its parameters change.
TypeScript
import { createClient } from '@picsart/ai-sdk';
const ai = createClient({
apiKey: process.env.PICSART_API_KEY,
apiUrl: 'https://api.picsart.com',
});
const result = await ai.generate('flux-2-pro', {
prompt: 'A serene mountain lake at golden hour',
});
console.log(result.url);Guides#
Interfaces#
Reach the same models through whichever surface fits how you work.