{"uid":"cap_xeNGMBTVNZAs_T9LlcDLv","slug":"delx-image-prompt-lint-6cd57a9e","name":"Delx Image Prompt Lint","description":"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…","url":"https://api.delx.ai/api/v1/x402/image-prompt-lint","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Input field: prompt."},"max_chars":{"type":"integer","description":"Input field: max chars."}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yavz3sxGIxA8qGiAnscej","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a text-to-image prompt for character length and policy token violations before submitting it to a generative image API","exampleAgentPrompt":"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'?","exampleUseCases":[{"title":"Preflight check before paid image generation","prompt":"Before spending credits on image generation, lint this prompt for any policy violations and make sure it's under 400 characters: 'a fantasy forest with glowing mushrooms and a silver dragon perched on an ancient stone altar at dusk'."},{"title":"Automated prompt pipeline quality gate","prompt":"I'm running a batch of user-submitted image prompts through my pipeline — lint this one for banned tokens and check it against a 300-character max before it hits the model: 'cyberpunk city street at night with neon signs and rain reflections'."},{"title":"Content moderation preflight for user submissions","prompt":"A user submitted this image prompt on my platform — can you lint it to check for policy violations and verify it's within 600 characters before I allow it through: 'vintage oil painting style portrait of a medieval knight in full armor holding a torch'?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:37:57.776Z","isFirstParty":false}