# Observability for OpenRouter with Opik

> Start here to integrate Opik into your OpenRouter-based genai application for end-to-end LLM observability, unit testing, and optimization.

This guide explains how to integrate Opik with OpenRouter using the OpenAI SDK. OpenRouter provides a unified API for accessing hundreds of AI models through a single OpenAI-compatible interface.

## Getting started

First, ensure you have both `opik` and `openai` packages installed:

```bash
pip install opik openai
```

You'll also need an OpenRouter API key which you can get from [OpenRouter](https://openrouter.ai/).

## Tracking OpenRouter API calls

```python
from opik.integrations.openai import track_openai
from openai import OpenAI