Arize
Observability-first integration for AI workloads
Arize auto-instrumentation works with TheRouter.ai because TheRouter.ai is OpenAI-compatible. You keep your existing tracing pipelines and only change endpoint configuration.
Overview
Use the TheRouter API endpoint and a model ID from the current model catalog. Framework capabilities and configuration differ; test your integration before production.
Installation
Install the required SDKs and keep your TheRouter.ai key in environment variables.
pip install arize-otel openai openinference-instrumentation-openaiConfiguration
Configure the TheRouter API base URL and keep your API key on a trusted server.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.therouter.ai/v1", apiKey: process.env.THEROUTER_API_KEY });The client configuration below connects to TheRouter, but does not by itself enable tracing. Configure and verify instrumentation separately with your observability provider.
Caveats
For production rollouts, pin SDK versions and validate model compatibility in staging before broad rollout.