{"uid":"cap_X62F5TVe7nH9j8-uIQ-jj","slug":"image-result-contract-check-4b1a5bf7","name":"Image Result Contract Check","description":"Validate caller-supplied image delivery metadata before accepting an agent purchase. Checks HTTPS artifact URL, SHA-256 shape, supported MIME type, byte ceiling, and dimension ceilings without fetching or generating media. Returns explicit contract gaps and a normalized receipt for 0.001 USDC via x402 on Base; local-only and safe while generation refunds are pending.","url":"https://api.delx.ai/api/v1/x402/image-result-contract-check","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_2rA4G4459XVfIDDf31qCB","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 caller-supplied image delivery metadata (URL, hash, MIME type, size, dimensions) against a contract without fetching or generating any media, returning contract gaps and a normalized receipt.","exampleAgentPrompt":"Before I accept this image purchase, can you check the image result object against the contract — validate the HTTPS URL, SHA-256 shape, MIME type, and make sure it's under 20 MB, 8192px wide, and 8192px tall?","exampleUseCases":[{"title":"Pre-purchase image artifact screening","prompt":"I have an image result from a generation agent and I need to verify its metadata before accepting the purchase — check the HTTPS URL, SHA-256, MIME type, and confirm it's under 20971520 bytes with max dimensions of 4096 by 4096 pixels."},{"title":"Strict dimension ceiling enforcement","prompt":"Can you validate this image delivery result to make sure it doesn't exceed 1920 pixels wide and 1080 pixels tall, the URL is HTTPS, and the file size stays under 5242880 bytes? I need to know any contract gaps before approving."},{"title":"Agent pipeline compliance gate","prompt":"Before my agent pipeline settles this image result, run a contract check on it — I want to verify the artifact URL scheme, hash format, supported MIME type, and that it's within 32768 by 32768 pixels and under 104857600 bytes, and get a normalized receipt back."}],"resultDescription":"Returns a list of explicit contract gaps (e.g. invalid URL scheme, unsupported MIME type, hash shape mismatch, size or dimension ceiling exceeded) along with a normalized receipt confirming the validated metadata fields. No media is fetched or generated; the check is purely local against the supplied metadata.","failureModes":["Missing or malformed 'result' object returns validation errors listing absent fields","Non-HTTPS artifact URL flagged as a contract gap","SHA-256 hash in unexpected format triggers hash shape error","Unsupported MIME type causes MIME contract gap","Byte size exceeding max_size_bytes (up to 104857600) returns size ceiling violation","Width or height exceeding max_width or max_height (up to 32768) returns dimension ceiling violation","Payment failure via x402 prevents receipt from being issued"],"whenToPreferThis":"Use this endpoint when an AI agent needs to screen an image delivery result for contract compliance before accepting or settling a purchase, without actually downloading or generating any media. Prefer it over generic schema validators when you need explicit contract-gap reporting on image-specific fields (URL scheme, SHA-256 shape, MIME type, byte ceiling, dimension ceilings) and a normalized receipt. It is local-only and safe to call during pending refund states.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:17:32.257Z","isFirstParty":false}