chk_live_ key for customer traffic.
Credentials and access
- Store keys in a secret manager, outside browser code and logs.
- Grant the required endpoint, input upload, and job-read permissions. See authentication.
- Check endpoint availability with
GET /v1/endpoints. Obtain beta access where required. Preview endpoints do not accept production traffic. - Keep sandbox, staging, and production credentials separate. Staging consumes live credits.
Requests and results
- Persist an
Idempotency-Keyfor each inference submission and reuse it only for retries of that payload. - Handle
202as accepted work. Track every terminal job status, includingpartial. - Back off on
429and honorRetry-Afterwhen present. - Log
X-Request-Id, the job ID, and the endpoint slug for support. - Use uploads for video and reusable inputs. Download result files before their URLs expire.
- Handle empty results, low confidence, and per-image errors in your application.
Delivery and validation
- Verify webhook signatures over the raw request body.
- Deduplicate events using the payload’s
idand acknowledge after durable storage. - Exercise retry and failure handling in test mode.
- Evaluate real output quality in staging, then confirm live credit and storage capacity in the dashboard.