Skip to content

Anthropic SDK ​

Current status

The Anthropic-native / Claude Code compatibility layer is not part of the currently verified public Beta surface. For external testing, prefer the OpenAI-compatible Base URL https://api.tuoyuan.ai/v1. This page is retained as a compatibility reference until general availability is announced.

TUOYUAN API provides unified model access through api.tuoyuan.ai. Upstream routing remains transparent to API consumers.

Endpoints ​

  • OpenAI-compatible: https://api.tuoyuan.ai/v1
  • Anthropic-compatible: https://api.tuoyuan.ai

Authentication ​

Keep TUOYUAN_API_KEY server-side. Use GET /v1/models to discover the models currently available to your key.

Anthropic SDK ​

This section documents anthropic sdk for TUOYUAN API. Preserve the native client protocol and replace the provider Base URL and API key with TUOYUAN values. Validate model-specific advanced parameters against the current model capability before production use.

TUOYUAN API · 拓元智算