{"uid":"cap_ldUEIA1--b0pf3e6MhPeh","slug":"webp-header-inspector-5f724758","name":"WebP Header Inspector","description":"Read a WebP's width, height, lossy/lossless/extended format, alpha and animation flags from its first 30 bytes.","url":"https://file-formats.x402tookit.com/webp-info?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["hex"],"properties":{"hex":{"type":"string","description":"First 30 or more bytes of the WebP as hex (up to 512 bytes)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"alpha":{"type":["boolean","null"]},"width":{"type":["null","number"]},"format":{"type":["null","string"]},"height":{"type":["null","number"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"riffSize":{"type":["null","number"]},"animation":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"bytesExamined":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dp1FrvGpHfyEGaE9sR88T","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses the first 30 bytes of a WebP file (provided as hex) to extract width, height, format variant (lossy/lossless/extended), and alpha/animation flags.","exampleAgentPrompt":"Can you inspect the first 30 bytes of this WebP file for me — here's the hex: 52494646... — and tell me the image dimensions, whether it's lossy or lossless, and if it has an alpha channel or animation?","exampleUseCases":[{"title":"Validate uploaded WebP before processing","prompt":"Before we pass this user-uploaded file to our image pipeline, check these first 30 bytes in hex to confirm it's a valid WebP and tell me its width, height, and whether it's lossy or lossless: 52494646a4030000574542505650384c..."},{"title":"Detect animated WebP in content moderation","prompt":"I've got a WebP file from a user submission and I need to know if it's animated before we allow it — here are its first 30 bytes as hex, can you check the animation flag and also give me its dimensions?"},{"title":"Audit image assets for alpha transparency","prompt":"I'm going through a batch of WebP assets and need to know which ones carry an alpha channel — can you parse this WebP header hex and tell me if the alpha flag is set, plus the format type and dimensions?"}],"resultDescription":"Returns a structured object with image width and height, the WebP format variant (lossy, lossless, or extended), boolean alpha and animation flags, RIFF size, number of bytes examined, a human-readable summary and verdict, and any reasons or warnings flagged during parsing.","failureModes":["Insufficient hex bytes provided (fewer than 30 bytes) — returns error or null fields","Invalid or non-WebP hex input — verdict indicates invalid or unrecognized format","Hex string contains non-hex characters — parse error returned","Extended WebP features beyond inspected bytes cannot be confirmed — notChecked array populated","Truncated or corrupted header — width/height may be null with explanatory reasons"],"whenToPreferThis":"Use this endpoint when you need lightweight, fast WebP header metadata (dimensions, format, alpha, animation) without decoding or uploading the full image. Ideal for pre-validation pipelines, content moderation checks, or asset auditing where only the file's first bytes are available. Prefer over full image decoders when bandwidth or latency is a concern and only structural metadata is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:13:47.382Z","isFirstParty":false,"canonicalSlug":"webp-header-inspector-5f724758"}