# YourAITools Credits Top-Up ($5 USDC)

> YourAITools Credits Top-Up ($5 USDC) is a paid API for AI agents from api.youraitools.co, paid per call via x402, $5/call, status unknown (last checked 2026-10-23).

Adds $5 USD worth of credits to a YourAITools account balance, paid via x402 in USDC on Base or Solana.

## Facts

- Endpoint: GET https://api.youraitools.co/credits/v1/topup/5?utm_source=zero.xyz
- Price: $5/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-top-up-5-usdc-005599bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Prf50hEOzhJWWFPuRikjz

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-top-up-5-usdc-005599bb
```

Example prompt: Top up my YourAITools account with the $5 credit pack — pay using USDC via x402.

## When to prefer this

Use this endpoint when an AI agent or user needs to fund a YourAITools account balance with exactly $5 USDC via the x402 payment protocol on Base or Solana. It is the only standard credit top-up mechanism for accessing the YourAITools AI directory and its listed APIs. Prefer this over manual top-up flows when automating agent self-funding pipelines.

## Known failure modes

- Payment not received or x402 handshake fails — top-up not applied
- Insufficient USDC balance in paying wallet — transaction rejected
- Network or chain mismatch (wrong chain for USDC payment) — payment not recognized
- API service unavailable — HTTP 500 or timeout with no credit applied
- Duplicate payment attempt within short window — may result in double charge or rejection

## How this service works

Top up an existing YourAITools credits key: one x402 payment of $5 USDC adds $5.50 of credits ($0.50 bonus). Send the key as Authorization: Bearer <key>. Prepaid API usage only, not refundable.

## Output

Returns a JSON object confirming the top-up: the pack size purchased ('5'), a boolean indicating success (topped_up: true), the new total balance in USD (e.g. '$5.75'), and the amount actually credited in USD (e.g. '$5.50').

## 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": "5",
  "topped_up": true,
  "balance_usd": "5.75",
  "credited_usd": "5.50"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/youraitools-credits-top-up-5-usdc-005599bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.youraitools.co](https://www.zero.xyz/host/api.youraitools.co/llms.txt)
