Skip to main content
Use a chk_test_ API key to validate your integration before you send live inference traffic. Test requests go to the same base URL, https://api.trycarhub.com, and follow the same authentication, idempotency, job, credit-reservation and webhook paths as live requests. Test and live credit balances are separate. A test request returns livemode: false in its job. It never runs a production model or consumes live credits.

Select a scenario

Set X-Carhub-Test-Scenario on an inference request. Omit the header for the endpoint’s deterministic successful fixture. Some scenarios are not meaningful for every endpoint. CarHub rejects an unsupported scenario with 400 test_scenario_not_supported rather than silently falling back to a default response.

Example

Test both an immediate response and a queued job. Use slow to confirm that your client keeps polling or accepts the corresponding webhook after wait=true reaches its 30-second limit.
Use a new idempotency key for each distinct test case. Reuse the same key only when you are verifying retry behaviour for the same payload.