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.
| Method | Path | Purpose |
|---|---|---|
POST | /v1/messages | Anthropic-format chat completions |
POST | /v1/messages/count_tokens | Token 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.