Skip to content
  1. Home
  2. Guides and documents
  3. OpenAI Cookbook: GPT-5 Prompting Guides

OpenAI Cookbook: GPT-5 Prompting Guides

OpenAI's own prompting guides for the GPT-5 model family

What it is

A folder of the OpenAI Cookbook holding the vendor's prompting guides for GPT-5, GPT-5.1 and GPT-5.2, a Codex prompting guide, a troubleshooting guide, a prompt optimisation cookbook and a notebook on prompt personalities. Worth reading for anyone writing system prompts or agent instructions for OpenAI models.

Good for

  • Rewrite a system prompt for GPT-5 models
  • Diagnose over-eager or terse agent behaviour
  • Tune prompts for Codex
Worth knowingAdvice is specific to OpenAI models and to named model versions; newer models may behave differently.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for learning

See the topic →
  • Generative AI for Beginners

    microsoft/generative-ai-for-beginners

    21-lesson course on building generative AI applications

    GuideGitHub stars: 123k
  • LLM Course

    mlabonne/llm-course

    Free roadmap and Colab notebooks for learning LLM engineering

    GuideGitHub stars: 85k
  • Prompt Engineering Guide

    dair-ai/Prompt-Engineering-Guide

    Reference guide to prompting techniques, papers and notebooks

    GuideGitHub stars: 80k
  • AI Agents for Beginners

    microsoft/ai-agents-for-beginners

    Lesson-based course on the fundamentals of building AI agents

    GuideGitHub stars: 80k