# Delx Commerce Image Prompt Linter

> Delx Commerce Image Prompt Linter 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).

Validates and lints an image generation prompt for character count, word count, blocked tokens, and length compliance against a configurable character limit.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/image-prompt-lint?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-image-prompt-linter-535d0107
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rXcWiyAAtOgo-pWoc1ZAb

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-image-prompt-linter-535d0107 -d '<json body>'
```

Example prompt: Can you lint this image prompt and make sure it's clean and under 1200 characters? The prompt is: 'a cinematic wide-angle shot of a futuristic city at dusk, neon lights reflecting on wet pavement, ultra-detailed, 8k resolution, dramatic volumetric lighting'

## When to prefer this

Use this endpoint when you need a fast, cheap, pre-generation quality gate on image prompts — especially in automated pipelines where you want to catch oversized or policy-violating prompts before sending them to an expensive image model. Prefer this over manual string length checks when you also need blocked-token detection and structured issue reporting in one call.

## Known failure modes

- Missing prompt field returns validation error
- Prompt exceeding maximum character limit sets within_limit to false and recommend_trim to true
- Blocked tokens detected populate the blocked_tokens array and may set ok to false
- Non-integer max_chars value causes input schema error
- Empty prompt string may return zero counts with no issues

## 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 with: a boolean ok status, total character count (chars), word count (words), a list of detected issues, the schema identifier, the configured max_chars limit, a within_limit boolean, a list of blocked_tokens found in the prompt, and a recommend_trim boolean indicating whether the prompt should be shortened.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Input field: prompt."
  },
  "max_chars": {
   "type": "integer",
   "description": "Input field: max chars."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "chars": 53,
  "words": 8,
  "issues": [],
  "schema": "delx/util-image-prompt-lint/v1",
  "max_chars": 1200,
  "within_limit": true,
  "blocked_tokens": [],
  "recommend_trim": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-image-prompt-linter-535d0107/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)
