Use GET /api/tools to load the current account catalog. Schemas are authoritative: validate required fields before sending a call.
03 / ERRORS
Errors are actionable.
400
Bad request The JSON shape or tool arguments are invalid. Check the tool schema.
402
Credits required The account balance cannot cover this operation.
403
Forbidden The key is valid but lacks access to this tool or operation.
404
Not found The route or named tool does not exist.
413
Payload too large Reduce input size or upload large assets through the supported flow.
429
Rate limited Back off using the response guidance; do not hot-loop retries.
502
Upstream error The provider failed. Retry safe, idempotent work with jitter.
504
Upstream timeout The request took too long. Poll asynchronous media runs rather than repeating blindly.
04 / RELIABILITY
Make retries safe.
Paid media tools accept an idempotency key. Send a unique key per intended operation and reuse that same key when recovering from a timeout or network failure.
For read-only tools, bounded exponential backoff is usually enough. For generation, do not create a new key on every retry or you may pay for duplicate work.
05 / LIMITS
Respect the service boundary.
Requests are bounded per account and per route. Keep concurrency intentional, cap retries, and treat 429 as a signal to slow down. Scale customers can request higher limits with a workload profile.