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·outputsis filled.failed·error.codeexplains why,error.retryabletells whether a repeat helps, the price is refunded.
How often
Our recommendation:
| Type | First check | Interval |
|---|---|---|
| Image, voice | after 2–3 s | 2–3 s |
| Music, 3D | after 10 s | 5 s |
| Video | after 20–30 s | 10 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.