Getting Started

Quickstart

Get a key, point your tool at api.prismma.ai, send a request.

Prerequisites

  • An account at prismma.ai/console.
  • An API key — create one under Console → API keys. Keys look like sk-eu-....

First request

Prismma exposes both the OpenAI-compatible path (/v1/chat/completions) and the native Anthropic path (/v1/messages). Use whichever your SDK or tool speaks — the relay handles both.

OpenAI-compatible

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

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"}]
  }'

Endpoint summary

EndpointMethodNotes
/v1/chat/completionsPOSTOpenAI-compatible — chat, tool use, vision, streaming
/v1/messagesPOSTAnthropic format — Claude Code & Anthropic SDK
/v1/modelsGETList models enabled on your key