# fastapi.online Image Rotate

> fastapi.online Image Rotate is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Rotates an image file (PNG/JPEG/WebP) by a specified number of degrees, with optional canvas expansion to preserve image content.

## Facts

- Endpoint: POST https://api.fastapi.online/image-rotate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-image-rotate-244786cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hIi_SRQ0aGZR9hOh7KjIt

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 fastapi-online-image-rotate-244786cc -d '<json body>'
```

Example prompt: Can you rotate this image 90 degrees clockwise and expand the canvas so nothing gets cropped?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call image rotation with no signup or subscription required. Ideal for agents that occasionally need to fix image orientation programmatically without integrating a full image editing SDK. At $0.001 USDC per call it is extremely cost-effective for low-to-moderate volume tasks.

## Known failure modes

- Unsupported file format returns an error — only PNG, JPEG, and WebP are accepted
- Invalid degrees value (non-numeric or out-of-range) may return a 422 validation error
- File too large may result in timeout or rejection
- Missing required file parameter returns 422 Unprocessable Entity
- Payment failure (insufficient USDC or invalid x402 header) returns 402 Payment Required

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

A rotated image file returned in the same format as the input (PNG/JPEG/WebP), oriented by the specified number of degrees, with optional expanded canvas to avoid cropping.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "file": {
   "type": "string",
   "format": "binary",
   "description": "Image file (PNG/JPEG/WebP)"
  },
  "expand": {
   "type": "string"
  },
  "degrees": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-image-rotate-244786cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
