```python
from fastapi import FastAPI, Body
import asyncio

import helpers  # noqa: F401  (the provided API)

app = FastAPI()


@app.post("/thumbnail")
async def thumbnail(image: bytes = Body(...)) -> dict:
    thumbnail_bytes = await asyncio.to_thread(helpers.resize_image, image)
    return {"size": len(thumbnail_bytes)}
```