The Free Default Model Era: Multi-Model Architecture and Cost Governance in Practice

    When OpenClaw (formerly Clawdbot / Moltbot) named Kimi K2.5 its first free default model, it put three long-term shifts on display rather than simply crowning a winner. This article argues that any architecture built on the premises of "default" and "free" is fragile, then shows how to design around that reality. It breaks the cost of running models into three layers (direct, hidden, and cost per task rather than per token) and walks through a five-layer architecture with runnable code: an abstraction layer that hides the default model from business code, a routing layer that treats the default as a role with failover and circuit breaking, a tenant-level budget layer, an offline evaluation layer, and an observability layer. It closes with a launch checklist and a compliance baseline. The takeaway: models are replaceable, but your abstraction layer, budget system, and evaluation set are the real assets, and "cost per task" is the only stable metric.

    1. Re-Understanding “Default” and “Free”

    OpenClaw (formerly Clawdbot / Moltbot) is an open-source AI agent project that announced Kimi K2.5 as its first free default model. Kimi K2.5 is an open-source model from Moonshot AI; its open version uses a hybrid architecture combining non-thinking (Instant) and thinking modes, is natively multimodal, and has 1T total parameters with 32B active parameters, released alongside open weights and a key technical report. Moonshot AI also offers OpenClaw community users a large free quota — a cost borne by the model provider — delivered as a service rather than as a networked integration.

    Three things are worth separating out.

    The default slot is a distribution channel. Agents typically run a loop of thinking, tool calls, web search, memory, and context management, and the model is a replaceable reasoning core within it. The default decides which model runs first-time and daily tasks and sub-agents across millions of installations — effectively routing the distribution entry point to a specific model.

    “Free” is a subsidy, not a structural price cut. Open weights let anyone self-host, quantize, or distill the model, but self-hosting requires GPU inference clusters, batch scheduling, and operational capability. Hosted free quota is an early-stage customer-acquisition strategy; whether it lasts depends on call volume, batch efficiency, and hardware cost.

    Open weights are only a necessary condition for lowering model-switching cost. The real constraints are data compliance and internal approval in sectors like government, finance, and healthcare; regulatory filing progress depends on public disclosures from the relevant authorities. Several models in the Kimi series had previously completed the filing required for generative AI services, but “filed” does not mean every deployment form is automatically compliant.

    For developers, the conclusion is a single sentence: any architecture premised on “default” and “free” is fragile.

    2. Three-Layer Cost Accounting: Free Is Not Zero Cost

    1. Direct cost. For self-hosting, it’s GPU hours; for hosted APIs, it’s the price per million tokens. The point of sparse models like MoE is the separation of total and active parameters: routed experts don’t need to stay resident in memory, so the bottleneck shifts from “how many parameters fit” to “memory bandwidth and KV-cache capacity.”

    2. Hidden cost. The part engineering teams usually underestimate:

    • Migration and validation: Prompt behavior differs across models and needs re-evaluation; success rates for structured output and tool calls may regress.
    • Eval-set maintenance: After a model upgrade, old test cases may go stale.
    • Operations: rate limiting, retries, observability, and failure degradation.
    • Latency: Free quotas often have queuing and priority downgrades; thinking models also consume extra “thinking tokens,” and long outputs directly raise latency.
    • Opportunity cost: When free quota tapers off, you’re forced to migrate — often after the business is already deeply bound.

    3. Cost per task, not token price.

    1. cost per task = (input tokens × input price + output tokens × output price + cost of failed retries and human review) / number of successful tasks

    Take a single tool-call task as an example (illustrative numbers):

    • Direct cost: system prompt and tool definitions ≈ 3,000 tokens, conversation and tool results ≈ 2,000 tokens, model output ≈ 500 tokens — about 5,500 tokens total.
    • At a 5% failure rate, where each retry consumes the full context, the effective cost multiplies by about 1.05.
    • If another 1% of tasks are escalated to humans, the amortized human cost can reach dozens of times the model cost.

    The denominator is what matters. A model that is 50% cheaper but fails 5 percentage points more often can be more expensive per task, and the difference is masked by the per-token bill. So model selection can’t rely on unit price alone; decide with the offline evaluation and canary results from Section 6.

    3. Abstraction Layer: Keeping Business Code Unaware That a “Default Model” Exists

    Engineering-wise, two layers of isolation are needed:

    • Access layer: Wrap a unified client over hosted APIs and self-hosted inference services, adapting internally to auth, streaming deltas, tool-call formats, and error codes. Hosted services should read credentials from a secret-management service; hardcoding is prohibited.
    • Protocol layer: Interfaces define only the semantics the business cares about (chat, tools, structured output) and expose no vendor-specific parameter names.

    Sample code:

    1. """Model-agnostic unified call interface: the business layer depends only on the LLMBackend protocol."""
    2. from dataclasses import dataclass
    3. from typing import Protocol, Literal
    4. # Capability declaration: the routing layer filters available backends based on this
    5. Feature = Literal["chat", "tools", "json_schema", "vision", "long_context"]
    6. @dataclass(frozen=True)
    7. class ModelSpec:
    8. name: str # logical name, e.g. "default" / "deep" / "lite", not bound to a product
    9. features: frozenset[Feature]
    10. max_input_tokens: int
    11. supports_stream: bool = True
    12. class LLMBackend(Protocol):
    13. spec: ModelSpec
    14. async def complete(self, messages: list[dict], spec: ModelSpec) -> str: ...
    15. class BackendPool:
    16. """Registry: adding a model only requires implementing the protocol and registering it, with zero changes to business code."""
    17. def __init__(self) -> None:
    18. self._backends: dict[str, LLMBackend] = {}
    19. def register(self, backend: LLMBackend) -> None:
    20. self._backends[backend.spec.name] = backend
    21. def get(self, name: str) -> LLMBackend:
    22. return self._backends[name] # missing key raises at startup, avoiding a silent fallback to a default at runtime

    4. Routing Layer: Use the “Default Model” to Define Roles, Not to Hardcode

    The default model is best suited to high-frequency, standardized tasks: intent recognition, information extraction, and summarization/rewriting. These tasks are the most cost-sensitive and the most pattern-stable. Hand complex tasks to more capable backends, with degradation and circuit breaking in place.

    Tiered strategy:

    • Layer 0 — pre-filter: input/output safety checks, tool whitelists, and regex-based format validation — near-zero cost.
    • Layer 1 — capability routing: filter candidate backends by input length, whether images are present, and whether structured output is required.
    • Layer 2 — task tiering: map task types to default / deep / lite roles, with the mapping in a config center that supports hot updates.
    • Layer 3 — health awareness: rank candidate backends with weights based on circuit-breaker state, sliding-window timeout rate, and remaining free quota.

    Degradation sequence: when the default model is rate-limited or its circuit opens, switch in order to same-capability backends, then cross-provider fallback channels (separate account systems to avoid same-source failures), and only then semantic degradation — shrinking context, switching to non-streaming, or returning a templated result with a retry hint rather than an error.

    1. """Async routing: capability filter → task tiering → health awareness → failover with circuit breaking."""
    2. import asyncio
    3. from dataclasses import dataclass, field
    4. @dataclass
    5. class CircuitState:
    6. failures: int = 0
    7. open_until: float = 0.0 # circuit-open deadline (timestamp)
    8. timeout_s: float = 8.0
    9. @property
    10. def available(self) -> bool:
    11. return self.failures < 3
    12. def record(self, ok: bool) -> None:
    13. if ok:
    14. self.failures = max(0, self.failures - 1) # half-open probe on success
    15. else:
    16. self.failures += 1
    17. class Router:
    18. def __init__(self, pool: "BackendPool") -> None:
    19. self.pool = pool
    20. self.health = {name: CircuitState() for name in pool}
    21. def candidates(self, messages: list[dict]) -> list[str]:
    22. need: set[Feature] = {"chat"}
    23. if any(m["role"] == "tool" or m.get("tool_calls") for m in messages):
    24. need.add("tools")
    25. if any(m.get("parts") for m in messages):
    26. need.add("vision")
    27. longest = max((len(m.get("content") or "") for m in messages), default=0)
    28. return [
    29. name for name, b in self.pool.items()
    30. if need <= b.spec.features
    31. and longest <= b.spec.max_input_tokens * 2 # rough estimate: ~2 chars ≈ 1 token
    32. and self.health[name].available
    33. ]
    34. async def complete(self, messages: list[dict]) -> str:
    35. last_err: Exception | None = None
    36. for name in self.candidates(messages):
    37. backend = self.pool[name]
    38. try:
    39. result = await asyncio.wait_for(
    40. backend.complete(messages, backend.spec),
    41. timeout=self.health[name].timeout_s,
    42. )
    43. self.health[name].record(ok=True)
    44. return result
    45. except asyncio.TimeoutError as exc:
    46. last_err = exc
    47. self.health[name].record(ok=False)
    48. raise RuntimeError("all candidate backends are unavailable") from last_err

    Three more engineering notes:

    • Retries can’t be unconditional: retry only on transient errors like timeouts, rate limits, and 5xx, and only when the same request is idempotent; for semantic errors (e.g., failed format validation), feed the error back to the model for a “correction round” rather than retrying as-is.
    • Streaming needs special handling: once partial content has been streamed to the user, you can’t “seamlessly switch” models, so streaming routing must be predictive, or must complete timeout and capability checks before the first token.
    • Sub-agents are no exception: in the agent paradigm, the main model often spawns sub-agents to run in parallel, and the sub-agents’ model selection must also be included in budgeting and auditing — otherwise a single user can amplify call volume many times over.

    5. Budget Layer: Putting a Gate on “Free Quota”

    Govern model calls like a cost-bearing microservice: each call emits a structured usage event containing at least trace_id, tenant, logical model, input/output tokens, cache-hit flag, latency, and status. The token and cache-hit fields must come from the usage info returned by the server; client-side estimates are only for pre-call budgeting and can’t be used for settlement. Logs can be written to object storage for offline analysis, with the specific fields and partitioning strategy depending on the backends you integrate.

    1. """Tenant-level budget gate: quota is shared per tenant, not per single call."""
    2. import time
    3. class TenantBudget:
    4. def __init__(self, cap_per_day: int = 200_000) -> None:
    5. self.cap = cap_per_day
    6. self.used = 0
    7. self.reset_at = time.time() + 86400
    8. def _maybe_reset(self) -> None:
    9. if time.time() >= self.reset_at:
    10. self.used, self.reset_at = 0, time.time() + 86400
    11. def remaining(self) -> int:
    12. self._maybe_reset()
    13. return max(0, self.cap - self.used)
    14. def acquire(self, estimate: int) -> bool:
    15. self._maybe_reset()
    16. if self.used + estimate > self.cap:
    17. return False
    18. self.used += estimate
    19. return True
    20. def settle(self, actual: int, estimated: int) -> None:
    21. self.used = max(0, self.used - estimated + actual) # reconcile with actual usage

    The multiplier on cost often comes from repeated context. System prompts, tool definitions, and project background are usually resent on every call, and input-side tokens can be several times the output side. Targeted measures:

    • Static prefix first: put the system prompt, tool schemas, and codebase summary at the very front of the message to leverage the inference service’s automatic prefix caching.
    • Layered prompts: keep stable instructions in the static prefix, session-level constraints in the system section, and user content last, to prevent instruction injection from overriding system constraints.
    • Request-level caching: the key is determined jointly by the normalized request content, model version, and key sampling parameters, and is enabled only for requests with no randomness and no side effects.
    • Batching: non-real-time tasks like daily-report generation, codebase indexing, and offline labeling go through an asynchronous batch queue and run during off-peak nighttime hours.
    • Context governance: re-rank and deduplicate retrieval results, and apply hierarchical summarization to conversation history based on “relevance + freshness + budget.”

    This budgeting approach also applies to applications deployed on platforms like Baidu AI Cloud: a container platform hosts the inference services and routing gateway, a message queue handles asynchronous tasks, object storage archives usage logs, and logging plus monitoring/alerting services handle observability and threshold notifications.

    6. Evaluation Layer: Choose the Default Model with Data, Not Leaderboards

    Leaderboards measure “average capability”; the business needs “pass rate on my kind of task.” The evaluation system has three layers:

    1. Offline eval set: sampled from real traffic and stratified by task type (by share and difficulty), with at least several hundred cases per category; metrics are task success rate, structured-output pass rate, and tool-call correctness — not subjective scores.
    2. Online shadow comparison: a new model first receives real requests on a side path without returning to users, comparing distribution differences in the results to catch hidden regressions.
    3. Canary and automatic rollback: ramp up by traffic share, using success rate, P95 latency, and cost per task as rollback signals.
    1. """Offline evaluation: turn 'switching models' from an intuitive decision into a data-driven one."""
    2. from dataclasses import dataclass
    3. import json
    4. @dataclass
    5. class CaseResult:
    6. case_id: str
    7. passed: bool
    8. detail: str = ""
    9. def run_eval(router: "Router", cases: list[dict]) -> dict:
    10. results: list[CaseResult] = []
    11. for case in cases:
    12. out = router.complete(case["messages"])
    13. passed = _check(case, out) # rule check / assertion / model review
    14. results.append(CaseResult(case["id"], passed))
    15. total = len(results)
    16. pass_rate = sum(r.passed for r in results) / total
    17. report = {"total": total, "pass_rate": round(pass_rate, 4),
    18. "failures": [r.case_id for r in results if not r.passed]}
    19. with open("eval_report.json", "w") as f:
    20. json.dump(report, f, ensure_ascii=False, indent=2)
    21. return report
    22. # Example: structured-output validation
    23. def _check(case: dict, out: str) -> bool:
    24. try:
    25. parsed = json.loads(out)
    26. except json.JSONDecodeError:
    27. return False
    28. return all(k in parsed for k in case.get("required_keys", []))

    The eval set is itself an asset: it determines how fast you can switch models, and it’s your bargaining chip with providers when free quota tapers off.

    7. Observability Layer: Four Signal Types and One Alerting Pipeline

    • Quality signals: structured-output failure rate, tool-call error rate, user feedback (thumbs up / retry / abandon), and manual spot checks.
    • Cost signals: tokens per task, cache-hit rate, call share across backends, and budget-burn rate.
    • Latency signals: first-token latency and overall latency percentiles; in streaming scenarios, look at P95 rather than the mean.
    • Stability signals: error rates grouped by error type, circuit-breaker trips, and degradation triggers.

    Alerting pipeline: usage metrics and logs → monitoring and alerting rules (e.g., “degradation rate > 5% for 5 minutes,” “single-tenant cost doubles period-over-period”) → on-call notification. Every alert must be bound to a clear remediation action, or it only creates noise.

    8. Launch Checklist and Compliance Baseline

    Before launch:

    • The access layer is unified, with credentials coming from the secret-management service.
    • Routing has at least two levels of degradation, and a failure drill for “pulling the default backend” has been done.
    • Tenant-level budgets and quotas are configured, returning a readable message rather than a 500 when exceeded.
    • The eval set covers the main task types and has a baseline report.
    • Structured output has schema validation and one correction round.
    • Usage logs can be traced to a single request.

    Compliance baseline:

    • Whether the hosted service retains inputs/outputs and whether they’re used for training has been confirmed against the terms of service.
    • The filing/registration form required for self-hosted deployment is confirmed; don’t assume “open source means you can offer it to anyone.”
    • Fields involving personal information have been minimized and de-identified.
    • The end-user side has the necessary model identity labeling, in line with AI-generated content labeling requirements.
    • Tool calls (web, file, command line) have permission boundaries and approval points to prevent prompt injection from causing privilege escalation.

    9. Conclusion: Treat “Default” as a Variable, Not a Constant

    The technical significance of this collaboration isn’t “which model was made default,” but that it puts three long-term trends on the table.

    First, open weights plus hosted subsidies push the marginal price of inference down fast.

    Second, the competition is shifting from “parameter scale” to “architecture efficiency + engineering distribution”: sparse activation, native multimodality, and thinking/non-thinking switching within a single model all point in the same direction — “doing more with fewer active parameters.”

    Third, and most practically for enterprises: models are replaceable; your abstraction layer, budget system, and eval set are the assets.

    Free quota will change, the default will change, and leaderboards will refresh. The only stable thing is the metric “cost per task.” Whoever can complete the same task with fewer tokens and a lower failure rate holds the initiative in the next round of price wars.