# Delx Commerce — Wrap Text API

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

Word-wraps or pads a block of text to a specified column width, returning the wrapped lines and metadata.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/wrap-text?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-wrap-text-api-4d7ed969
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UGNjUBN1gyaza9shFMha5

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-wrap-text-api-4d7ed969 -d '<json body>'
```

Example prompt: Can you word-wrap this article summary to 72 characters wide so it fits neatly in our terminal log output?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use, no-signup text wrapping operation with verifiable delivery and microtransaction pricing in USDC. It is ideal for agents that need deterministic column-width formatting without setting up a subscription or managing API keys, especially in agentic pipelines that support x402 payment flows on Base or Solana.

## Known failure modes

- Text exceeds 100,000 character limit — request rejected
- Width value less than 1 — validation error
- Malformed JSON body — 400 bad request
- Payment not provided or insufficient USDC — 402 payment required
- Service unavailable — 503 response

## How this service works

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

## Output

Returns a JSON object containing the wrapped text, the number of resulting lines, the applied column width, and a schema identifier ('delx/wrap-text/v1').

## 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-commerce-wrap-text-api-4d7ed969/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)
