Documentation

Native SDK / Anthropic

Anthropic SDK

AI Token商城 fully supports the native Anthropic Messages protocol — use the official SDK with streaming, tool use, and vision.

🔑 Key Configuration

Endpointhttps://ai.ccdan.live/v1/messages
SDK baseURL:https://ai.ccdan.live
API Key:Buy a code at ccdan.live, redeem at ai.ccdan.live

Quick Start

request.sh
curl https://ai.ccdan.live/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: $CCDAN_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-sonnet-4-5",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

When using the SDK, baseURL is the root domain — the SDK auto-appends /v1/messages.