Constrain
Budget, privacy, region, provider health and explicit developer controls are applied first.
One API routes requests across models and tools using quality, cost, latency and reliability — with fallback, budget controls and optional verification built in.
Phantom turns provider choice into a measured decision instead of an application-level hard-code.
Budget, privacy, region, provider health and explicit developer controls are applied first.
Eligible routes are ranked by task fit, measured quality, latency, cost and evidence confidence.
Calls run through bounded retries, circuit protection and constraint-preserving fallback.
Successful outcomes become durable evidence that improves future routing decisions.
Let Phantom choose when you want optimization, or pin the exact route when you need deterministic provider behavior.
Phantom chooses from your allowed portfolio using current evidence and constraints.
Prefer providers/models you specify while preserving availability within hard constraints.
No silent substitution. If the pinned route is unsafe or unavailable, Phantom fails closed.
Start with the interface you already expect. Add routing intelligence without rewriting your application around every provider.
const result = await phantom.execute({
capability: "chat.reasoning",
routing: {
mode: "auto",
max_cost_usd: 0.04,
max_latency_ms: 2000,
verification: "sampled"
},
input: prompt
});
console.log(result.route);
console.log(result.cost_per_success);
result = phantom.execute(
capability="chat.reasoning",
routing={
"mode": "auto",
"max_cost_usd": 0.04,
"max_latency_ms": 2000,
"verification": "sampled",
},
input=prompt,
)
print(result.route)
print(result.cost_per_success)
Start with a narrow production set. Expand only when routes earn their place through evidence.
Request access ↗