# FastX402 ASCII Art Box Generator

> FastX402 ASCII Art Box Generator is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Wraps text in a styled ASCII art box (single, double, or rounded border) and returns the rendered box string with dimensions

## Facts

- Endpoint: GET https://fastx402.tools/ascii-art-box?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/fastx402-ascii-art-box-generator-85475e46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iZgVzQYWTBAz1roEMS3z1

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 fastx402-ascii-art-box-generator-85475e46
```

Example prompt: Can you wrap the text 'Hello
World' in a rounded ASCII art box with padding of 2?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use ASCII art box rendered server-side without managing libraries or code. It's ideal for agents generating terminal UI, README decorations, or formatted CLI output, especially when no local text-box library is available. The micro-payment model ($0.001 USDC) makes it cost-effective for occasional use without API key setup.

## Known failure modes

- Missing required 'text' or 'style' query parameter returns an error
- Invalid 'style' value (not 'single', 'double', or 'rounded') causes a validation error
- 'padding' value outside 0-10 range may be rejected or clamped
- Payment failure (insufficient USDC balance) blocks the request with HTTP 402
- Empty string for 'text' may return a degenerate or minimal box

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing the rendered ASCII art box as a string (with newlines), plus the integer width and height of the box in characters. For example: {"box":"┌───────┐\n│ Hello │\n└───────┘","width":9,"height":3}.

## 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",
     "required": [
      "text",
      "style"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text content to wrap in a box (supports newlines)"
      },
      "style": {
       "type": "string",
       "description": "Border style: single, double, or rounded"
      },
      "padding": {
       "type": "string",
       "description": "Optional horizontal padding (0-10, default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "box": {
       "type": "string"
      },
      "width": {
       "type": "integer"
      },
      "height": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "box": "┌───────┐\n│ Hello │\n│ World │\n└───────┘",
  "width": 9,
  "height": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-ascii-art-box-generator-85475e46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
