Hi Sachin,
The recommendation is to set Timeout to Yes and use an appropriate value for Timeout. The exact value of timeout depends on the service you are using - maybe by doing performance testing on the API or you can request API service provider these details. Please see below documentation for more information
Call REST Service | Mendix Documentation
Regards