gpt-4o or claude-opus out of habit. That habit costs 10–50× more than necessary for the majority of prompts.
A simple classification question, a JSON extraction, a grammar check — these tasks don’t need a frontier model. PRYSM routes them automatically to the cheapest capable model and reserves the heavy models only for prompts that need them.
The one-line change
chat.completions.create() call now routes automatically. Your code stays identical.
What just happened
When you send a prompt, PRYSM scores it across 10 signals in ~1 ms:
Typical distribution in a production app: ~60% simple, ~30% code/mid, ~10% frontier. That mix costs **5–21/MTok for all-frontier.
Verify routing in the response
Every PRYSM response adds three fields underprysm:
Dry-run before committing
Use/v1/route to see which model PRYSM would pick for a prompt — no tokens consumed:
Real savings estimate
Use/v1/savings to quantify what you’d save given your current usage: