Moda

Moda is a product analytics platform that helps you understand user behavior. Connect it with Respan to forward LLM call events to Moda and monitor LLM performance alongside your product analytics.

Create an account at platform.respan.ai and grab an API key. For gateway, also add credits or a provider key.

Run npx @respan/cli setup to set up with your coding agent.

The Moda integration runs through the Respan gateway. Pass your Moda credentials in moda_integration and Respan forwards LLM events to your Moda project.

Setup

1

Create your Moda account

Go to Moda and create an account. From your Moda project settings, grab your Moda API key and host.

2

Set environment variables

$export RESPAN_API_KEY="YOUR_RESPAN_API_KEY"
$export MODA_API_KEY="YOUR_MODA_API_KEY"
$export MODA_BASE_URL="YOUR_MODA_ENDPOINT"
3

Add moda_integration to your request body

1import os
2import requests
3
4response = requests.post(
5 "https://api.respan.ai/api/chat/completions",
6 headers={
7 "Content-Type": "application/json",
8 "Authorization": f"Bearer {os.environ['RESPAN_API_KEY']}",
9 },
10 json={
11 "model": "gpt-4.1-nano",
12 "messages": [{"role": "user", "content": "Hello"}],
13 "moda_integration": {
14 "moda_api_key": os.environ["MODA_API_KEY"],
15 "moda_base_url": os.environ["MODA_BASE_URL"],
16 },
17 },
18)
19print(response.json())
4

Build a dashboard in Moda

Once connected, create dashboards in Moda to monitor LLM performance and track key metrics.