Skip to main content
Anthropic-format clients use the root base URL https://api.derestricted.ai. The SDK appends /v1/messages; including /v1 twice produces an incorrect URL.
These use the client configuration and Messages interfaces from the official Python and JavaScript SDKs. The model is the derestricted deployment, not a Claude model.

Supported behavior

  • POST /v1/messages accepts messages, an optional top-level system prompt, and client-defined tool schemas/results.
  • stream: true returns Messages-style SSE events, including content-block events and keepalives.
  • stream: false returns a complete message with content blocks and usage.
  • POST /v1/messages/count_tokens returns an approximate input estimate. It is not the deployed model’s tokenizer.

Compatibility boundaries

The request fields thinking, output_config, context_management, mcp_servers, container, betas, and service_tier are ignored. Tool defer_loading is also removed. These controls do not enable Anthropic-hosted features or change the model’s reasoning configuration. Use text messages and application-executed tools. Managed MCP connections, hosted tools, computer use, media generation, files, and message batches are not provided. Sending Anthropic beta headers does not enable those features. Provider-specific prompt-cache behavior is not guaranteed. For endpoint details, see Messages and token estimates. For a coding-agent setup, see Claude Code.