Difference in Folder and File size

I am using Nextcloud API to fetch Folder and File details, such as file name, size, path, content type etc. Issue I am facing is that Folder size and file size is varying between API response and Nextcloud UI.
For instance,

File size showing on Nextcloud is 393.1MB
File size showing on Nextcloud API response is 392.8 MB

Could anyone tell which one is authentic between the two?

Which size does your preferred file manager display?

What does preferred file manager mean? Could you please elaborate

What does your file manager says? e.g. Windows explorer on windows.

Or ls -h on linux shell.

File manager is showing 4.7 KB

That is a huge difference!
Are you sure you have the file or a link instead?