Documentation
One API for 262+ 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
- 80
- Video
- 103
- Audio
- 33
- Text
- 46
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.green-salad-4efd.toolsminati.workers.dev',
});
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.
Concepts#
API Platform support#
Visit the API Platform Help Center for account, billing, file, and troubleshooting articles. Use these developer docs for request parameters and code examples.
For an existing Creative APIs integration, use its endpoint-specific guide. Its authentication headers and request fields can differ from the workflow API documented here. A change of documentation address does not migrate your code.