# Clarity Inference Gateway Account Top-Up

> Clarity Inference Gateway Account Top-Up is a paid API for AI agents from desktop-o99r0sf.tail935fba.ts.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Top up the balance on a Clarity AI inference gateway account, crediting USDC to fund subsequent pay-per-request AI model calls.

## Facts

- Endpoint: GET https://desktop-o99r0sf.tail935fba.ts.net/v1/x402/topup?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clarity-inference-gateway-account-top-up-9a5dcc9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w9POoVylPKz0cRFfJVAtw

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 clarity-inference-gateway-account-top-up-9a5dcc9e
```

Example prompt: Top up my Clarity inference gateway account so I have credits to run AI model calls — go ahead and trigger the top-up now.

## When to prefer this

Use this endpoint when you need to add USDC credits to a Clarity inference gateway account on the Base network (eip155:8453). Prefer it over manual wallet transfers when you want a single API call to both pay and credit the account atomically. Best suited for agents or pipelines that need to auto-replenish inference budgets programmatically without a dashboard.

## Known failure modes

- Payment not completed — x402 payment challenge not fulfilled, returning 402 Payment Required
- Invalid HTTP method — only POST, PUT, or PATCH accepted; GET returns an error
- Malformed body type — bodyType must be one of json, form-data, or text
- Insufficient USDC — wallet lacks funds to cover the 0.001 USDC per-call charge
- Network mismatch — payment made on wrong chain (must be eip155:8453 / Base)
- Service unavailable — Tailscale-hosted endpoint unreachable

## How this service works

Clarity — One OpenAI-compatible inference gateway. Cloud providers and local models, one API key, one balance, automatic failover.

## Output

Returns a JSON object containing the account key ID, a (redacted) secret key, the payment scheme (exact), the network identifier (eip155:8453, i.e. Base), the current balance in USD, and the amount credited in USD from this top-up.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "example-key-id",
  "skey": "gw_example_redacted",
  "scheme": "exact",
  "network": "eip155:8453",
  "balance_usd": 0.001,
  "credited_usd": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clarity-inference-gateway-account-top-up-9a5dcc9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from desktop-o99r0sf.tail935fba.ts.net](https://www.zero.xyz/host/desktop-o99r0sf.tail935fba.ts.net/llms.txt)
