https://api.nozle.app/api/v1
Reverse proxy routes that forward LLM requests to OpenAI or Anthropic and automatically track token usage. The proxy reads the response to extract { model, input_tokens, output_tokens, latency_ms } and fires an internal nozle.track() event — no SDK wrapper needed on your side.
/api/v1/proxy/openai/v1/*
Proxies all requests tohttps://api.openai.com/v1/*. Any OpenAI-compatible endpoint works (chat completions, embeddings, etc.).
Auth: X-Nozle-Key header (sk_ only)
Required headers:
| Header | Description |
|---|---|
X-Nozle-Key | Your Nozle secret key (sk_live_...) |
X-Nozle-Customer | External customer ID to bill for this usage |
Authorization | Customer’s OpenAI API key (Bearer sk-...) |
cURL
/api/v1/proxy/anthropic/v1/*
Proxies all requests tohttps://api.anthropic.com/v1/*.
Auth: X-Nozle-Key header (sk_ only)
Required headers:
| Header | Description |
|---|---|
X-Nozle-Key | Your Nozle secret key (sk_live_...) |
X-Nozle-Customer | External customer ID to bill for this usage |
Authorization | Customer’s Anthropic API key |
cURL
The proxy returns the provider’s response unchanged. Your customer’s API key is forwarded but never stored. Token usage is extracted from the response and tracked automatically as a billing event on the
llm_tokens metric.