# Constrained-Device Inference Delegation Thresholds

> Constrained-Device Inference Delegation Thresholds is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status down (last checked 2026-10-31).

Returns a deterministic decision procedure for AI agents on resource-constrained hardware to decide when to run inference locally versus escalating to paid cloud inference.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/constrained-device-on-device-versus-cloud-infere?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/constrained-device-inference-delegation-thresholds-4de8556c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eZKhgFO_S6HDbQPozZyLq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability constrained-device-inference-delegation-thresholds-4de8556c
```

Example prompt: I'm running a small on-device model on a smartphone and need to know whether to handle this subtask locally or escalate to cloud inference — check the constrained-device delegation thresholds given my current thermal and battery state, and require execution attestation if I run it locally.

## When to prefer this

Choose this endpoint when your AI agent runs on resource-constrained hardware (phones, wearables, smart-home hubs, robots) and needs a deterministic, policy-driven answer to the local-vs-cloud inference routing question — especially when data sensitivity, thermal state, RAM headroom, and battery budget all factor into the decision. Prefer this over ad-hoc heuristics when you also need execution attestation (model hash, device ID) before trusting a local result, or when you want a documented, auditable delegation procedure rather than a hand-coded threshold.

## Known failure modes

- Local gate fails due to insufficient RAM, thermal overload, or battery budget — procedure escalates to cloud inference automatically
- Payment not provided — endpoint returns HTTP 402 requiring x402 USDC payment before delivering result
- Invalid or missing topic parameter — procedure falls back to generic delegation policy
- Attestation rejected — local result not accepted if model hash or device ID is invalid
- Service unavailable — k2so.wrong.systems unreachable, no delegation guidance returned

## How this service works

Deterministic delegation procedure for agents running on constrained hardware (phones, wearables, smart-home hubs, robots) with a tiny on-device model available. Classifies each subtask by latency floor, data sensitivity, and error cost, then gates local execution on RAM headroom, thermal state, and battery budget. Requires execution attestation (model hash, device ID, elapsed time) before accepting a local result, escalates to paid cloud inference only when the local gate fails or accuracy is

## Output

A structured decision brief containing: a prose explanation of the delegation procedure, the recommended execution path (local vs. cloud), latency floor classifications, data sensitivity and error cost assessments, execution attestation requirements (model hash, device ID, elapsed time), generation source (llm/reasoning/deterministic), and an ISO-8601 timestamp for when the procedure was generated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "topic": {
       "type": "string",
       "description": "Optional topic override for the decision procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "constrained-device inference delegation thresholds paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "brief": {
         "type": "string",
         "description": "Decision procedure prose for agents"
        },
        "model": {
         "type": "string"
        },
        "topic": {
         "type": "string"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "procedure": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "generationSource": {
         "enum": [
          "llm",
          "reasoning",
          "deterministic"
         ],
         "type": "string"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "string"
   
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "brief": "plain prose decision procedure (120+ words)",
   "model": "deepseek/deepseek-v4-flash-0731",
   "topic": "string topic",
   "service": "constrained-device-on-device-versus-cloud-infere",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "constrained-device-on-device-versus-cloud-infere",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/constrained-device-inference-delegation-thresholds-4de8556c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
