# Agent Toolbox Credits Purchase ($20)

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

Purchase $20 USDC worth of API credits for the Agent Toolbox service, receiving an API key loaded with credit balance for subsequent tool calls.

## Facts

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

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-credits-purchase-20-e67c64f3 -d '<json body>'
```

Example prompt: I want to buy $20 of credits on Agent Toolbox so I can start using the image generation, translation, and web-to-Markdown tools — go ahead and make the payment and give me the API key.

## When to prefer this

Use this endpoint when you need to acquire or replenish API credits for the Agent Toolbox suite of tools (image generation, web-to-Markdown, speech-to-text, embeddings, translation, summaries, email checks, exchange rates, DNS lookups). This is the payment/onboarding step — call this before attempting to use any other Agent Toolbox endpoint that requires a Bearer token.

## Known failure modes

- Payment failure via x402 protocol — insufficient funds or unsupported payment method results in 402 error
- Invalid request body — missing required 'input' fields returns 400 validation error
- Network or worker timeout — Cloudflare Worker may return 5xx if overloaded
- Duplicate payment attempts may create multiple keys rather than topping up existing account

## 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 new API key (Bearer token prefixed with 'atb_'), a key ID, the paid amount, any bonus credits applied, and the total credits added to the account (e.g. $5.50 for a $5 purchase with 10% bonus). The key can then be sent as an Authorization: Bearer header on subsequent Agent Toolbox tool 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-credits-purchase-20-e67c64f3/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)
