# Agent Toolbox Credit Purchase ($5)

> Agent Toolbox Credit Purchase ($5) is a paid API for AI agents from agent-toolbox.zafermemon87.workers.dev, paid per call via x402, $5/call, status unknown (last checked 2026-10-30).

Purchase $5 of API credits (with a $0.50 bonus) for the Agent Toolbox service, returning a Bearer API key loaded with $5.50 in credits

## Facts

- Endpoint: POST https://agent-toolbox.zafermemon87.workers.dev/v1/credits/5?utm_source=zero.xyz
- Price: $5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-toolbox-credit-purchase-5-f83da8e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__X0JTIUiFLEDqxPxWnpco

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 agent-toolbox-credit-purchase-5-f83da8e1 -d '<json body>'
```

Example prompt: Buy me $5 of Agent Toolbox credits so I can use the image generation, translation, and other tools — I'll pay with x402 and need the API key back.

## When to prefer this

Use this endpoint when you need to acquire an Agent Toolbox API key and fund it with credits before making any tool calls (image generation, translation, summarization, etc.). This is the entry-point / onboarding endpoint for the entire Agent Toolbox service. It offers a 10% bonus ($0.50 on a $5 purchase) compared to building your own credit system.

## Known failure modes

- Payment failure via x402 if the wallet has insufficient USDC funds
- Invalid or missing x402 payment header returns a 402 Payment Required error
- Network timeout on the Cloudflare Worker endpoint
- Duplicate payment detection may reject retried requests

## How this service works

Everyday tools for AI agents, paid per call with x402: image generation, web pages and documents to Markdown, speech to text, embeddings, translation, summaries, email checks, exchange rates, DNS and domain records.

## Output

Returns a JSON object containing a new API key (prefixed with 'atb_'), the key's ID, the paid amount ($5 USD), a bonus amount ($0.50 USD), total credits added ($5.50), and instructions on how to check the balance. The key is used as a Bearer token on all subsequent Agent Toolbox and MCP 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "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": {
  "key": "atb_6f1c0e9a4b2d7c8e5f3a1b0c9d8e7f6a5b4c3d2e1f0a9b8c",
  "plain": "New API key with $5.50 of credits. Send it as Authorization: Bearer atb_... on any tool or MCP call.",
  "key_id": "3f2a91c07d5e",
  "balance": "GET /account with the key",
  "paid_usd": 5,
  "bonus_usd": 0.5,
  "credits_added_usd": 5.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-toolbox-credit-purchase-5-f83da8e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-toolbox.zafermemon87.workers.dev](https://www.zero.xyz/host/agent-toolbox.zafermemon87.workers.dev/llms.txt)
