# Delx Wrap Text

> Delx Wrap Text 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-13).

Hard-wraps a text string to a specified column width, returning structured JSON output for $0.001 USDC per call.

## Facts

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

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-wrap-text-b4fce935 -d '<json body>'
```

Example prompt: Hard-wrap this text to 80 characters wide: 'The quick brown fox jumps over the lazy dog and then continues running across the field into the sunset.'

## When to prefer this

Prefer this endpoint when an AI agent needs deterministic, server-side text wrapping inside a workflow without bundling a text-processing library, managing dependencies, or setting up an API key. Ideal for lightweight formatting steps in pipelines where installing a full NLP or utility package is impractical and pay-per-success billing ($0.001 USDC) is acceptable.

## Known failure modes

- Text exceeds 100,000 character limit — request rejected
- Width value is less than 1 — validation error returned
- Payment not processed — 402 response with payment details
- Malformed JSON body — 400 bad request
- Network timeout on large text payloads

## How this service works

Hard-wrap text to a column width for $0.001 USDC. Use this when an agent needs wrap text inside a workflow without installing a library or managing an API key. Deterministic first-party execution, structured JSON output, no subscription, and payment only for a successful result.

## Output

A structured JSON response containing the input text hard-wrapped at the specified column width, with line breaks inserted at word boundaries to respect the given width constraint.

## 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",
  "lines": 1,
  "width": 80,
  "schema": "delx/wrap-text/v1"
 }
}
```

## More

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