Newbie question: please help - use chat instead of Assistants API for fileID


I see at that I can use a fileId in the assistants API. However, I am shy of doing this in a production environment as assistant API is still in beta.

I would like to use the API for chatGPT (preferably4 , or worst case3.5 turbo) to reply to me based on a fileId that I would have uploaded earlier.

Is this possible at all?

What else should I include in my CURL call to OpenAi API when i call (i mean along with model, stream, messages, etc.)

Thanks a ton in advance!