# fastapi.online Thumbnail Generator

> fastapi.online Thumbnail Generator 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-14).

Generates a resized thumbnail image from an uploaded PNG, JPEG, or WebP image file

## Facts

- Endpoint: POST https://api.fastapi.online/thumbnail-generate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-thumbnail-generator-1845744b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gdSbVkbBxU9BBs0k29urZ

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-thumbnail-generator-1845744b -d '<json body>'
```

Example prompt: Can you generate a thumbnail from this product photo I'm uploading — keep the max size to 256px?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call thumbnail generation from an uploaded image without signing up for a service. Ideal for one-off or low-volume thumbnail tasks where you want crypto micropayment billing at $0.001 per call and no account management overhead.

## Known failure modes

- Unsupported file format (non-PNG/JPEG/WebP) may cause rejection
- Missing or malformed binary file data results in 400 error
- max_size parameter not specified may result in default or error
- File too large may time out or be rejected
- Payment not included or insufficient USDC causes 402 response

## 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

Returns a resized thumbnail image file (likely PNG/JPEG/WebP) at or below the specified max_size dimension, suitable for use as a preview or thumbnail in web or app contexts.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-thumbnail-generator-1845744b/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)
