{"uid":"cap_-35YKVlX8JMBUOd7piEfj","slug":"saylor-innovations-media-aspect-ratio-calculator-7012f53f","name":"Saylor Innovations Media Aspect Ratio Calculator","description":"Aspect ratio calculator - reduce width and height to a ratio and orientation","url":"https://saylorinnovations.com/api/media/aspect?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":["width","height"],"properties":{"width":{"type":"string","description":"required positive pixel or unit width (query)"},"height":{"type":"string","description":"required positive pixel or unit height (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["width","height","aspect_ratio","orientation","scope_note"],"properties":{"width":{"type":"number","description":"Width"},"height":{"type":"number","description":"Height"},"formula":{"type":"string","description":"Formula used for the calculation"},"scope_note":{"type":"string","description":"What this data covers and what it leaves out"},"orientation":{"type":"string"},"aspect_ratio":{"type":"string","description":"Aspect ratio"},"aspect_ratio_decimal":{"type":"number","description":"Aspect ratio decimal"}}}}}}},"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_VaYkInuYXHMmurKHvVyyz","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":"Calculates and reduces image or video dimensions to their simplest aspect ratio and determines orientation (landscape, portrait, or square)","exampleAgentPrompt":"What's the simplified aspect ratio and orientation for a 1920 by 1080 image?","exampleUseCases":[{"title":"Video format compliance check","prompt":"I'm uploading a 1280x720 video — what aspect ratio does that reduce to, and is it landscape or portrait?"},{"title":"Responsive design breakpoint planning","prompt":"Can you figure out the simplified ratio for a 2560 by 1080 ultrawide display resolution?"},{"title":"Social media thumbnail sizing","prompt":"I have a thumbnail that's 1200 pixels wide and 630 pixels tall — what's the exact aspect ratio and is it landscape?"}],"resultDescription":"Returns the original width and height, the simplified aspect ratio as a string (e.g. '16:9'), the decimal equivalent of the ratio, the orientation (landscape, portrait, or square), the formula used for the GCD reduction, and a scope note explaining what the calculation covers and excludes.","failureModes":["Missing width or height query parameter returns an error","Non-numeric or negative values for width/height cause validation failure","Zero values may cause division-by-zero errors","Payment not fulfilled (x402 protocol) results in 402 response blocking access"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable, server-side computation of aspect ratio and orientation from raw pixel or unit dimensions — especially useful in media pipelines, UI layout tools, or content validators where you need the canonical reduced ratio (e.g. 16:9 not 1920:1080) plus orientation classification in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:41:59.241Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-media-aspect-ratio-calculator-7012f53f"}