Response Headers
Rate-limited endpoints can include standard limit headers such as:
Clients should tolerate a missing optional header and should not hard-code a
single allowance for every endpoint.
Handling 429 Too Many Requests
Read the response and honor Retry-After when present. Otherwise, use bounded
exponential backoff with jitter.
Concurrency Errors
A request can be below its HTTP request allowance and still exceed the plan’s concurrent-generation limit. When this happens, wait for an existing generation to reachCOMPLETED or FAILED before submitting another one.
Best Practices
Back Off
Honor
Retry-After, cap retries, and add jitter to avoid synchronized retries.Poll Deliberately
Add a delay between status requests and stop at
COMPLETED or FAILED.Limit Local Concurrency
Queue work in your application instead of submitting an unbounded burst.
Reuse Completed Results
Store the returned audio URL or your own permitted copy instead of regenerating identical input.