```python
from fastapi import FastAPI

import helpers  # noqa: F401  (the provided API)

app = FastAPI()


@app.post("/thumbnail")
def thumbnail(image: bytes) -> dict:
    """Generate a thumbnail from raw image bytes."""
    thumb = helpers.resize_image(image)
    return {"size": len(thumb)}
```