Sovereign Docs

Anthropic-Compatible

Endpoints, authentication, tools, streaming, and examples for Sovereign's Anthropic-compatible API.

Base URL for Anthropic-native clients:

https://api.sovrun.one/anthropic

That base URL exposes:

POST /v1/messages

Authentication

x-api-key: sk-sov-live_<key_id>_<secret>
anthropic-version: 2023-06-01

Model

Use:

sovereign-alpha

Messages API

curl https://api.sovrun.one/anthropic/v1/messages \
  -H "x-api-key: sk-sov-live_..." \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sovereign-alpha",
    "max_tokens": 1024,
    "messages": [
      {
        "role": "user",
        "content": "Create a concise checklist for reviewing firewall ACL changes."
      }
    ]
  }'

Supported Fields

Supported Anthropic-compatible fields currently include:

  • system
  • messages
  • max_tokens
  • stream
  • temperature
  • top_p
  • stop_sequences
  • tools
  • tool_choice
  • thinking
  • metadata
  • service_tier

Streaming

Streaming uses Anthropic-style named SSE events such as:

  • message_start
  • content_block_start
  • content_block_delta
  • message_delta
  • message_stop

Tool Use

Sovereign accepts:

  • tool_use
  • tool_result

Tool execution remains the client's responsibility.

Known Notes

  • The stable model name remains sovereign-alpha; Sovereign does not expose Anthropic model IDs.
  • This surface is best for clients that already speak the native Anthropic Messages API.
  • Image inputs are currently rejected on Sovereign.

Errors

Anthropic-compatible endpoints return Anthropic-style errors:

{
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "anthropic_version_required"
  }
}

On this page