safetyIdentifier
A request option in the AI SDK xAI provider used to pass an end-user identifier, helping the provider attribute policy violations to specific users in content safety incidents, and echoed back via providerMetadata for auditing.
Timeline (last 90 days)
The article's material does not describe specific format constraints for safetyIdentifier, nor does it mention whether xAI imposes requirements on how the identifier is generated; developers should consult the official documentation before launch to confirm the value range.
Version 3.0.151 adds a safetyIdentifier option, allowing developers to include a safety_identifier field when calling the xAI Responses API.
The safetyIdentifier option exposes the echoed value on providerMetadata.xai.safetyIdentifier.
The echoed identifier only proves that the identifier was correctly transmitted and stored; it does not mean the provider has completed any policy determination.
Passing end-user identifiers to third-party services requires disclosure in the privacy policy.
safetyIdentifier does not change model output quality; it is infrastructure for compliance and operations, and has limited value for internal tools or single-user scenarios.
All Facts (6)
The article's material does not describe specific format constraints for safetyIdentifier, nor does it mention whether xAI imposes requirements on how the identifier is generated; developers should consult the official documentation before launch to confirm the value range.
50%UnverifiedThe safetyIdentifier option exposes the echoed value on providerMetadata.xai.safetyIdentifier.
50%UnverifiedThe echoed identifier only proves that the identifier was correctly transmitted and stored; it does not mean the provider has completed any policy determination.
50%UnverifiedPassing end-user identifiers to third-party services requires disclosure in the privacy policy.
50%UnverifiedsafetyIdentifier does not change model output quality; it is infrastructure for compliance and operations, and has limited value for internal tools or single-user scenarios.
50%UnverifiedVersion 3.0.151 adds a safetyIdentifier option, allowing developers to include a safety_identifier field when calling the xAI Responses API.
50%