Lightweight LLM for fast, high-volume chat and text tasks, with image input.
Billed at this model’s published rate.

Same vendor, same API call — the differences are below.
| Model | Use case | Price | Resolution | Duration | Added |
|---|---|---|---|---|---|
| Claude Fable 5.2 | Image → Text | from $40.00 / 1M output text tok | — | — | Nov 2026 |
| Claude Opus 5.5 | Image → Text | from $20.00 / 1M output text tok | — | — | Nov 2026 |
| Claude Haiku 5.5 | Image → Text | from $0.50 / 1M output text tok | — | — | Oct 2026 |
| Claude Sonnet 4.5 | Image → Text | from $15.00 / 1M output text tok | — | — | Sep 2026 |
| Claude Sonnet 5 | Image → Text | from $10.00 / 1M output text tok | — | — | Sep 2026 |
| Claude Fable 5 | Image → Text | from $50.00 / 1M output text tok | — | — | Sep 2026 |
| Claude Fable 5.1 | Image → Text | from $50.00 / 1M output text tok | — | — | Sep 2026 |
| Claude Opus 5 | Image → Text | from $25.00 / 1M output text tok | — | — | Sep 2026 |
TypeScript targets Node 20+ and ships with types; Python needs 3.10+ and is async. Over REST there is nothing to install: call https://api.picsart.com from any HTTP client.
npm install @picsart/ai-sdkpip install picsart-ai-sdkSend your Picsart API key as a bearer token. The SDK does it for you once the client is created.
import { createClient } from '@picsart/ai-sdk';
const ai = createClient({
apiKey: process.env.PICSART_API_KEY, // sent as: Authorization: Bearer <key>
apiUrl: 'https://api.picsart.com',
});import os
from picsart_ai_sdk import create_client
ai = create_client(
api_key=os.environ["PICSART_API_KEY"], # sent as: Authorization: Bearer <key>
api_url="https://api.picsart.com",
)Authorization: Bearer <PICSART_API_KEY>Call the model by its id. Over REST, one endpoint serves every model: POST /workflows/v1/models/execute with the model id and its input in the body. The outer params is the envelope every workflow takes; the inner one is this model's input, with the same names generateText() / generate_text() takes.
import { createClient } from '@picsart/ai-sdk';
const ai = createClient({
apiKey: process.env.PICSART_API_KEY,
apiUrl: 'https://api.picsart.com',
});
const { text } = await ai.generateText('claude-haiku-4-5', {
prompt: "A serene mountain lake at golden hour, ultra detailed"
});
console.log(text);import asyncio
import os
from picsart_ai_sdk import create_client
async def main() -> None:
async with create_client(
api_key=os.environ["PICSART_API_KEY"],
api_url="https://api.picsart.com",
) as ai:
res = await ai.generate_text("claude-haiku-4-5", {
"prompt": "A serene mountain lake at golden hour, ultra detailed",
})
print(res.text)
asyncio.run(main())curl -X POST 'https://api.picsart.com/workflows/v1/models/execute' \
-H 'Authorization: Bearer $PICSART_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"params": {
"model": "claude-haiku-4-5",
"params": {
"prompt": "A serene mountain lake at golden hour, ultra detailed"
}
}
}'2 parameters, the same for the SDK and for the inner params over REST. Required ones must be supplied; the rest fall back to their defaults.
| Parameter | Type | Required | Default | Details |
|---|---|---|---|---|
promptThe message or question for the model, in plain language. With input images, what to say about them. | text | yes | — | — |
imageUrlsImages for the model to look at, as URLs. | file (image[]) | no | — | — |
generateText() resolves to the generated text. Over REST the output is at response.result, inside the gateway's status envelope with the task id, its status and the amount charged.
{
"text": "…generated text…",
"model": "claude-haiku-4-5"
}{
"status": "success",
"response": {
"id": "task_abc123",
"status": "COMPLETED",
"result": {
"text": "…generated text…",
"model": "claude-haiku-4-5"
}
}
}Text models are also served through an LLM proxy that speaks each vendor's own API. Requests and responses — streaming included — pass through exactly as the vendor defines them, so code written against the vendor's API or official SDK works here by changing only the base URL and the API key.
The same model is also reachable through one OpenAI-compatible Chat Completions endpoint that serves Claude, GPT and Gemini alike — switch vendors by changing model. When you'd rather use Picsart's own parameter names, use the unified API.
Authenticate with your Picsart API key, as Authorization: Bearer <key> (see Authentication). Any vendor credentials you send are ignored.
All on https://api.picsart.com, with claude-haiku-4-5 as the model id.
| API | Endpoint | Request body |
|---|---|---|
| Chat Completions (unified) | POST /llm-proxy/openai/v1/chat/completions | OpenAI reference |
| Messages (native) | POST /llm-proxy/claude/v1/messages | Vendor reference |
One endpoint and one client for every text model, with the OpenAI SDK (pip install openai / npm install openai). The vendor is picked from model, so switching to another model means changing only that.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["PICSART_API_KEY"],
base_url="https://api.picsart.com/llm-proxy/openai/v1",
)
completion = client.chat.completions.create(
model="claude-haiku-4-5",
messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(completion.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.PICSART_API_KEY,
baseURL: 'https://api.picsart.com/llm-proxy/openai/v1',
});
const completion = await client.chat.completions.create({
model: 'claude-haiku-4-5',
messages: [{ role: 'user', content: 'Write a haiku about the ocean.' }],
});
console.log(completion.choices[0].message.content);curl -X POST 'https://api.picsart.com/llm-proxy/openai/v1/chat/completions' \
-H "Authorization: Bearer $PICSART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-4-5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'The vendor's own Messages API with the Anthropic SDK (pip install anthropic / npm install @anthropic-ai/sdk) — the request bodies are the vendor's own, unchanged.
import os
import anthropic
client = anthropic.Anthropic(
auth_token=os.environ["PICSART_API_KEY"],
base_url="https://api.picsart.com/llm-proxy/claude",
)
message = client.messages.create(
model="claude-haiku-4-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(message.content[0].text)import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
authToken: process.env.PICSART_API_KEY,
baseURL: 'https://api.picsart.com/llm-proxy/claude',
});
const message = await client.messages.create({
model: 'claude-haiku-4-5',
max_tokens: 1024,
messages: [{ role: 'user', content: 'Write a haiku about the ocean.' }],
});
for (const block of message.content) {
if (block.type === 'text') console.log(block.text);
}curl -X POST 'https://api.picsart.com/llm-proxy/claude/v1/messages' \
-H "Authorization: Bearer $PICSART_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-4-5",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'The Picsart MCP server puts Claude Haiku 4.5 inside your AI assistant: Claude, ChatGPT, Cursor, GitHub Copilot and any other client that speaks the Model Context Protocol. You ask in plain language; the assistant reads the model's parameters, quotes the cost and returns the result.
There is no API key to manage. You sign in to Picsart once, in the browser, and runs are billed to the same credit balance as the API.
Add the hosted server to your client, then finish the Picsart sign-in it opens.
https://api.picsart.com/gen-ai/mcpclaude mcp add --transport http picsart-gen-ai https://api.picsart.com/gen-ai/mcpcodex mcp add picsart-gen-ai --url https://api.picsart.com/gen-ai/mcp
codex mcp login picsart-gen-ai{
"mcpServers": {
"picsart-gen-ai": {
"url": "https://api.picsart.com/gen-ai/mcp"
}
}
}Claude and ChatGPT on the web, GitHub Copilot and other clients connect from their own settings. The setup page has the steps for each.
Name the model, or give its id claude-haiku-4-5, and the assistant uses it instead of picking one itself. Ask it to quote the cost first.
One run is a short chain of tool calls. Only the generate step spends credits.
picsart_model_catalogFinds the model in the catalog: what it makes and what it takes.picsart_model_paramsLists the parameters it accepts, with their allowed values.picsart_preflightChecks the request and quotes its cost. Spends nothing.picsart_generateRuns it. This is the step that spends credits.picsart_job_statusFollows a long run, such as a video, until its result is ready.The parameters are the same ones the API tab lists, and the rates are on the Pricing tab. More on agents in the MCP guide.
The gen-ai command line runs Claude Haiku 4.5 from your terminal: one command for a result, a quote before you spend, and JSON output for scripts. It signs in through the browser, so there is no API key to manage, and runs are billed to the same credit balance as the API.
curl -fsSL https://picsart.com/gen-ai-cli/install.sh | bashcurl -fsSL https://picsart.com/gen-ai-cli/install.sh | bashirm https://picsart.com/gen-ai-cli/install.ps1 | iexnpm install -g @picsart/gen-aiThe install scripts ship a self-contained binary on macOS and Linux; the npm package needs Node.js 22 or later. Check it with gen-ai --version. Details are on the install page.
gen-ai login # opens the browser once, stores a token locally
gen-ai credits # remaining balancePass the model with -m and the prompt with -p. The CLI prints the result's URL and downloads the file to ./output; add -q to print only the URL.
gen-ai generate -m claude-haiku-4-5 \
-p "Explain webhooks to a new developer in three sentences"Read this model's parameters and get a quote before a run. The parameters are the ones the API tab lists.
gen-ai models info claude-haiku-4-5 # its parameters and limits
gen-ai pricing claude-haiku-4-5 # quote a run before spending credits--no-input never stops to ask, and --json prints one JSON object, ready for jq or a pipeline.
gen-ai generate -m claude-haiku-4-5 \
-p "Explain webhooks to a new developer in three sentences" \
--no-input --json | jq -r '.url'Every flag is in the CLI guide.
What this model costs, in USD. Every row is an exact rate — the columns are the settings that change it.
| Token type | Rate |
|---|---|
| Cached input | $0.10 / 1M tokens |
| Input | $1.00 / 1M tokens |
| Cache write 5m | $1.25 / 1M tokens |
| Cache write 1h | $2.00 / 1M tokens |
| Output text | $5.00 / 1M tokens |