Platform
Checking your session…
← All models

AnthropicClaude Haiku 5.5Image → Text

Next-generation Haiku — fast, lightweight Claude for high-volume text tasks.

Vision

Overview

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.

Endpoints

All on https://api.picsart.com, with claude-haiku-5-5 as the model id.

APIEndpointRequest body
Chat Completions (unified)POST /llm-proxy/openai/v1/chat/completionsOpenAI reference
Messages (native)POST /llm-proxy/claude/v1/messagesVendor reference

Chat Completions

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.

python
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-5-5",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)

print(completion.choices[0].message.content)

Messages (native)

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.

python
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-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)

print(message.content[0].text)