Get started
Introduction
The Picsart API Platform gives you 169+ generative AI models — image, video, audio, and text — through one consistent surface. Call them from the type-safe @picsart/ai-sdk, the REST API, the gen-ai CLI, or an MCP-connected agent.
70
Image
74
Video
20
Audio
5
Text
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);Interfaces
Reach the same models through whichever surface fits how you work. Each has its own page.
SDK →
Type-safe TypeScript. ai.generate() — the recommended path.
REST API →
Call the workflows over HTTP from any language.
CLI →
The gen-ai command for scripting and automation.
MCP →
Generate from Claude Code, Cursor, and other agents.
Guides
Task-focused walkthroughs with SDK and CLI examples for each modality.
Image generation →
Text-to-image, editing, and reference images.
Video generation →
Text-to-video and image-to-video.
Audio generation →
Speech, music, and sound effects.
Text & analysis →
LLM text generation and vision.