VCodeX
For Developers

Anthropic Messages API

Native /v1/messages surface for Anthropic-format clients.

Alongside the OpenAI-compatible surface, the gateway exposes a native Anthropic Messages API for clients that speak that format.

MethodPathPurpose
POST/v1/messagesAnthropic-format chat completions
POST/v1/messages/count_tokensToken counting for Anthropic models
curl https://app.vcodex.ai/v1/messages \
  -H "Authorization: Bearer $VCODEX_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "anthropic/claude-sonnet-4.5",
    "max_tokens": 1024,
    "messages": [{ "role": "user", "content": "hi" }]
  }'

Both surfaces share the same routing, BYOK, guardrails, budgets and observability pipeline — pick whichever matches your client.