# Saylor Innovations Media Aspect Ratio Calculator

> Saylor Innovations Media Aspect Ratio Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Calculates and reduces image or video dimensions to their simplest aspect ratio and determines orientation (landscape, portrait, or square)

## Facts

- Endpoint: GET https://saylorinnovations.com/api/media/aspect?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-media-aspect-ratio-calculator-7012f53f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-35YKVlX8JMBUOd7piEfj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-media-aspect-ratio-calculator-7012f53f
```

Example prompt: What's the simplified aspect ratio and orientation for a 1920 by 1080 image?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Aspect ratio calculator - reduce width and height to a ratio and orientation

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-media-aspect-ratio-calculator-7012f53f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
