Measure. Compare. Decide.
Replay helps you make data-driven model selection decisions by testing your actual prompts across different AI models and measuring what matters: cost, quality, and reliability.
You're spending money on Model A, but would Model B work just as well for 40% less cost?
You don't know because:
- You can't predict how models will perform on your specific use case
- Quality is subjective and hard to measure at scale
- Manual testing is slow and doesn't scale
Replay solves this by running your historical prompts through different models and giving you empirical evidence.
Your Historical Prompts
↓
Test Across Models (GPT-4, Claude, Gemini etc.)
↓
Measure Cost + Quality + Refusals
↓
Get Actionable Recommendations
Recommendation: Switch creative writing prompts to Claude Sonnet
Expected savings: 42% ($1,240/month → $719/month)
Quality impact: -0.3 on 10-point scale
Refusal rate: No change
Confidence: High (based on 847 prompts)
Evidence: View sample comparisons →
No guessing. We replay your actual prompts and measure real results.
Exact cost calculations per prompt, per model, with no approximations.
AI-powered quality assessment with human-readable explanations.
Automatic detection when models decline to answer.
See cost vs quality visualized. Find your optimal balance.
Automatic prompt categorization (coding, creative, Q&A, etc.) for targeted recommendations.
Simulate different routing strategies before committing.
Batch processing automatically handles rate limits and retries.
# Launch Real-time model switch with explanation context
streamlit run streamlit_chat.pyRequirements:
- Python 3.9+
- Portkey API keys for models you want to test
- Historical prompt data (JSON or Portkey format) (We used open-source dataset lmsys/lmsys-chat-1m )
Your input data should include:
{
"prompt": "Write a Python function to...",
"response": "Here's the function...",
"model": "gpt-4",
"tokens_in": 45,
"tokens_out": 120,
"timestamp": "2024-01-15T10:30:00Z"
}Replay automatically extracts and normalizes this from Portkey logs.
Planning to switch from GPT-4 to a cheaper alternative? Test first.
Find which prompt categories can use cheaper models without quality loss.
New model released? See how it performs on your workload.
Track if model performance degrades over time.
Build intelligent routing: premium models for complex prompts, budget models for simple ones.
Prompt Store → Replay Executor → Evaluation Engine → Recommendations
↓ ↓
(Multiple (Cost, Quality,
Models) Refusals)
Design Materials:
What Replay Is:
- ✅ A measurement and comparison tool
- ✅ Evidence for making decisions
- ✅ A way to validate model switches
- ✅ Real-time routing (use after analysis)
What Replay Is Not:
- ❌ A model training system
MIT License - see LICENSE file for details

