---
title: "Detect horizon angle"
method: POST
path: "/v1/apple/horizon"
tags: ["Apple"]
---

# Detect horizon angle

`POST /v1/apple/horizon`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/apple/horizon`
- Auth: HTTP bearer

Detects the horizon line angle in radians (useful for auto-straightening photos).

## Request body

- ImageRequest
  - `image` string, required: Base64-encoded image data (PNG, JPEG, TIFF, HEIC)

## Response `200`

Horizon angle

- object
  - `angle` number: Angle in radians

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
