Skip to main content
Base URL: 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.
LLM proxy routes use X-Nozle-Key for Nozle authentication, not the Authorization header. The Authorization header is reserved for the customer’s own LLM provider API key, which the proxy forwards untouched to the provider.

/api/v1/proxy/openai/v1/*

Proxies all requests to https://api.openai.com/v1/*. Any OpenAI-compatible endpoint works (chat completions, embeddings, etc.). Auth: X-Nozle-Key header (sk_ only) Required headers:
cURL

/api/v1/proxy/anthropic/v1/*

Proxies all requests to https://api.anthropic.com/v1/*. Auth: X-Nozle-Key header (sk_ only) Required headers:
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.