Broadcast provides observability only. For Model A/B Testing and Prompt
Management, use the Fallom SDK.
What You Get
Setup (5 minutes)
1. Get Your Fallom API Key
Go to app.fallom.com/settings and copy your API key.2. Configure OpenRouter Broadcast
- Go to OpenRouter Broadcast Settings
- Click Add destination
- Select OTel Collector
- Enter:
- Click Save
Alternative: Per-Request Headers
You can also set broadcast headers on each request instead of configuring in OpenRouter’s dashboard:Adding Session & User Tracking
Includesession_id and user in your OpenRouter request body:
- Fetch
- OpenAI SDK
- Vercel AI SDK
- Python
Available Fields
Structured Output (JSON Mode) with Broadcast
For structured output with broadcast, use the OpenAI SDK withresponse_format:
For Vercel AI SDK’s
generateObject/streamObject with session tracking, use
the Fallom SDK wrapper instead of
broadcast. The SDK wrapper provides full tracing with fallom.session().What Gets Traced
Every OpenRouter request automatically includes:Troubleshooting
Traces not appearing
- Verify Broadcast is enabled in OpenRouter settings
- Check the endpoint is exactly
https://broadcast.fallom.com/v1/traces - Confirm your API key starts with
flm_ - Check the Authorization header format:
Bearer YOUR_API_KEY(with a space)
401 Unauthorized
Your API key is invalid or the header format is wrong:Missing session or customer data
Includesession_id and user in the request body, not as headers.
Next Steps
OpenRouter SDK
Use SDK for A/B testing and prompts.
View Dashboard
See your traces.

