# Saylor Innovations Hyperfocal Distance Calculator

> Saylor Innovations Hyperfocal Distance 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-31).

Calculates hyperfocal distance, near limit of focus, and aperture/foreground sharpness table for photography given focal length and f-number

## Facts

- Endpoint: GET https://saylorinnovations.com/api/photo/hyperfocal?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-hyperfocal-distance-calculator-a46e0da0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lMB7mc7ZRjf9Rzt_wofKY

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-hyperfocal-distance-calculator-a46e0da0
```

Example prompt: What's the hyperfocal distance for a 24mm lens at f/8 on a full-frame sensor, and can you also show me what the near focus limit would be if I shoot at the foreground object 2 meters away?

## When to prefer this

Choose this endpoint when you need precise optical computations for photography depth-of-field planning, specifically hyperfocal distance and near focus limits. It supports multiple sensor formats (full-frame, APS-C, micro four thirds, medium format, etc.) and a strict pixel-peeping mode, making it more complete than generic DoF calculators that only support one sensor type.

## Known failure modes

- Missing required focal_mm or f_number parameters returns a 400-level error
- Invalid or unrecognized sensor format string may default to full_frame or return an error
- Extremely small or large aperture/focal length values outside realistic photographic ranges may produce unexpected results
- Non-numeric values for focal_mm or f_number will likely cause computation failure

## How this service works

Hyperfocal distance, near limit, aperture/foreground table and focus distance for a foreground

## Output

Returns the hyperfocal distance in meters, the near limit of sharpness when focused at that distance, a table of aperture vs foreground distance combinations for achieving required sharpness, and the recommended focus distance for a given foreground subject — all computed for the specified lens focal length, aperture, and sensor format.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST",
      "PUT",
      "PATCH",
      "DELETE",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "focal_mm",
      "f_number"
     ],
     "properties": {
      "sensor": {
       "type": "string",
       "description": "optional full_frame, aps_c_nikon_sony, aps_c_canon, micro_four_thirds, one_inch, medium_format_44x33, medium_format_645, super35, phone_1_over_1_3; default full_frame (query)"
      },
      "strict": {
       "type": "string",
       "description": "optional true for pixel-peeping sharpness (circle of confusion 0.5x) (query)"
      },
      "f_number": {
       "type": "string",
       "description": "required (query)"
      },
      "focal_mm": {
       "type": "string",
       "description": "required (query)"
      },
      "foreground_m": {
       "type": "string",
       "description": "optional nearest object that must be sharp (query)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    },
    "description": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-hyperfocal-distance-calculator-a46e0da0/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)
