AI Foresights — A New Dawn Is Here
All learning resources
GuideBeginner-friendlyFree

OpenAI Prompt Engineering Guide

From OpenAI

Level

beginner

Length

30 minutes

Cost

Free

Best for

No prior background needed.

About this guide

OpenAI's official guide to writing better prompts for GPT-class models. Covers the core techniques — clear instructions, few-shot examples, breaking complex tasks into steps, asking the model to think before answering — with concrete before-and-after examples for each one. This is the source-of-truth document. Most prompt engineering content on the internet is repackaged versions of this guide, often with the nuance stripped out. Read this once carefully and you'll be ahead of most "prompt engineers" charging for courses on Twitter. Best for anyone who has used ChatGPT or the OpenAI API and wants to dramatically improve the quality of what they get back.

Ready to start?

Open this guide on OpenAI.

View on OpenAI

Weekly AI digest

Top stories + the best new AI tools every week. Free forever. No spam.

or enter email