Use Claude with the OpenAI-compatible API
Use the shared /v1 base URL and OpenAI SDK with a provider/model ID.
Set your key and choose a model
Replace the key placeholder with the complete key you copied. Choose an exact model ID available to that key; the public catalog is a reference and does not establish account access. These variables last for the current terminal session.
Make a request
All providers use https://api.kineticrouter.com/v1. No provider-specific base URL is required.
Verify the answer and billed usage
- Check the returned assistant message. An error response is not a successful answer.
- Open Usage and select a date range that includes the request. Check the displayed timezone.
- Find the request by its model and key name. Review input/output and cache tokens, latency, and actual billed cost.
- If a request is interrupted or times out, check Usage before repeating it. A retry is a separate request and can incur another charge.
Troubleshooting
For support, include the time, model, request ID if supplied, and error status. Never send your API key, session cookie, or password. Error details vary by endpoint; use the returned status and message rather than assuming one universal error shape.
- Authentication failed: copy the complete key again, remove extra whitespace, and check its active status and expiry. Custom keys do not necessarily begin with sk-.
- Model unavailable or access denied: verify the selected key’s group and available model list. Check IP restrictions and provider route availability.
- Quota or balance exhausted: inspect the key’s quota and rolling USD limits, then the account balance or subscription usage. Changing a key quota does not fund the account.
- Request URL not found: use /v1 as the SDK base URL, and /v1/chat/completions for a direct Chat Completions request. Use the protocol supported by your chosen model.
- Rate-limited or temporarily unavailable: wait before trying again and check service status. Avoid repeatedly resending a request that may already have been processed.
- Stream stopped: keep the partial answer and check Usage. Start another request only when you want to retry.
- Playground with an IP-restricted key: the gateway sees the console server’s connection. A key that works from your application may not permit that connection. Keep the restriction unless you intend to change it.