# Delx Pad Right

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

Right-pads a string with a fill character to a specified target width, returning the padded text and its final width.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/pad-right
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-pad-right-cb68c102
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bsW7dNFRkTfVIA5TjjT9F

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-pad-right-cb68c102 -d '<json body>'
```

Example prompt: Pad the text 'Status' to a width of 20 characters using a dot as the fill character so I can use it in a fixed-width column.

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, pay-per-call string padding operation without shipping any string-formatting library or writing custom code — especially useful in agent pipelines that produce columnar logs or fixed-width text output and want a deterministic, local-only utility with no data retention.

## Known failure modes

- Width less than or equal to current string length returns the original string unmodified
- Non-integer width value causes a validation error
- Missing required fields (text or width) return a 400-level error
- Fill string longer than one character may cause unexpected behavior or an error

## How this service works

Right-pad a string to a target width. Call when you need fixed-width columns for agent logs. Returns padded text and width for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object containing the padded string (with fill characters appended on the right until the target width is reached) and the resulting output width as an integer.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "42   ",
  "width": 5,
  "schema": "delx/util-pad-right/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-pad-right-cb68c102/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)
