SDKs & Libraries

cURL

Raw HTTP examples — no SDK, no dependency, either protocol.

OpenAI format

shell
# Before: api.openai.com/v1
# After: change the host only — everything else stays

curl https://api.prismma.ai/v1/chat/completions \
  -H "Authorization: Bearer $PRISMMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-opus-4-7","messages":[{"role":"user","content":"Hello"}]}'

Anthropic format

shell
curl https://api.prismma.ai/v1/messages \
  -H "x-api-key: $PRISMMA_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-7",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello, Prismma"}]
  }'

List models

shell
curl https://api.prismma.ai/v1/models \
  -H "Authorization: Bearer $PRISMMA_API_KEY"