Getting Difference in the results while calling the OpenAI Api vs Chatgpt Browser basically prompts are same

I’m calling an OpenAI api by using the below prompt and while calling through API, it usually takes up to 4-5 minutes; calling from the browser uses gives a response in 10 seconds how the API response can be optimized up to such time.

prompt = “”“You are a helpful AI assistant, please extract all the details available for company, designation or position , duration.
from given resume text in json array format if nothing found from detail keep it ‘’
as [‘company’ = ‘’,‘position’ = ‘’,‘startDate’ = ‘’, ‘endDate’ = ‘’]