Quick reference vs the official Anthropic Messages API.
Generally compatible
| Area | Notes |
|---|---|
POST /v1/messages | model, messages, max_tokens, system |
| Streaming | Anthropic SSE event semantics |
| Tools | tools, tool_use, tool_result |
GET /v1/models | Anthropic-shaped data[] |
| Auth | x-api-key + anthropic-version |
Base URL
| Item | RouterBrain |
|---|---|
| Host | Your https://51kik.com |
| Prefix | /anthropic/v1 |
Do not point at api.anthropic.com.
Model ids
Shared catalog id with the OpenAI surface (custom_models.code). Use the catalog id, not assumed Anthropic version strings.
Gateway extensions
| Field | Description |
|---|---|
pdf_preprocess | Same as OpenAI chat |
extra_body | Merged upstream |
Errors
Failures include request_id:
{ "type": "error", "error": { "type": "...", "message": "..." }, "request_id": "req_..." }
Streaming
Events aim to match Anthropic; validate with your SDK version before production rollout.