# Delx String Pad

> Delx String Pad is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-21).

Pads a string to a target width by prepending or appending a fill character, returning deterministic JSON output

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/string-pad?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-string-pad-4a516741
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Fm-DmTc9d9RM0QrMEvAb

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 delx-string-pad-4a516741 -d '<json body>'
```

Example prompt: Pad the text 'hello' to a width of 20 characters using a dash as the fill character on the right side.

## When to prefer this

Choose this endpoint when you need a deterministic, stateless, micro-cost string padding operation without setting up local code — especially useful in agent pipelines doing text formatting, column alignment, or preflight string normalization where consistent fixed-width output is required. Prefer over local code when the agent environment lacks direct code execution or when you want auditable, reproducible micro-utility calls via x402.

## Known failure modes

- Width smaller than or equal to input string length — string returned unchanged or error returned
- Fill character not a single character — may cause validation error
- Missing required fields (text or width) — API returns error response
- Non-integer width value — schema validation failure
- x402 payment failure — 402 response if USDC payment is not processed

## How this service works

Pad a string to a target width with a fill character — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted…

## Output

A JSON object containing the padded string, where the input text has been extended to the specified width using the fill character on the requested side (left, right, or both). Output is deterministic and stateless.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fill": {
   "type": "string",
   "description": "Input field: fill."
  },
  "side": {
   "type": "string",
   "description": "Input field: side."
  },
  "text": {
   "type": "string",
   "description": "Input field: text."
  },
  "width": {
   "type": "integer",
   "description": "Input field: width."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fill": "0",
  "side": "left",
  "text": "00042",
  "width": 5,
  "schema": "delx/util-string-pad/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-string-pad-4a516741/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
