Reference
Messages
POST /v1/messages — native Anthropic format.
POST https://app.vcodex.ai/v1/messages
Authorization: Bearer $VCODEX_KEY
anthropic-version: 2023-06-01Accepts Anthropic Messages-format requests and returns Anthropic-format
responses. Token counting is available at POST /v1/messages/count_tokens.
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" }]
}'Routing, BYOK, guardrails, budgets and observability behave identically to the chat completions endpoint.