How to get only thumbnail from relation image

The thumbnail url is the main image url, prefixed with thumbnail_
You could just retrieve the url (top level, no need to fetch the formats JSON) and prefix it