# Browser-Task x402 Payment Decision Procedure

> Browser-Task x402 Payment Decision Procedure is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns a structured decision procedure for agents to decide whether to pay or abort when hitting a 402 paywall mid-browser-task, including threshold logic, caps, and kill criteria.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/browser-task-x402-payment-decision-when-an-agent
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/browser-task-x402-payment-decision-procedure-30786312
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fs-ionxuc6CecLNrVDkLf

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 browser-task-x402-payment-decision-procedure-30786312
```

Example prompt: I need a clear decision procedure for when my browser-automation agent hits a 402 paywall mid-task — give me the pay-vs-abort logic with task-value thresholds, per-task caps, session budget rules, artifact verification steps, and kill criteria.

## When to prefer this

Use this endpoint when an autonomous browser agent needs a codified, blunt decision policy for x402 payment gates encountered mid-task — especially when you need threshold logic, budget caps, and kill criteria rather than generic payment advice. Prefer it over manual policy definition when you want a ready-to-use procedure generated on-demand, including artifact verification and abort conditions.

## Known failure modes

- Service unavailable or handler error — ok:false returned with no brief
- Invalid or unsupported HTTP method — schema rejects non-GET/HEAD/DELETE
- Topic override ignored or misapplied if malformed
- LLM generation failure — generationSource may fall back or return empty brief
- Payment not processed — 402 returned if x402 payment header missing or rejected

## How this service works

Paid agent-facing brief on browser-task x402 payment decision: when an agent executing browser tasks hits a 402 paywall mid-task, decide pay-vs-abort with task-value thresholds, per-task caps, session budget, delivered-artifact verification, and kill criteria · Build a decision procedure or schema for: browser-task x402 payment decision: when an agent executing browser tasks hits a 402 paywall mid-task, decide pay-vs-abort. Blunt decision procedure, not marketing.

## Output

A structured decision procedure (prose brief and/or schema) covering: conditions under which the agent should pay vs abort a 402, task-value threshold comparisons, per-task and session-level payment caps, delivered-artifact verification steps, and kill criteria for runaway payment scenarios. Includes metadata such as generation source (llm/reasoning/deterministic), model used, and ISO-8601 timestamp.

## 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": "browser-task x402 payment decision: when an agent executing browser ta 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": {
         
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/browser-task-x402-payment-decision-procedure-30786312/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so-8080.on.ascii.dev](https://www.zero.xyz/host/k2so-8080.on.ascii.dev/llms.txt)
