{"uid":"cap_V0lIdeKf4ZQcQMKA2Vehh","slug":"delx-commerce-image-result-contract-check-f7f867cc","name":"Delx Commerce — Image Result Contract Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/image-result-contract-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"result":{"type":"object"},"max_width":{"type":"integer","default":8192,"maximum":32768,"minimum":1},"max_height":{"type":"integer","default":8192,"maximum":32768,"minimum":1},"max_size_bytes":{"type":"integer","default":20971520,"maximum":104857600,"minimum":1}}},"responseSchema":{"type":"json","example":{"gaps":[],"valid":true,"limits":{"max_width":8192,"max_height":8192,"max_size_bytes":20971520},"schema":"delx/util-image-result-contract-check/v1","normalized_receipt":{"url":"https://cdn.example.com/output.webp","width":1024,"height":1024,"sha256":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","size_bytes":245760,"content_type":"image/webp"},"checked_without_fetch":true}},"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_WN8NSrMX24tGrThcSB88r","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 an image generation result object against size and dimension constraints, returning a normalized receipt with metadata and any detected gaps.","exampleAgentPrompt":"Check whether this image result object is valid and within 8192x8192 pixels and 20MB — I need to confirm the dimensions, hash, and content type before accepting the delivery.","exampleUseCases":[{"title":"Validate AI-generated image before payment","prompt":"Before I finalize payment for this image generation job, check if the result object meets the contract — max 4096 pixels wide, 4096 tall, and under 10MB."},{"title":"Quality gate in automated image pipeline","prompt":"I just got back an image result from a generation API — can you validate it against a 1920x1080 max resolution and 5MB size limit, and tell me if there are any gaps or issues?"},{"title":"Normalize image receipt for audit log","prompt":"Run a contract check on this image result and give me the normalized receipt with the sha256 hash, dimensions, file size, and content type so I can log it."}],"resultDescription":"Returns a JSON object indicating whether the image result is valid (true/false), a list of any gaps (constraint violations), the applied limits (max_width, max_height, max_size_bytes), and a normalized receipt containing the image URL, width, height, sha256 hash, size_bytes, and content_type. Also indicates whether the check was performed without fetching the remote file.","failureModes":["Missing or malformed result object returns validation error","Image dimensions or size exceed specified maximums — reported in gaps array","Invalid max_width/max_height/max_size_bytes parameter types cause schema rejection","Result object missing required fields returns gaps with specific missing fields listed","Network or service error returns non-200 response"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify that an image result object returned by an AI image generation service meets specific size and dimension constraints before accepting delivery or triggering payment. It is purpose-built for agent-to-agent commerce workflows using the x402 pay-per-result pattern on Delx Commerce, and provides a normalized receipt with a sha256 hash for auditability — making it ideal when you need tamper-evident verification without re-fetching the image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.930Z","isFirstParty":false,"canonicalSlug":"delx-commerce-image-result-contract-check-f7f867cc"}