nfe setting and cold starts.
nfe — the quality/speed dial
nfe (number of function evaluations) is how many diffusion steps the model runs. More steps = better quality, more time.
32; drop to 16 when responsiveness matters more than the last bit of fidelity.
Cold starts
The GPU backend scales to zero when idle to save cost. Consequences:- The first request after an idle period pays a cold start — this can be tens of seconds.
- After a request, the service stays warm for a few minutes, so follow-up calls are fast.
- The SDK’s default 120 s timeout is sized for this. Don’t lower it below what a cold start needs unless you know the service is warm.
Other factors
- Text length. Longer text = longer synthesis (roughly linear). Break very long inputs into sentences/paragraphs and synthesize in parallel if you need throughput.
speed. Changes playback pace (0.5–2), not generation time.- Concurrency. Independent requests run concurrently; the SDK doesn’t serialize them.
Measuring
Time a warm call end-to-end:Next steps
Streaming
Start playback sooner by synthesizing sentence-by-sentence.
Voice agents
Wire low-latency TTS into a real-time voice loop.
Limits & constraints
Text limits, output format, and cold starts.