API Reference

Usage & Logs

Every /v1/* request is logged and visible in the console, so you can debug what was sent, by which key, and how it performed.

What's recorded per request

FieldDescription
modelThe public model id requested.
endpointThe route called, e.g. /v1/chat/completions.
statusHTTP status code returned.
input / output tokensFrom the provider's own usage numbers.
tokens_per_secondComputed as output_tokens / (latency_ms / 1000).
latencyTime from request received to response returned.
keyWhich of your API keys was used (shown by its prefix only).
app_name / app_urlFrom the optional X-Title / HTTP-Referer headers below.

Identifying your app in the logs

Following the same convention as OpenRouter, you can send two optional headers on /v1/chat/completions to label requests from a specific app or project:

Optional headers
X-Title: My Cool App
HTTP-Referer: https://my-app.example.com

These show up as the App / URL column when you filter logs in the console — useful once you have more than one integration sharing the same account.

Viewing logs

Open Logs under Developers → API on dravenai.lat to filter by model, status (2xx/4xx/5xx, or an exact code), endpoint, and date range.

The console Overview page also shows requests and tokens used today against your daily limits, plus how many keys you have and the current model catalog.