04
Framework

OpenAI Developer Message

OpenAI's official GPT-4.1 and GPT-5 production format — strict role-priority hierarchy.

Identity · Instructions · Reasoning Steps · Output Format · Examples · Context
Origin

The Developer Message format is part of OpenAI's role-priority hierarchy: System > Developer > User > Tool. The GPT-4.1 and GPT-5 prompting guides treat the developer message as the canonical place to install identity, instructions, and constraints — and the model is trained to defer to it when user input conflicts.

StripeKlarnaDuolingoAzure OpenAI customers
The anatomy

Every OpenAI Developer Message prompt has these sections.

01

Identity

Who the model is. GPT-5 treats developer-message identity as higher priority than user instructions.

02

Instructions

Imperative rules, top-down. Conflicts resolved in favor of earlier instructions.

03

Reasoning Steps

Explicit chain-of-thought scaffold. GPT-5 follows numbered reasoning steps almost verbatim.

04

Output Format

Exact schema. JSON shape, markdown headings, max length, what to exclude.

05

Examples

Few-shot pairs. GPT-5 weights examples heavily for tone and structure transfer.

06

Context

Reference material the model can cite from but does not have to follow.

When to use
  • Anything running on GPT-4o, GPT-4.1, GPT-5, or GPT-5-mini in production.
  • Workflows where users can submit free-text and the system has to keep its rules.
  • Agent and tool-use scaffolds where reasoning steps need to be explicit.
  • Customer-facing assistants where prompt-injection resistance matters.
When not to use
  • ×Claude-only deployments (use Anthropic XML).
  • ×Single-shot creative work where role-priority overhead is unnecessary.
Best models
GPT-5GPT-5-miniGPT-4.1GPT-4o
Worked example

From one sentence to a OpenAI Developer Message section.

Input

"Build a triage assistant for inbound support tickets."

Sample OpenAI Developer Message section
# Identity
You are SUPPORT-TRIAGE, a senior support engineer with 8 years of experience handling tier-1 SaaS billing tickets.

# Instructions
1. Read the ticket end-to-end before classifying.
2. Never quote refund amounts…

Ready to write your first OpenAI Developer Message prompt?

Drop a sentence. The Forge analyzes your task, asks the right clarifying questions, then generates a complete enterprise meta prompt structured exactly to OpenAI Developer Message.