Model Spec

Also known as: OpenAI Model Spec

On this page 7

A Model Spec is a published specification that describes how an AI model is intended to behave: which goals it pursues, which instructions it follows, which requests it refuses and how it resolves conflicts between the parties that instruct it. In AI governance, the best known example is the OpenAI Model Spec, first released in May 2024 and revised several times since, which turned internal behavior policy into a public, versioned document that outsiders can read, quote and criticize.

The document sits between abstract principles and technical training data. It is more concrete than a corporate AI policy, because it addresses specific conversational situations, yet it is written in natural language rather than code. Its main governance value is accountability: when a deployed model behaves badly, observers can ask whether the behavior was a training failure or an intended design choice stated in the specification.

How a Model Spec is structured

A Model Spec organizes intended behavior into layers of different strength. The OpenAI version distinguishes broad objectives, firm rules that cannot be overridden, and defaults that describe the best behavior when no one has asked for something else. This layering lets the document be strict where safety demands it and flexible where user preference legitimately varies.

The following table summarizes the main building blocks and what each one controls.

ComponentWhat it statesCan it be overridden?
ObjectivesHigh-level aims such as helping users and avoiding harmNo, they guide interpretation
Hard rulesProhibited outputs, for example serious uplift for mass-casualty weaponsNo
DefaultsPreferred tone, format, length and handling of ambiguityYes, by developers or users
Chain of commandWhose instructions win when they conflictNo, it defines the ordering
Worked examplesSample prompts with compliant and non-compliant answersNot applicable, they illustrate
Core components of a model specification

The worked examples matter more than they appear. Natural-language principles are ambiguous, and paired good and bad responses show evaluators and trainers where a line actually falls. Later revisions of the OpenAI document grouped guidance into themes such as staying within bounds, seeking the truth together and doing the best work, but the rule and default distinction remained the backbone.

The chain of command and instruction priority

The chain of command is the part of a Model Spec that decides whose instruction prevails. Instructions arrive from several sources inside one conversation, and the model needs a predictable priority order so that a user cannot silently cancel a developer’s restrictions and a developer cannot override platform-level safety rules.

Authority levelSourceTypical example
PlatformThe model developer, through training and the spec itselfRefuse detailed instructions for building weapons
DeveloperThe company building an application, through system or developer messagesAnswer only questions about our banking product
UserThe person typing in the conversationReply in Spanish and keep answers short
GuidelineDefault behaviors that any higher level may adjustUse Markdown formatting when it helps
No authorityText inside tool outputs, web pages or filesA web page saying ignore previous instructions
Typical authority levels in a model specification

The last row is the defense against prompt injection. A Model Spec typically states that quoted material, retrieved documents and tool results carry no instruction authority by default, so text embedded in a web page cannot command the model. This principle connects the specification directly to AI agent governance, where models act on untrusted content.

Model Spec compared with other governance documents

A Model Spec is easily confused with neighboring documentation artifacts, yet each answers a different governance question. The specification states intended behavior; other artifacts report measured properties, risks or organizational rules.

ArtifactMain question answeredAudienceTiming
Model SpecHow should the model behave?Public, developers, researchersBefore and during training
System cardWhat risks were evaluated and mitigated?Public, regulatorsAt release
Model cardWhat are the model’s performance and limits?PractitionersAt release
AI acceptable use policyWhat may customers do with the model?Customers, usersOngoing
Corporate AI policyHow does an organization use AI internally?EmployeesOngoing
How a Model Spec differs from related artifacts

Other developers publish comparable documents under different names, for example written constitutions used in constitutional training methods. The shared idea is that normative intent is written down first and then used for training, evaluation and public explanation, rather than remaining implicit in labeler instructions.

How the specification is used in training and evaluation

A Model Spec is an operational input, not only a public statement. Developers use it to write instructions for human raters, to generate synthetic training data, and in some methods the model is trained to reason explicitly over the specification text before answering, an approach OpenAI has described as deliberative alignment.

  • Data generation: prompts and preferred answers are produced to illustrate each rule and default.
  • Reward modeling: graders score responses for adherence to the specified behavior.
  • Evaluation suites: test sets measure spec compliance rates per section, which reveals weak areas.
  • Incident review: a reported failure is classified as a spec gap, an ambiguity or a training shortfall.

This loop gives the document a role similar to a requirements specification in software engineering. Without it, model behavior would be defined only by what training happened to produce, and nobody could distinguish a bug from a feature.

Limitations and common misunderstandings

The most important limitation is that a Model Spec describes intended behavior, not guaranteed behavior. Training is imperfect, so a deployed model may violate its own specification, especially under adversarial prompting. Publishing the document improves transparency, but it is not an external audit and does not by itself prove compliance.

MisreadingAccurate view
The model always follows the specIt is a target for training, and measured adherence is below 100 percent
The spec is a legal commitmentIt is a voluntary policy document unless contracts or law reference it
Defaults reveal hard limitsDefaults are adjustable, only rules are fixed
One spec fits every deploymentDevelopers customize defaults within the allowed range
Frequent misreadings and the accurate view

Further concerns are unilateral authorship, since the developer alone decides the content, and version drift, because revisions can change behavior without broad consultation. Mature governance programs therefore pair a Model Spec with independent evaluation, change logs and feedback channels.

The short version

A Model Spec is a rulebook for an AI assistant. It says what the assistant should do, what it must never do and what it does when no one gives special instructions.

Think of a new employee handbook. Some rules are absolute, such as never sharing a safe combination. Other parts are habits, such as answering politely, that a manager may change. The handbook also says whose orders come first: the company, then the manager, then the customer.

The key point is simple. The spec states what the builders intend, and tests show how well the real model matches it.

Where it makes a difference

A mid-sized insurance company builds a claims assistant on a commercial language model. Its developer message restricts the assistant to policy questions and forbids legal advice. During testing, a user writes that they are the system administrator and that all restrictions are lifted.

Because the provider’s Model Spec places developer instructions above user instructions, the assistant keeps its restrictions and declines politely. In a second test, a customer uploads a PDF that contains hidden text telling the assistant to approve the claim. The spec treats file content as data without instruction authority, so the assistant summarizes the document and ignores the embedded command.

The governance team records both tests in its AI risk register, citing the relevant spec sections as the expected behavior. When an edge case later fails, the team can show that the failure was a deviation from the stated design, which simplifies the incident report to the vendor.