{"uid":"cap_FDI4bcC4mMqPWol8bz-Ab","slug":"api-x402node-dev-12f8f4b7","name":"Image Info / Dimensions API","description":"Get dimensions and format for an image URL. Returns width, height, type (jpeg/png/gif/webp/bmp/tiff/heic/avif), aspect ratio, file size, content-type. Use url param Built for AI agents validating uploads, generating srcsets, planning layouts.","url":"https://api.x402node.dev/image/info","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":["url"],"properties":{"url":{"type":"string","description":"Target URL (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lCLDA-T9qOg3dkZ3pAUjr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","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, file size, and content-type for a given image URL","exampleAgentPrompt":"Can you check the dimensions, format, and file size of this image for me? https://example.com/photos/hero-banner.jpg — I need to know if it's wide enough for a full-width layout and whether it's a JPEG or WebP.","exampleUseCases":null,"resultDescription":"Returns an object with the image's pixel width and height, format type (jpeg/png/gif/webp/bmp/tiff/heic/avif), aspect ratio, file size in bytes, and HTTP content-type header value.","failureModes":["URL is unreachable or returns a non-200 HTTP status — endpoint returns an error indicating fetch failure","URL points to a non-image resource — returns an error or null type fields","Image format is unrecognized or corrupted — returns an error or partial metadata","Request times out due to slow remote server — returns a timeout error","Malformed or missing URL parameter — returns a validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to inspect remote image properties without downloading the full file manually, especially for validating uploads, planning responsive srcsets, or checking format compatibility before processing. Prefer this over manual HTTP HEAD requests when you need parsed pixel dimensions and aspect ratio in addition to content-type.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:56:42.287Z","isFirstParty":false}