# Delx Pad String

> Delx Pad String 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-17).

Pads a string to a specified width with a fill character, returning the padded result with applied width metadata

## Facts

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

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-string-d802a61a -d '<json body>'
```

Example prompt: Pad the string 'INVOICE-2024' to a width of 30 characters so it lines up with the other fields in my fixed-width receipt output.

## When to prefer this

Choose this endpoint when you need a simple, deterministic, first-party string padding operation with no API key, no subscription, and predictable per-call micropayment pricing. Ideal for agents building fixed-width logs, receipt lines, or aligned CSV fields where local string manipulation is not available or not desired in the agent runtime. Preferred over generic LLM string formatting when exact, reproducible padding behavior is required.

## Known failure modes

- Width below minimum (1) returns a structured validation error with no charge
- Text exceeding 100,000 characters is rejected with a validation error
- Missing required fields return structured validation errors at no cost
- Payment failure via x402 results in a 402 response before processing
- Invalid integer type for width returns a validation error

## How this service works

Pad a string to width. Use for fixed-width logs, CSV alignment, or receipt fields that need left/right padding. Returns the padded string with the applied width and fill character. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

Returns a JSON object containing the padded string, the applied width, and the fill character used. The padded string has been extended to the requested width using the specified (or default) fill character, aligned left or right as configured.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 100000,
   "description": "Primary text input (max 100k chars). Processed first-party; not retained as a dataset."
  },
  "width": {
   "type": "integer",
   "minimum": 1,
   "description": "Optional pad/wrap width when the tool supports it."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "hello agent world",
  "width": 10,
  "schema": "delx/pad-string/v1"
 }
}
```

## More

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