OpenRouter provides an opt-in header, X-OpenRouter-Metadata, that can reveal which AI model served a user's request. By default, this metadata is not included in responses. The metadata details the routing strategy, endpoints considered, and attempts made by the router, including the provider and model for each attempt. However, the `requested` field within this metadata may differ from the model that actually served the request, indicating a potential failure mode. For definitive verification, the `upstream_id` field, obtained by fetching the generation record via its ID, is the only piece of information originating outside of OpenRouter itself, allowing for third-party lookup. AI
IMPACT Provides users with greater transparency into which AI models are serving their requests via routing services.
RANK_REASON The item details a specific feature of an AI routing service, explaining how users can access information about model usage.
- Byeok
- Identity Generation
- OpenRouter
- openrouter_metadata
- Provider
- upstream_inference_cost
- X-OpenRouter-Metadata
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →