Skip to content

Core concepts

Polling ​

Fetch the result by polling GET /generations/{id}, or receive it with a webhook instead of polling.

bash
curl https://api.synesta.ai/v1/generations/GENERATION_ID \
  -H "Authorization: Bearer $SYNESTA_API_KEY"

When to stop ​

Poll until status is done or failed. There are no other final statuses.

  • done · outputs is filled.
  • failed · error.code explains why, error.retryable tells whether a repeat helps, the price is refunded.

How often ​

Our recommendation:

TypeFirst checkInterval
Image, voiceafter 2–3 s2–3 s
Music, 3Dafter 10 s5 s
Videoafter 20–30 s10 s

Add an overall timeout per task and a growing pause after a few unchanged answers. Reads (GET) share one per-minute limit for the whole account, see Rate limits.

Many tasks at once ​

Do not poll every generation separately. One GET /generations?limit=50 returns the statuses of the latest generations in a single request.

429 while polling ​

This is the request limit, not a generation error. Wait Retry-After seconds and continue: the generation keeps running.