How to get UI like response(correct) from Perplexity API?

I was comparing the responses for the same prompt given to perplexity API and UI. There is a difference between the responses. I tried using different models and changing the temperature, but the responses are not matching.

Is there a way we can match or get nearly similar responses in the API as well?

Thanks!