# Delx Commerce JSON Minify

> Delx Commerce JSON Minify 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).

Strips whitespace and minifies a JSON string to its most compact form, paid per-call via USDC on Base or Solana.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-minify?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-json-minify-d13e854a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TtM4_v0zFPsHsZRn-HPQh

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-json-minify-d13e854a -d '<json body>'
```

Example prompt: Can you minify this JSON for me? Take '{  "agent":  "delx",  "ready":  true  }' and strip all the whitespace so it's as compact as possible.

## When to prefer this

Choose this endpoint when you need a simple, no-signup, pay-per-use JSON minification with verifiable delivery and micropayment billing via USDC. It is ideal for AI agents that need to process occasional JSON compaction tasks without committing to a subscription or managing API keys. It is less suited for bulk batch processing of thousands of JSON documents where a local library would be more cost-effective.

## Known failure modes

- Invalid or malformed JSON input returns an error — the endpoint may reject non-parseable text
- Empty or missing json_text field may result in a 400-level error
- Payment failure or insufficient USDC balance will result in a 402 Payment Required response
- Extremely large JSON payloads may be rejected or time out

## 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 compact, whitespace-stripped JSON string in the 'text' field of the response, along with a schema identifier ('delx/json-minify/v1'). The output is semantically equivalent to the input but with all unnecessary whitespace removed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json_text": {
   "type": "string",
   "description": "Serialized JSON text to inspect or reformat."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "{\"agent\":\"delx\",\"ready\":true}",
  "schema": "delx/json-minify/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-minify-d13e854a/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)
