cURL examples
Three smoke-test commands for OpenAI Chat, Anthropic Messages, and Responses APIs.
OpenAI Chat Completions (base URL includes /v1)
Client base URL ends with /v1; path is /chat/completions—do not add another /v1.
curl -sS https://api.korvexor.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"ping"}]}'
Anthropic Messages (base URL is gateway root, no /v1)
curl hits /v1/messages; if your base URL already has /v1 you get /v1/v1/messages.
curl -sS https://api.korvexor.com/v1/messages \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{"model":"auto","max_tokens":256,"messages":[{"role":"user","content":"ping"}]}'
OpenAI Responses (base URL includes /v1)
Tools like Codex use the Responses surface; auth is still Bearer API key.
curl -sS https://api.korvexor.com/v1/responses \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{"model":"auto","input":"ping"}'
Next steps
Read the endpoint overview, or match errors on the troubleshooting page.