```python
from fastapi import FastAPI

import helpers  # noqa: F401  (the provided API)

app = FastAPI()


@app.post("/thumbnail")
def create_thumbnail(data: bytes):
    resized = helpers.resize_image(data)
    return {"size": len(resized)}
```