Repository navigation
Cheapest Model: Siro picks the cheapest language model that fits, and a failed answer is retried on Siro's cost.
Pick (#12)
POST /v1/llm-autowithprompt, and optionallytier(fast,balanced,frontier),maker(one company, oropen-weight) andmax_price.- Siro picks the cheapest of the 17 language models that fits. The 402 quote is that model's price and carries a
pickedblock naming it, so the agent sees the model before it signs. - The result repeats the pick and the most expensive model that also fitted.
Checks and retries (#14)
- Optional checks:
must_include(comma-separated phrases),min_chars,json(yes) andjson_keys. - An answer that fails is retried on the next model up the same tier and maker, at most twice. The caller pays the first model's quoted price only; retries are paid by Siro.
- If no answer passes, the call fails with
no_answer_passedand the payment is not settled. check.attemptslists every model tried, whether it passed, why not, and who paid for it.- Siro spends at most $3 a day on retries across all callers (
router_retriesin D1, migration 0009).
Tested live on 27 November 2026
- Tier
fast, JSON check: Gemma 4 26B picked at $0.002 out of 9 models, passed on the first try. - Tier
fast,must_include"HTTP 402, payment": Gemma 4 26B, GPT-OSS 120B and Llama 4 Scout all missed the check; nothing was settled and Siro booked $0.012 of retries.