```python
from fastapi import FastAPI, Body

import helpers  # noqa: F401  (the provided API)

app = FastAPI()


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