Idempotency
Attach an Idempotency-Key header so a retried Deep Search API call returns the stored JSON result instead of running and charging a second time.
Retry without double charges
Give each request its own Idempotency-Key header and send the same value again when you retry it. For format=json calls, Deep Search saves the finished JSON response and returns that copy whenever the same key arrives with the same body. The same key with a changed body is refused with 409 idempotency_conflict.
- On SSE calls the key still prevents a second charge, but an earlier event stream is not played back.
- Every response carries
X-Request-Id,X-DeepSearch-MeteredandX-DeepSearch-Credits-Charged, along with the standardRateLimit-*headers. - A request body may be at most 64 KB, and a chat call takes no more than 20 messages.