{"uid":"cap_TFZc-HRX3-141T3pCfGR7","slug":"halowerk-model-router-900489ec","name":"Halowerk Model Router","description":"Scores every catalogue model against one task and returns a ranked shortlist. You state the task kind, optionally a per-call budget in USD, how much speed matters, the input size and any vendor restriction; the answer names a model, the estimated cost per call, and the sub-scores it was chosen on, so the ranking can be checked rather than trusted. Models that cannot hold the input are excluded and listed separately with the reason. Weights are yours to set and are echoed back.","url":"https://modell.halowerk.com/v1/model-router","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"task":{"enum":["classification","extraction","summarization","translation","chat","coding","agent","reasoning","research","vision","long_context"],"type":"string","description":"What the model has to do."},"weights":{"type":"object","properties":{"cost":{"type":"number","default":0.4,"minimum":0},"speed":{"type":"number","default":0.2,"minimum":0},"capability":{"type":"number","default":0.4,"minimum":0}},"description":"Weighting of cost, capability and speed. Normalised to sum 1.","additionalProperties":false},"input_text":{"type":"string","maxLength":100000,"description":"Sample input. Used to estimate input_tokens if that is not given."},"input_tokens":{"type":"integer","default":2000,"minimum":0,"description":"Expected input size in tokens."},"require_tags":{"type":"array","items":{"type":"string"},"description":"Capabilities the model must carry, e.g. vision."},"output_tokens":{"type":"integer","minimum":0,"description":"Expected output length. Defaults to a value typical for the task."},"speed_priority":{"enum":["low","normal","high"],"type":"string","default":"normal","description":"How much latency matters."},"allowed_vendors":{"type":"array","items":{"type":"string"},"description":"Restrict to these vendors, e.g. for a data-residency or procurement rule."},"excluded_vendors":{"type":"array","items":{"type":"string"},"description":"Exclude these vendors."},"budget_usd_per_call":{"type":"number","minimum":0,"description":"Ceiling per call. Models above it are excluded."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_majJRM0-klp2Mr5PFWc9G","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores every catalogue LLM against a given task and returns a ranked shortlist with per-model cost estimates, sub-scores, and exclusion reasons for models that can't fit the input.","exampleAgentPrompt":"Score all models in the catalogue for a question-answering task with a budget of $0.005 per call, where speed matters a lot, the input is about 8000 tokens, and I want to exclude any OpenAI models — show me the ranked shortlist with sub-scores and why any models were excluded.","exampleUseCases":[{"title":"Budget-constrained summarization model selection","prompt":"I need to pick the cheapest model that can handle a 50,000-token legal document summarization task, with a hard cap of $0.01 per call — rank all candidates and tell me which ones can't fit the input and why."},{"title":"Real-time chatbot model recommendation","prompt":"I'm building a real-time customer support chatbot and need a fast model for short conversational inputs under 2000 tokens, with a budget of $0.002 per call — which model scores best if I weight speed at 0.7 and cost at 0.3?"},{"title":"Vendor-restricted code generation routing","prompt":"Find the best model for a code generation task using only Anthropic or Mistral models, input size is around 10,000 tokens, and I don't have a strict budget cap but want the most cost-efficient option — give me the full ranked list with sub-scores."}],"resultDescription":"A ranked shortlist of LLMs scored against the specified task, each entry including the model name, estimated cost per call, and sub-scores (e.g. cost, speed, context fit). Models that cannot accommodate the input size are listed separately with the reason for exclusion. The caller's weights are echoed back for auditability.","failureModes":["No models in catalogue fit within the specified budget — empty shortlist returned with explanation","Input size exceeds all available models' context windows — all candidates excluded with context-limit reasons","Invalid task kind enum value — validation error returned","Malformed weight values (e.g. do not sum to 1) — error or normalization warning returned","Network timeout or service unavailability — HTTP 5xx error"],"whenToPreferThis":"Choose this endpoint when an agent or developer needs to programmatically select the best LLM for a specific task rather than hardcoding a model. It is especially valuable when cost, speed, and context window all matter and need to be traded off transparently. Prefer it over manual model comparison when the model catalogue changes frequently or when vendor restrictions need to be enforced automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:19.789Z","isFirstParty":false}