I know that "MAX_DIMENSIONS_EXCEEDED" error showing when Your request contained more than 25 origins, or more than 25 destinations. But Just I want to know this limit is only for free api customer or it's for all?
I am using below google service
var service = new google.maps.DistanceMatrixService();
If you currently have the free plan you get a maximum of 25 origins OR 25 destinations per request. If you go above the free plan allowance you have to pay extra. So that limit is whether you pay or not.
The premium plan where you get a maximum of 25 origins AND 25 destinations per request is only available to users with premium plans prior to the latest price change. From what you have said, you can't have the premium.
See more here: https://developers.google.com/maps/premium/usage-limits