Docs
Messages (v1/messages)
Pass-through endpoint for Anthropic Messages API requests.
Endpoint
http
1POST /v1/messages2Content-Type: application/jsonRequest example
bash
1curl "https://api.0-0.pro/v1/messages?beta=true" \2 -H "x-api-key: $API_KEY" \3 -H "Content-Type: application/json" \4 -H "anthropic-version: 2023-06-01" \5 -d '{6 "model": "claude-sonnet-4-6",7 "max_tokens": 128,8 "messages": [{"role":"user","content":"Hello"}]9 }'Pass-through behavior
(O—O) forwards the request body, compatible headers, and query string upstream, then returns the upstream response body unchanged. The gateway still authenticates your (O—O) key and records usage.
Usage accounting
input_tokensare billed at the model input price, whilecache_read_input_tokensare recorded as cached tokens and billed at input × 0.1.cache_creation.ephemeral_5m_input_tokensare billed at input × 1.25;cache_creation.ephemeral_1h_input_tokensare billed at input × 2.- If Anthropic only returns aggregate
cache_creation_input_tokens, (O—O) defaults the cache write to the 5m rate. All Claude cache-derived prices inherit the configured model discount.