OpenAI prompt guide: the main points of OpenAI’s prompt engineering documentation

Quick answer: OpenAI’s prompt engineering guide boils down to seven points: give instructions with the instructions parameter or message roles (developer messages outrank user messages); structure the developer message into identity, instructions, examples and context; use a few input-output examples; add the context the model lacks; mind the context window; pin production apps to a model snapshot and test your prompts; and put reusable instructions first. The guide also notes that reusable prompt objects in the API are being retired. SceneMixer is not affiliated with OpenAI.
Still from “Crimson Vow”, an AI short drama generated end-to-end by SceneMixer (4 characters, 1 episode)
SampleCrimson VowDigital HD1 episodeProduced end-to-end by SceneMixer from the scriptWatch the episodes

Seven points

PointWhat the guide says
Instructions and rolesUse the instructions parameter or message roles; developer messages take priority over user messages.
Structure the developer messageSections such as Identity, Instructions, Examples and Context.
Few-shot examplesInclude a handful of input and output examples instead of fine-tuning.
Add contextGive the model data it does not have; this is sometimes called retrieval-augmented generation.
Mind the context windowModels can only take so much; check each model’s limit.
Pin and testPin production apps to a model snapshot and build tests and evaluations for your prompts.
Order for cachingPut reusable instructions and examples before the changing input.

A developer message in that shape

# Identity You label short product reviews. # Instructions Reply with one word: Positive, Negative or Neutral. # Examples [two or three labelled reviews] # Context [anything the model needs to know]

A change to note

OpenAI’s guide says reusable prompt objects in the API are being deprecated and recommends keeping production prompts in your own code, with tests, so changes go through normal review.

Applying it outside the API

  • In a chat window, the same structure works: who it is, what to do, examples, context.
  • Keep a saved version of prompts you rely on.
  • Retest when the model changes.

Also searched as “prompt guide OpenAI”. OpenAI’s image prompts in ChatGPT: ChatGPT image prompts.

Sources

Facts about other companies’ tools on this page come from the pages above, read on November 30, 2026. They change their products and prices; check before you rely on a detail. SceneMixer is not affiliated with them. Figures for SceneMixer’s own tiers are read from its live price list each time this page is built.

FAQ

What does OpenAI's prompt guide recommend?

Clear instructions via roles, a structured developer message, few-shot examples, added context, pinned models and tests.

What is a developer message?

OpenAI’s term for instructions from the app builder, which take priority over user messages.

What is few-shot prompting in OpenAI's guide?

Including a handful of input and output examples in the prompt.

Why pin a model snapshot?

So your app’s behaviour stays consistent when newer models are released.

Is the advice only for developers?

No; the structure works in a chat window too.

Is SceneMixer part of OpenAI?

No. SceneMixer is not affiliated with OpenAI; its image tiers include OpenAI’s GPT Image models among others.

Shot prompts, written for you

SceneMixer turns scripts into storyboards.

Start a project

Updated November 30, 2026