In short.
OpenAI's Safety best practices is a safety guide for developers using its APIs, but it provides recommendations without measured evidence of their effectiveness. It combines application controls, such as constrained inputs and human review, with integration details for moderation and safety identifiers. Its most specific guidance explains how identifiers must be supplied separately across text, image and Realtime requests. The page is useful for planning safeguards, but does not provide a complete implementation, evaluation suite or operating budget. No examples were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete supplied page at [https://developers.openai.com/api/docs/guides/safety-best-practices.md], including its examples and any notices present. No explicit reuse licence or copyright notice appears in that text. Linked documentation, API references, security settings, disclosure information, under-18 guidance, CSAM guidance and other folders are excluded. Nothing was executed; example compatibility, live API behavior and safeguard effectiveness were not tested.
The overview
Identity
This is OpenAI's developer documentation page titled Safety best practices, at [https://developers.openai.com/api/docs/guides/safety-best-practices.md]. It is a learning resource containing recommendations and API request examples, rather than an installable tool or model.
The selected resource is this complete page. Documentation reached through its links is outside the assessed scope.
Assessment
The guide is useful for identifying safeguards to consider when building an OpenAI application. It connects broad practices, including human review and issue reporting, with concrete request fields and headers.
Its practical limit is depth: it does not supply moderation thresholds, an adversarial test suite, acceptance criteria or measured reductions in misuse. It supports planning and implementation decisions, but cannot establish that a particular application is safe.
Users
Beginners can use the page to understand why an AI application may need moderation, restricted inputs, human review and a way for users to report problems. Experienced developers get specific integration details for tracing abuse through stable user identifiers.
The page particularly emphasizes human review for high-stakes uses and code generation. It points developers serving minors to separate guidance, whose contents are not assessed here.
Capabilities
The guide covers moderation, testing hostile or unexpected inputs, steering outputs with instructions and examples, account registration, input and output limits, human review, issue reporting and communicating model limitations. It also recommends revoking and replacing compromised API keys.
For integration work, it explains safety_identifier in API requests, the corresponding Realtime header and migration from the deprecated Images API user parameter. It says generation requests through Responses or Chat Completions can request moderation scores, but leaves the detailed procedure to a linked page.
Using it
Requirements
Applying the API examples requires credentials and the ability to construct requests. The curl example reads an API key from OPENAI_API_KEY. The page provides examples in JavaScript, Python, Go, Java, Ruby and curl, but no complete installation or credential-configuration procedure.
Applying recommendations such as human review and monitored issue reporting also requires people and operating procedures. Minimum runtime versions, complete SDK compatibility requirements and expected staffing are not specified.
Mechanism
The recommendations address different parts of an application's behavior. Moderation filters content; constrained inputs and outputs narrow possible interactions; adversarial testing looks for failures; human review checks outputs before use; reporting channels surface problems after release.
Safety identifiers provide a stable reference for an individual user's activity so OpenAI and the application operator can respond to abuse. The page recommends a hashed username or email address, or a session ID for an unauthenticated preview. It does not present identifiers as content filters or guarantees against misuse.
Setup
For safety identifiers, choose a stable value for each end user and include it in applicable requests. The page recommends identifiers for products where individuals interact with a model, while stating that they are optional.
For Images API generation and editing, send safety_identifier as a JSON property or multipart form field, using the same value across requests within the organization and keeping it to 128 characters or fewer. The older user field remains supported; a nonempty safety_identifier takes precedence, while an omitted, null or empty value falls back to user when available.
For Realtime, supply OpenAI-Safety-Identifier when a trusted server creates an ephemeral client secret or directly establishes a connection. The page says identifiers do not carry over between APIs or sessions, so an identifier used with Responses must also be supplied separately for Images and Realtime.
Example
The Python example creates an OpenAI client and calls client.chat.completions.create with model set to gpt-6-astra, a short user message, max_completion_tokens set to 5 and safety_identifier set to user_123456. This illustrates where the identifier belongs in a Chat Completions request.
The literal identifier is an example value; the surrounding guidance recommends deriving a privacy-preserving identifier for each user. The example was not executed, and its model availability, SDK compatibility and returned output are not established.
Assessment & evidence
Limitations
The page acknowledges inaccurate information, offensive outputs and bias as model limitations. It recommends evaluating a broad range of likely inputs and considering whether a model fits the intended use.
Although it recommends limiting input length to help address prompt injection, it supplies no evidence that this or any other listed control prevents injection. It also provides no moderation accuracy figures, false-positive analysis, latency measurements or end-to-end security results.
Several implementation details depend on linked documentation outside the selected scope. The request examples do not constitute a complete application or a demonstrated safety system.
Reasoning
The guide's value comes from combining product decisions with API details. For example, it asks developers to consider returning a validated support article instead of generating a new answer, while separately explaining how to associate requests with users.
A reasonable interpretation is that these controls should work together because they address different failure paths. That is an interpretation of the recommendations, not a measured result: the page does not establish their combined effectiveness.
Alternatives
The page names a custom content filtration system as an alternative to OpenAI's Moderation API. It also suggests validated dropdown inputs and returning existing backend materials as alternatives to unrestricted text inputs and newly generated answers.
These are design options described by the guide, rather than evaluated competing products. Their relative cost, effectiveness and suitability are not established, and no other learning resources were assessed.
Evidence
The evidence consists of the complete supplied text of OpenAI's page at [https://developers.openai.com/api/docs/guides/safety-best-practices.md]. It supports descriptions of the recommendations and request examples, but contains no experimental results or independent validation.
The supplied source revision is sha256:2f79db6c7fca2f032cf379b96e004518cad88ca040a4561b20b8c17a00c5bb1f. No code or API requests were executed.
Access & freshness
Costs
The page explicitly describes OpenAI's Moderation API as free to use. It does not specify generation prices, quotas, rate limits or the cost implications of requesting moderation scores during generation.
Human review, custom filtering, adversarial testing and abuse response may require operating resources, but the page supplies no estimates. Total implementation and running costs are unknown.
Rights
The supplied page contains no explicit reuse licence or copyright notice. Permission to redistribute the page or reuse its code examples under a particular licence is therefore unknown.
Terms governing API use are not included in the selected page. Availability of documentation and examples does not establish those terms.
Freshness
The source was captured on 12 November 2026 at 17:09:43.687 UTC. The page text supplies no publication or last-updated date, so the age of individual recommendations is unknown.
The page describes the Images API user parameter as deprecated while still supported; this statement concerns that parameter, not the guide as a whole. Model identifiers, SDK examples and API behavior reflect the supplied snapshot and were not independently verified.
Actions
Use the guide to identify which safeguards fit the application's users, outputs and consequences of failure. Define representative and adversarial inputs, decide where human review is needed, and provide a monitored route for reporting problems.
Before relying on the integration examples, confirm applicable API and SDK details. Check identifier handling separately for each API and session, and evaluate moderation behavior, failure cases and operating costs in the intended application. These are recommended next steps; their outcomes remain unknown.
