Retrieving the image details

Hi, I am having a struggle to retrieve the image details. I want to retrieve the ContentModel by filtering it with entryId and also getting its related assets i.e. image in my case. The documentation says we can use GetAsset() but I want to retrieve all the related images with the content model in one API request.
It would be great if I can get any help.

I found the solution.