Prompt engineering (OpenAI API docs)
by OpenAI
OpenAI's official baseline on message roles, instructions and examples.
This documentation explains how to organize instructions and examples when using OpenAI models. It provides a starting reference for separating the task from the material the model should process.
- Level
- Beginner
- Models
- gpt
- Category
- Prompting
- Tags
- official-guide
- Source date
- date not stated
- Added
- 2026-10-18
- Last verified
- 2026-10-18
- Status
- ok
- Prerequisites
- Conceptual or guided prompt use; the main path does not require writing code.
- Subcategory
- prompting fundamentals
- Region
- West
- Original language
- en
- Access
- free
- Resource reuse
- closed: No general open-reuse grant established from the inspected page. Closed is the conservative index bucket, not a legal finding; the resource is publicly readable. Facet definitions
Summary in our own words. Rights remain with the original creator. Credit and correction policy.