As I’m a newbie my stupid questions are still going on so I’m sorry for it.
But I really don’t understand what’s the actualt difference between Chat and Realtime? Is it involve audio stuff only?
When I’m trying Chat via Playground via, for example, 4o-mini model it operates in REAL time indeed - no latency at all.
So the only reason to use expensive Realtime is use audio conversations?
Because I don’t see any advantages with Realtime reagarding the text.
Any immortal starts out as unknowing, so that they may in time become all-knowing!
So the real time API uses a (stateful) WebSocket connection, and the chat API uses a stateless ReST endpoint that is capable of streaming with Server Sent Events.
I would personally always go for chat with SSE streaming, until the Realtime product matures.
The only ‘downside’ with chat is that you have to manage chat state yourself - but if you didn’t want to do that, you could also consider using assistants.
In the end it likely boils down to how much control you want to have. Less control → possibly faster development → more expensive operationally.