AI Logs, Overview and Playground
AI Logs
AI Gateway › AI Logs lists every model request, separately from API request logs. Filter by time range, client, model, outcome, request ID and trace ID. Each row shows the client, model, the provider that served it, the outcome (OK, OK after fallback, masked, blocked by guardrail, budget exceeded, upstream error...), tokens, cost and latency.
Select a row for the detail view:
- Request ID, trace ID (a link to the trace when the console has
NEXT_PUBLIC_TRACE_URL_TEMPLATE), endpoint (and whether it streamed), client, served-by provider and upstream model, tokens in and out, cost, latency. - Attempts: every provider tried, with status, latency and error, so you can see why a fallback happened.
- Guardrail action, stage, reason and findings.
- Request and response bodies when the model's logging is redacted (personal data masked). With metadata only, no text is stored.
Entries are deleted after the number of days in AI_LOG_RETENTION_DAYS on the server, by the same retention job as request and audit logs. When it is not set, the retention saved in AI Gateway › Settings by earlier versions applies (default 30 days). Settings shows the retention in effect; it cannot be changed from the console. Admins can delete single entries; deletions are audited.
Every model API response carries X-Zerq-Request-ID and, with tracing on, X-Trace-ID; search for either to find the entry. AI log entries can also be streamed to your log platform.
Overview
AI Gateway › Overview shows, for the last hour, 24 hours, 7 or 30 days:
- Requests and error rate, tokens, spend, p95 latency (with p50 and the average), fallbacks and guardrail actions.
- Requests, errors and latency and Tokens and spend over the whole range.
- Top clients and models with their error rates, linking to filtered AI Logs.
- Outcomes: the share of requests that succeeded, were served from cache, or failed by reason (model not found, guardrail blocked, budget exceeded, upstream unavailable, ...).
- Providers: every call to each provider, including failed attempts before a fallback, with the failure rate, p95 latency and status. A provider that fails every call shows its failures here even though it never served a request. The status is Healthy or Down only for providers with health checks on; otherwise it is Not monitored.
Until the first request is served it also shows a setup checklist.
Playground
AI Gateway › Playground (modifier role) sends chat requests to any active chat model through the full pipeline: context rules, guardrails, routing and fallback, and streaming. Set a system prompt, temperature and max tokens. After each answer it shows which provider and upstream model served it, whether a fallback happened, latency and tokens, and a link to the AI log entry.
Playground requests appear in AI Logs as client Playground and are not charged to client budgets. Get code shows snippets for calling the selected model from your own code.