Is there way to upload files like got4 ui through API?

I want to build a simple service that brief any PDF with open ai API

This is now possible with chatgpt ui.

Is there possible way to build this through API?

I tried to use chat completion. And hit the rate limit.
Have no idea how to solve this problem now.