Anthropic API

Fully compatible with the Anthropic Messages API format. Use the official SDKs with a base URL change.

Base URL

https://api.hacxgpt.com/anthropic

SDK Setup

from anthropic import Anthropic

client = Anthropic(
    api_key="hk-proj-YOUR_API_KEY",
    base_url="https://api.hacxgpt.com/anthropic"
)

Supported Endpoints

Tool Integrations

Note
The Anthropic API accepts authentication via the x-api-key header or Authorization: Bearer header. Always include the anthropic-version header for full compatibility.