{"uid":"cap_KrdwT1OZO9ROj89D4NRNU","slug":"openrouter-typed-decisions-typesafe-jev-67b32fb1","name":"OpenRouter Typed Decisions (TypeSafe Jev)","description":"Typed decisions with TypeSafe Jev (model-dependent pricing)","url":"https://openrouter.mpp.tempo.xyz/alpha/decisions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["llm","unified","multi-model","chat","ai"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"session","summary":"$0.01/call","primary":{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yoJMmqwddTZ18kAhJSGuU","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"session","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x20c000000000000000000000f37de3740ADec032","unit":"request","depositMicros":null,"planRef":null}],"brandName":"OpenRouter","brandSlug":"openrouter","brandBaseUrl":"https://openrouter.ai","brandDocsUrl":"https://openrouter.ai","whatItDoes":"Generates structured, type-safe decisions using large language models via OpenRouter's unified API with model-dependent pricing","exampleAgentPrompt":"Using OpenRouter's typed decisions endpoint with TypeSafe Jev, decide whether this customer support ticket should be escalated to a human agent or handled automatically, and return a structured decision with your reasoning and confidence level: 'My order hasn't arrived in 3 weeks and nobody is responding to my emails.'","exampleUseCases":[{"title":"Customer support ticket triage","prompt":"Look at this support message and decide using OpenRouter's typed decisions whether it should be escalated, auto-resolved, or flagged for fraud review — I need a structured JSON response: 'I was charged twice for the same order last Tuesday.'"},{"title":"Content moderation classification","prompt":"Use the OpenRouter typed decisions API to classify this user-submitted post as safe, needs-review, or remove — return a structured typed decision with a confidence score: 'Check out this amazing weight loss pill that doctors don't want you to know about!'"},{"title":"Lead scoring and routing decision","prompt":"Run this sales lead through OpenRouter's typed decisions to get a structured output — classify them as hot, warm, or cold based on their profile: company size 500 employees, industry fintech, downloaded our enterprise whitepaper twice this week."}],"resultDescription":"A structured, type-safe decision object conforming to the TypeSafe Jev schema, containing the model's chosen decision or classification, along with any associated reasoning, confidence scores, or metadata defined by the output type schema. The response format is validated and machine-readable, suitable for direct use in downstream logic.","failureModes":["Invalid or unsupported model identifier returns an error response","Malformed type schema causes validation failure or rejection","Insufficient USDC balance causes payment failure and request rejection","Model unavailable or rate-limited returns a service error","Prompt too long for model context window causes truncation or rejection","Type mismatch between prompt and expected output schema causes structured output failure"],"whenToPreferThis":"Prefer this endpoint when you need a structured, type-safe decision from an LLM rather than free-form text — especially for classification, routing, or conditional logic in automated workflows. It is ideal when downstream systems require machine-readable, schema-validated output rather than natural language. Choose it over plain chat completions when output predictability and type safety are critical. It is well-suited for multi-model scenarios where you want to switch models while keeping a consistent output contract.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T06:59:39.865Z","isFirstParty":false,"canonicalSlug":"openrouter-typed-decisions-typesafe-jev-67b32fb1"}