Skip to main content
This is useful for REST API calls for both API-key and client-side auth.

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

  1. SSL/TLS Handshake: Completes the initial SSL handshake
  2. TCP Connection Establishment: Creates and maintains a persistent TCP connection
  3. Server Resource Initialization: Ensures server-side resources are loaded and ready
  4. Connection Pool Preparation: Prepares connection pools for subsequent requests

Code Examples

Python Example
JavaScript/TypeScript Example

Request

No request body needed.

Response