---
id: "openai-prompt-engineering-guide"
title: "Prompt engineering (OpenAI API docs)"
creator: "OpenAI"
url: "https://developers.openai.com/api/docs/guides/prompt-engineering"
level: "beginner"
category: "prompting"
models: ["gpt"]
source_date: null
date_added: "2026-10-18"
---

[Prompting](/prompting/index.md)

# Prompt engineering (OpenAI API docs)

by OpenAI

[Read the original →](https://developers.openai.com/api/docs/guides/prompt-engineering)

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](/levels/index.md#beginner)
Models: gpt
Category: [Prompting](/prompting/index.md)
Tags: [official-guide](/tags/official-guide/index.md)
Source date: date not stated
Added: 2026-10-18
Last verified: 2026-10-18
Status: ok

Summary in our own words. All rights with the original creator. Correction or removal: DM on X.
