{"uid":"cap_qC5s6toqOJgNKzowaLMcE","slug":"image-dimensions-806ac79b","name":"image-dimensions","description":"Image dimensions from the first bytes of an image URL: width, height, format (PNG, JPEG, GIF, WebP, BMP, ICO, SVG), aspect ratio, orientation, byte size from headers and content type. Reads at most 64 KB so it is fast even for huge images. Validate og:image sizes, thumbnails and uploads. $0.01 per image.","url":"https://intel.rallylive.ca/dev/image-size","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9y8e5qiT7BbfHNfu6ffxa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns width, height, format, aspect ratio, orientation, and byte size of an image from its URL by reading at most 64 KB","exampleAgentPrompt":"What are the width, height, format, and aspect ratio of the image at https://example.com/hero.jpg?","exampleUseCases":[{"title":"Validate og:image before publishing","prompt":"Check whether the og:image at https://myblog.com/images/post-thumbnail.png is at least 1200x630 pixels and tell me its format and aspect ratio."},{"title":"Inspect uploaded avatar dimensions","prompt":"I just received an avatar upload at https://cdn.myapp.com/uploads/user42/avatar.webp — what are its width, height, and file size from the headers?"},{"title":"Audit product image sizes for an e-commerce site","prompt":"Can you tell me the dimensions, format, and orientation of the product image at https://shop.example.com/products/sneaker-blue.jpeg so I can check it meets our 800x800 square requirement?"}],"resultDescription":"Returns the image's pixel width and height, file format (PNG, JPEG, GIF, WebP, BMP, ICO, or SVG), aspect ratio, orientation (portrait/landscape/square), byte size from HTTP headers, and content type — all extracted from at most the first 64 KB of the image.","failureModes":["URL is unreachable or returns a non-2xx status — error with HTTP status code","URL points to a non-image resource — format undetected or error returned","Image is served without Content-Length header — byte size may be unavailable","SVG or unusual format may not yield pixel dimensions","Very large images that obscure dimensions beyond 64 KB may return incomplete data"],"whenToPreferThis":"Use this endpoint when you need to quickly inspect image metadata (dimensions, format, aspect ratio) from a URL without fully downloading the image. Ideal for validating og:image tags, thumbnail sizing rules, or upload constraints. Prefer this over a full image download approach when bandwidth and latency matter, or when you only need metadata rather than pixel data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:11:40.696Z","isFirstParty":false}