What problem does it solve?
This Skill removes the need to manually sift through OpenRouter API logs to find details about individual generation requests, such as cost, latency, token usage, provider routing, and stored prompt/completion content, which is critical for debugging issues, tracking API spend, and auditing request behavior.
Core Features & Use Cases
- Generation Metadata Retrieval: Pull full request metadata including token counts (prompt, completion, cached, reasoning), cost breakdowns (total cost, upstream provider cost, cache discounts), latency metrics, model and provider details, and full provider fallback chains.
- Stored Content Access: Retrieve the original prompt and model completion text for any generation (when Zero Data Retention is not enabled) to verify input/output accuracy and debug unexpected results.
- Debugging Support: Identify root causes of failed or unexpected generations by checking finish reasons, cancellation status, and per-provider response data from fallback attempts.
- Use Case Example: If a model returned an irrelevant response, use this skill to pull the exact prompt sent, the completion received, and any fallback provider attempts to diagnose the root cause.
Quick Start
Use the openrouter-generations skill to retrieve the metadata and stored content for the OpenRouter generation with ID gen-1234567890.