A decision is not a chat completion
The Decisions family evaluates application state against typed noul, choice, and score questions. That contract is available through POST /api/v1/decisions; it is not an OpenAI messages payload.
Use typesafe/jev, fastino/gliner2.5-multi-v1, or anyrouter/decision for auto-routing across the decision models your keys can reach. Model pages now lead with the native command and raw request samples instead of chat-agent launchers.
One command from the CLI
Install anyr, sign in, then choose an exact model:
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr decision --model typesafe/jevThe command uses the same Decisions endpoint and structured response as the API, so the result is typed answers rather than generated chat text.
The SDK surface follows the API
For application code, the model page also shows a raw fetch sample with state and questions. Chat SDK samples are intentionally omitted because they call the wrong endpoint for this model family.
const res = await fetch("https://anyrouter.dev/api/v1/decisions", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.ANYROUTER_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
state: "Help! My payouts have been failing for 3 days.",
model: "typesafe/jev",
questions: {
is_urgent: {
type: "noul",
instructions: "Does this convey urgency?",
},
},
}),
})
console.log(await res.json())Read the Decisions API reference or open the full Decisions app. Release details: Decisions family + anyr decision.
Related posts
Jev Decisions is now on its model page
Jev turns application state and typed questions into structured answers with probabilities. Try the new model-page demo, the full Decisions app, or the playground.
CLI update: multiple accounts, terminal key management, and agents that delegate
The AnyRouter CLI now handles several accounts side by side, manages API keys without the dashboard, runs plan-then-implement pipelines across two models, and lets coding agents hand tasks to each other — one hop, one key.
Use AnyRouter with the Vercel AI SDK
@anyr/ai-sdk-provider wraps the AnyRouter gateway as a standard Vercel AI SDK provider. Call createAnyRouter(), pass a provider/model id, and generateText, streamText, and generateObject work unchanged — switching models is a one-string edit.
Route your first request in 2 minutes
Start free with your own keys, or top up and pay per token. Get $4/mo in credits and free models on Go — $2/mo, or free when you donate a provider key.
Start free