How to Use
To optimize latency and ensure smooth dictation sessions using Flow API, you should warm up the API connection as follows:Call the Warmup Endpoint at Session Start
As soon as the user starts a dictation, send a request to the warmup endpoint. This prepares the connection for low latency operation by eliminating potential “cold start” delays.Maintain Connection with Keep-Alive
Use connection keep-alive settings to maintain a persistent connection for the duration of your session. A recommended keep-alive timeout is 60 seconds. When the keep-alive period ends, send another warmup request to refresh the connection.How It Works
- SSL/TLS Handshake: Completes the initial SSL handshake
- TCP Connection Establishment: Creates and maintains a persistent TCP connection
- Server Resource Initialization: Ensures server-side resources are loaded and ready
- Connection Pool Preparation: Prepares connection pools for subsequent requests