# Delx Commerce — Pad String API

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

Pads a text string to a specified character width, returning the padded result via a pay-per-call API on Base/Solana.

## Facts

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

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-commerce-pad-string-api-eeb168ef -d '<json body>'
```

Example prompt: Pad the text 'hello agent world' to a width of 10 characters so it fits neatly in a fixed-width column.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call string padding utility with no signup or subscription, especially in agent workflows that already use x402 USDC micropayments on Base or Solana. Ideal for lightweight text formatting tasks where spinning up a local library is impractical or when working within a pay-per-result agent pipeline.

## Known failure modes

- Text exceeds 100,000 character limit — request rejected
- Width parameter below minimum value of 1 — validation error
- Payment not included or insufficient USDC — 402 Payment Required response
- Malformed JSON body — 400 Bad Request
- Network or blockchain payment verification delay — timeout or retry needed

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the original text, the requested width, and the padded/formatted string result, along with a schema identifier ('delx/pad-string/v1') confirming the response format.

## 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-commerce-pad-string-api-eeb168ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
