/api/v1/chat/completionsChat completions
OpenAI-compatible chat completions for coding agents and custom clients.
Supports native streaming, idempotent retries, required output caps, and metered usage.
curl https://steyg.one/api/v1/chat/completions \
-H "Authorization: Bearer sk-steyg-..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: deploy-check-001" \
-d '{"model":"claude-haiku-4-5","max_tokens":256,"messages":[{"role":"user","content":"Review this diff."}]}'