Want to analyze a large CSV file

I am trying to analyze a CSV file using the api version. I am able to upload a file on chatgpt and have it analyze instantly. However, I want to do this on through an API. It seems to take around 7 mins to 15 minutes for it to finish via Chunking. Are there any other solutions to this issue.