Documentation
One API for 255+ generative models
Image, video, audio and text through one consistent surface. Call any model from the TypeScript or Python SDK, the REST API, the gen-ai CLI, or an MCP-connected agent.
- Image
- 78
- Video
- 102
- Audio
- 32
- Text
- 43
Start here#
Hello, world#
Every model runs through the same generate() call — only the model id and its parameters change.
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.