Claude Code Setup
How to fill in Claude Code or Anthropic-compatible tools to connect to DINGJIAI.
The Anthropic protocol is a separate path
Claude Code and Anthropic-compatible clients use the Anthropic Messages protocol. The compatible paths are /v1/messages and /anthropic/v1/messages; the examples below default to /v1/messages. DINGJIAI never converts Anthropic requests into OpenAI requests automatically.
What to fill in
Base URL: usehttps://dingjiai.com, or up to/v1if the tool requires it.API Key: your DINGJIAI user API Key.Model: a public model id returned by the Anthropic Messages model list.
Verify the endpoint
curl https://dingjiai.com/v1/messages \
-H "x-api-key: YOUR_USER_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "a public model id copied from the Anthropic Messages model list",
"max_tokens": 256,
"messages": [
{ "role": "user", "content": "Hello" }
]
}'Notes
- If the tool asks for an Anthropic API Key, still fill in your DINGJIAI user API Key.
Anthropic-Versioncan stay at the tool's default; it is not an upstream version selector.- Visibility follows
GET /anthropic/v1/models; whether a real call succeeds also depends on active model products, balance, concurrency, and upstream candidates.
Last updated on