OpenRouter Audit Logging Overview Every OpenRouter API call returns a generation ID and metadata that enables comprehensive audit logging. The generation endpoint ( ) provides exact cost, token counts, provider used, and latency -- data that the initial response doesn't always include. This skill covers structured logging, cost tracking, PII redaction, and compliance-ready audit trails. Core: Generation Metadata Retrieval Structured Log Storage PII Redaction Before Logging Audit Queries Error Handling | Error | Cause | Fix | |-------|-------|-----| | Generation endpoint 404 | Generation ID no…