# YourAITools Credits $1 Top-Up

> YourAITools Credits $1 Top-Up is a paid API for AI agents from credits.agentgate.workers.dev, paid per call via x402, $1/call, status unknown (last checked 2026-10-23).

Purchases a $1 prepaid credit pack for the YourAITools x402 agent API suite, minting or topping up an API key usable across PayGuard, TokenVerdict, SignCheck, WebRead, InjectScan, DomainCheck, PkgGuard, StackDetect, and AgentGate routes.

## Facts

- Endpoint: GET https://credits.agentgate.workers.dev/v1/topup/1?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/youraitools-credits-1-top-up-178a9b85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KQFjkHj5pkBnUz1qpluIE

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 youraitools-credits-1-top-up-178a9b85
```

Example prompt: Buy me a $1 prepaid credit pack for the YourAITools agent APIs so I get an API key I can use as a Bearer token across their security and web-reading routes without paying per call each time.

## When to prefer this

Choose this endpoint when an AI agent needs to pre-fund access to the YourAITools suite (PayGuard, TokenVerdict, SignCheck, WebRead, InjectScan, DomainCheck, PkgGuard, StackDetect, AgentGate) in a single $1 payment rather than executing individual on-chain micro-payments per API call. Ideal for agents making multiple calls across YourAITools routes in a session, where the overhead of per-call x402 payments is undesirable. Prefer the $5 sibling endpoint if volume warrants the 10% bonus.

## Known failure modes

- Payment not received or insufficient USDC — top-up does not complete, no key minted
- x402 payment protocol error — HTTP 402 returned if payment handshake fails
- Invalid or malformed request — HTTP 400 returned, no charge applied
- Service unavailable on Cloudflare Workers — HTTP 5xx, no charge applied
- Key already exists but balance not reflected — potential race condition in credit ledger

## How this service works

Prepaid credits for the YourAITools x402 agent APIs (PayGuard, TokenVerdict, SignCheck, WebRead, InjectScan, DomainCheck, PkgGuard, StackDetect, AgentGate). One x402 payment ($1, or $5 with a 10% bonus) mints an API key; send it as Authorization: Bearer <key> to any of those paid routes and each call debits its normal price, with no per-call on-chain payment. Credits are prepaid usage of the YourAITools APIs only, priced in USD at each route's normal per-call price. They are not money, not a token or investment, have no cash value, cannot be withdrawn and are not refundable; a failed call (HTTP 400 or higher) is not charged. Prices of individual routes can change; the balance does not expire while the service runs. Keep the key secret: whoever holds it can spend the credits.

## Output

Returns a JSON object confirming the top-up: the pack identifier ('1' for the $1 pack), a boolean topped_up flag, the new total balance in USD (e.g. '1.25'), and the amount credited (e.g. '1.00'). The API key is delivered as part of the x402 payment flow and should be stored securely for use as Authorization: Bearer <key> on subsequent YourAITools API calls.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "description": "Search intents: top up api credits, add api balance, prepaid api top up, usdc top up, x402 credits, agent api balance"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "pack": {
       "type": "string"
      },
      "topped_up": {
       "type": "boolean"
      },
      "balance_usd": {
       "type": "string"
      },
      "credited_usd": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pack": "1",
  "topped_up": true,
  "balance_usd": "1.25",
  "credited_usd": "1.00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/youraitools-credits-1-top-up-178a9b85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from credits.agentgate.workers.dev](https://www.zero.xyz/host/credits.agentgate.workers.dev/llms.txt)
