# Delx Image Prompt Lint

> Delx Image Prompt Lint 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-14).

Validates a text-to-image prompt for character length and policy token violations before submitting it to a generative image API

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/image-prompt-lint
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-image-prompt-lint-6cd57a9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xeNGMBTVNZAs_T9LlcDLv

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-image-prompt-lint-6cd57a9e -d '<json body>'
```

Example prompt: Before I submit this to the image generator, can you lint this prompt for policy issues and check it against a 500-character limit: 'a hyper-realistic portrait of an astronaut floating above Earth at golden hour, ultra-detailed, 8k, cinematic lighting'?

## When to prefer this

Use this endpoint as a cheap ($0.001 USDC) preflight step before calling any paid text-to-image generation API, especially when you want to catch policy violations or length overruns before spending more expensive generation credits. Prefer it over client-side string checks when you need a deterministic, machine-readable policy-token screen that can be logged or audited. It is stateless and idempotent, making it safe to call repeatedly in automated pipelines.

## Known failure modes

- Prompt field missing — returns error indicating required field absent
- max_chars not provided — may use a default limit or return error
- Prompt exceeds internal size cap — returns rejection before policy check
- Payment not settled via x402 — request blocked with 402 response
- Malformed JSON body — returns 400 bad request

## How this service works

Lint a text-to-image prompt for length and basic policy tokens before paying — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes…

## Output

Returns deterministic JSON indicating whether the prompt passes or fails length validation against the specified max_chars limit, plus a list of any flagged policy tokens found in the prompt text, character count, and advisory lint status fields.

## 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-image-prompt-lint-6cd57a9e/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)
