# Relaystation PDF Rotate

> Relaystation PDF Rotate is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Rotates PDF pages — all pages or a selection — by any multiple of 90 degrees, billed per page at $0.001.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/rotate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-pdf-rotate-a9224ef4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BnFt824LdOcBbM1wED8TC

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 relaystation-pdf-rotate-a9224ef4 -d '<json body>'
```

Example prompt: Can you rotate all pages in this PDF by 90 degrees clockwise? The scanned document came out sideways and I need it corrected.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-page PDF page rotation without managing PDF libraries or infrastructure. It is ideal for agents that process documents on demand, need to correct scanned document orientation, or handle PDFs programmatically in workflows. At $0.001/page with a 1¢ x402 minimum, it is cost-effective for both single-page fixes and large batch documents.

## Known failure modes

- Invalid or corrupted PDF file — returns error indicating file cannot be parsed
- Rotation angle not a multiple of 90° — returns validation error
- Page selection references pages out of range for the document — returns out-of-bounds error
- File too large or exceeds processing limits — returns size limit error
- Payment insufficient for page count — x402 payment flow may fail if credit balance is too low

## How this service works

$0.001/page. Rotate PDF pages — all or a selection, any multiple of 90°. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a rotated PDF file with the specified pages reoriented by the requested angle (90°, 180°, or 270°). The response includes the transformed PDF binary and the number of pages processed, which determines the per-page billing.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      },
      "degrees": {
       "type": "string",
       "enum": [
        "90",
        "180",
        "270"
       ]
      },
      "pages": {
       "type": "string",
       "description": "1-based pages/ranges, \"all\" or \"1-3,5\" (default all)."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-pdf-rotate-a9224ef4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
