Arize
Using OpenRouter with Arize
Arize provides observability and tracing for LLM applications. Since OpenRouter uses the OpenAI API schema, you can utilize Arize’s OpenInference auto-instrumentation with the OpenAI SDK to automatically trace and monitor your OpenRouter API calls.
Arize’s OpenInference auto-instrumentation works with OpenRouter because:
/v1 endpoint mirrors OpenAI’s schemabase_url to OpenRouterSet up your environment variables:
Initialize Arize and instrument your OpenAI client to automatically trace OpenRouter calls:
All OpenRouter model calls are automatically traced and include:
OpenInference also provides instrumentation for the OpenAI JavaScript/TypeScript SDK, which works with OpenRouter. For setup and examples, please refer to the OpenInference JavaScript examples for OpenAI.