Idempotency-Key when you may retry a non-streaming chat completion after a lost response or network failure. The header is optional.
Use a non-blank ASCII value no longer than 255 characters.
Reuse rules
Reuse the same key only with the same HTTP method, route, and request body.
Replay protection for non-streaming chat is best effort. If the replay store is unavailable, the request proceeds without deduplication instead of failing.
Client request ids
X-Client-Request-Id is an optional correlation header. The gateway echoes a valid value in the response. It is not a substitute for Idempotency-Key on chat completions.
If you send it, use a non-blank ASCII value no longer than 512 characters.