Endpoint#

Endpoint
POST https://api.xpluse.plus/anthropic/v1/messages

Create Claude conversations through the Anthropic native API. DataMind AI is fully compatible with the Anthropic Messages API and works directly with the official SDK. The native protocol is better than OpenAI-compatible forwarding because it provides native Prompt Caching (up to 90% lower input cost), full feature support (Extended Thinking, Citations, PDF input), and lower latency.

Authentication#

Header
x-api-key: <your DATAMIND_API_KEY>
anthropic-version: 2023-06-01

Request parameters#

ParameterTypeRequiredDescription
ModelsstringModel identifier, such as anthropic/claude-sonnet-4.6
max_tokensnumberMaximum generated token count
messagesarrayMessage array
systemstringSystem prompt
temperaturenumberSampling temperature from 0 to 1
top_p / top_knumberNucleus sampling / Top-K sampling
streambooleanWhether to enable streaming responses
toolsarrayTool definitions
tool_choiceobjectTool selection strategy

Request example#

cURL
curl https://api.xpluse.plus/anthropic/v1/messages \
  -H "x-api-key: $DATAMIND_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4.6",
    "max_tokens": 1024,
    "system": "You are a professional coding assistant.",
    "messages": [{"role": "user", "content": "Write a quicksort implementation in Python"}]
  }' 
Python
import anthropic

client = anthropic.Anthropic(base_url="https://api.xpluse.plus/anthropic", api_key="<your DATAMIND_API_KEY>")

message = client.messages.create(
    model="anthropic/claude-sonnet-4.6",
    max_tokens=1024,
    system="You are a professional coding assistant.",
    messages=[{"role": "user", "content": "Write a quicksort implementation in Python"}]
)

print(message.content[0].text)
TypeScript
const message = await client.messages.create({
  model: 'anthropic/claude-sonnet-4.6',
  max_tokens: 1024,
  system: 'You are a professional coding assistant.',
  messages: [{ role: 'user', content: 'Write a quicksort implementation in Python' }]
})

console.log(message.content[0].text)

ResponseFormat#

JSON
{
  "id": "msg_abc123",
  "type": "message",
  "role": "assistant",
  "content": [{"type": "text", "text": "Here is a Python quicksort implementation..."}],
  "model": "anthropic/claude-sonnet-4.6",
  "stop_reason": "end_turn",
  "usage": {"input_tokens": 25, "output_tokens": 200}
}

Supported models#

ModelDescription
anthropic/claude-opus-4.6Strongest capability
anthropic/claude-sonnet-4.6Balanced performance
anthropic/claude-haiku-4.5Fast response

Last updated on June 22, 2026