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
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
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
| Endpoint | Method | Notes |
|---|---|---|
/v1/chat/completions | POST | OpenAI-compatible — chat, tool use, vision, streaming |
/v1/messages | POST | Anthropic format — Claude Code & Anthropic SDK |
/v1/models | GET | List models enabled on your key |