Primary navigation

Cookbook Archive

These recipes may reference outdated models or APIs. They are preserved here for reference.

Context Engineering for Personalization - State Management with Long-Term Memory Notes

Jan 5, 2026

agents-sdk

GPT-5 Troubleshooting Guide

Sep 17, 2025

gpt-5 prompt-optimization

Context Engineering - Short-Term Memory Management with Sessions

Sep 9, 2025

agents-sdk

Using Evals API on Audio Inputs

Aug 13, 2025

audio evals

How to run gpt-oss-20b on Google Colab

Aug 6, 2025

gpt-oss gpt-oss-server open-models

Using NVIDIA TensorRT-LLM to run gpt-oss-20b

Aug 5, 2025

gpt-oss gpt-oss-server open-models

Using Evals API on Image Inputs

Jul 15, 2025

evals images

Evals API Use-case - MCP Evaluation

Jun 9, 2025

evals evals-api mcp responses

Evals API Use-case - Structured Outputs Evaluation

Jun 9, 2025

evals evals-api responses

Evals API Use-case - Tools Evaluation

Jun 9, 2025

evals evals-api responses

Evals API Use-case - Web Search Evaluation

Jun 9, 2025

evals evals-api responses

Selecting a Model Based on Stripe Conversion – A Practical Eval for Startups

Jun 2, 2025

conversion evals stripe

Practical guide to data-intensive apps with the Realtime API

May 29, 2025

audio speech

o3/o4-mini Function Calling Guide

May 26, 2025

functions reasoning responses

Evals API Use-case - Responses Evaluation

May 13, 2025

evals responses

ElatoAI - Realtime Speech AI Agents for ESP32 on Arduino

May 1, 2025

arduino audio esp32 iot

Handling Function Calls with Reasoning Models

Apr 25, 2025

api functions reasoning responses

Robust question answering with Chroma and OpenAI

Apr 23, 2025

completions embeddings

Processing and narrating a video with GPT-4.1-mini's visual capabilities and GPT-4o TTS API

Apr 22, 2025

responses speech vision

Evals API Use-case - Detecting prompt regressions

Apr 8, 2025

completions evals

Evals API Use-case - Bulk model and prompt experimentation

Apr 8, 2025

completions evals

Evals API Use-case - Monitoring stored completions

Apr 8, 2025

completions evals

GPT Actions library - Salesforce & Gong

Apr 7, 2025

chatgpt chatgpt-productivity gpt-actions-library

Building a Voice Assistant with the Agents SDK

Mar 27, 2025

audio responses speech

Automating Dispute Management with Agents SDK and Stripe API

Mar 17, 2025

agents-sdk functions responses

Using GPT4 Vision with Function Calling

Dec 13, 2024

chat vision

GPT Actions library - Tray.ai APIM

Nov 26, 2024

chatgpt chatgpt-middleware gpt-actions-library

GPT Actions library - Google Calendar

Nov 22, 2024

chatgpt chatgpt-communication gpt-actions-library

GPT Actions library - Workday

Nov 20, 2024

chatgpt chatgpt-productivity gpt-actions-library

Optimizing Retrieval-Augmented Generation using GPT-4o Vision Modality

Nov 12, 2024

completions vision

Pinecone Vector Database and Retool Workflow with GPT Actions

Nov 11, 2024

chatgpt chatgpt-and-api embeddings gpt-actions-library

Steering Text-to-Speech for more dynamic audio generation

Nov 1, 2024

audio completions

Enhance your prompts with meta prompting

Oct 23, 2024

completions reasoning

Voice Translation into Different Languages

Oct 21, 2024

audio completions

Leveraging model distillation to fine-tune a model

Oct 16, 2024

completions fine-tuning

Custom LLM as a Judge to Detect Hallucinations with Braintrust

Oct 14, 2024

completions evals

Orchestrating Agents: Routines and Handoffs

Oct 10, 2024

agents completions functions

GPT Actions library - Google Ads via Adzviser

Oct 10, 2024

chatgpt chatgpt-data chatgpt-middleware chatgpt-productivity

Prompt Caching 101

Oct 1, 2024

completions cost latency prompt caching

How to parse PDF docs for RAG

Sep 29, 2024

embeddings vision

Using chained calls for o1 structured outputs

Sep 26, 2024

completions reasoning

Building a Bring Your Own Browser (BYOB) Tool for Web Browsing and Summarization

Sep 26, 2024

completions

GPT Actions library - Canvas Learning Management System

Sep 17, 2024

chatgpt gpt-actions-library

Using reasoning for data validation

Sep 12, 2024

completions reasoning

Using reasoning for routine generation

Sep 12, 2024

completions reasoning

GPT Actions library - Retool Workflow

Aug 28, 2024

chatgpt chatgpt-middleware gpt-actions-library

GPT Actions library - Snowflake Middleware

Aug 14, 2024

chatgpt chatgpt-data gpt-actions-library

GPT Actions library - Snowflake Direct

Aug 13, 2024

chatgpt chatgpt-data gpt-actions-library

GPT Actions library (Middleware) - Google Cloud Function

Aug 11, 2024

chatgpt chatgpt-middleware gpt-actions-library

GPT Actions library - Google Drive

Aug 11, 2024

chatgpt chatgpt-productivity gpt-actions-library

GPT Actions library - AWS Redshift

Aug 9, 2024

chatgpt chatgpt-data gpt-actions-library

GPT Actions library - AWS Middleware

Aug 9, 2024

chatgpt chatgpt-middleware gpt-actions-library

Structured Outputs for Multi-Agent Systems

Aug 6, 2024

agents completions functions

GPT Actions library - Zapier

Aug 5, 2024

chatgpt chatgpt-middleware gpt-actions-library

GPT Actions library - Box

Aug 2, 2024

chatgpt chatgpt-productivity gpt-actions-library

GCP BigQuery Vector Search with GCP Functions and GPT Actions in ChatGPT

Aug 2, 2024

chatgpt chatgpt-and-api completions embeddings

GPT Actions library - Confluence

Jul 31, 2024

chatgpt chatgpt-productivity gpt-actions-library

GPT Actions library - SQL Database

Jul 31, 2024

chatgpt chatgpt-data gpt-actions-library

GPT Actions library - Notion

Jul 25, 2024

chatgpt chatgpt-productivity gpt-actions-library

GPT Actions library - Gmail

Jul 24, 2024

chatgpt chatgpt-communication gpt-actions-library

GPT Actions library - Jira

Jul 24, 2024

chatgpt chatgpt-productivity gpt-actions-library

How to fine-tune chat models

Jul 23, 2024

completions fine-tuning

How to combine GPT4o mini with RAG to create a clothing matchmaker app

Jul 18, 2024

embeddings vision

Using GPT4o mini to tag and caption images

Jul 18, 2024

embeddings vision

Introduction to GPT-4o and GPT-4o mini

Jul 18, 2024

audio completions vision whisper

GPT Actions library - Salesforce

Jul 18, 2024

chatgpt gpt-actions-library

GPT Actions library - Outlook

Jul 15, 2024

chatgpt chatgpt-communication gpt-actions-library

GPT Actions library - getting started

Jul 9, 2024

chatgpt gpt-actions-library

GPT Actions library - BigQuery

Jul 9, 2024

chatgpt chatgpt-data gpt-actions-library

Data Extraction and Transformation in ELT Workflows using GPT-4o as an OCR Alternative

Jul 9, 2024

completions vision

Azure AI Search with Azure Functions and GPT Actions in ChatGPT

Jul 8, 2024

chatgpt chatgpt-and-api completions embeddings

Developing Hallucination Guardrails

May 29, 2024

guardrails

GPT Actions library - Sharepoint (Return Docs)

May 24, 2024

chatgpt chatgpt-productivity gpt-actions-library

GPT Actions library - Sharepoint (Return Text)

May 24, 2024

chatgpt chatgpt-productivity gpt-actions-library

GPT Actions library (Middleware) - Azure Functions

May 24, 2024

chatgpt chatgpt-middleware gpt-actions-library

Using tool required for customer service

May 1, 2024

completions functions

Batch processing with the Batch API

Apr 24, 2024

batch completions

Summarizing Long Documents

Apr 19, 2024

chat

Synthetic data generation (Part 1)

Apr 10, 2024

completions

CLIP embeddings to improve multimodal RAG with GPT-4 Vision

Apr 10, 2024

embeddings vision

Getting Started with OpenAI Evals

Mar 21, 2024

completions

How to use the moderation API

Mar 5, 2024

moderation

How to evaluate LLMs for SQL generation

Jan 23, 2024

guardrails

How to implement LLM guardrails

Dec 19, 2023

guardrails

Creating slides with the Assistants API and DALLĀ·E 3

Dec 8, 2023

assistants dall-e

RAG with a Graph database

Dec 8, 2023

completions embeddings

Supabase Vector Database

Dec 4, 2023

embeddings

Semantic search using Supabase Vector

Dec 4, 2023

embeddings

MongoDB Atlas Vector Search

Nov 21, 2023

completions embeddings

Semantic search using MongoDB Atlas Vector Search and OpenAI

Nov 21, 2023

completions embeddings

Assistants API Overview (Python SDK)

Nov 10, 2023

assistants functions

Fine tuning for function calling

Nov 7, 2023

completions fine-tuning functions

What's new with DALLĀ·E 3?

Nov 6, 2023

dall-e

How to make your completions outputs consistent with the new seed parameter

Nov 6, 2023

completions

Evaluate RAG with LlamaIndex

Nov 6, 2023

completions embeddings

Named Entity Recognition to Enrich Text

Oct 20, 2023

completions functions

Function calling with an OpenAPI specification

Oct 15, 2023

completions functions

How to build an agent with the OpenAI Node.js SDK

Oct 5, 2023

agents completions functions

Fine-tuning OpenAI models with Weights & Biases

Oct 4, 2023

completions fine-tuning tiktoken

OpenAI API Monitoring with Weights & Biases Weave

Oct 4, 2023

completions tiktoken

Question answering with LangChain, Deep Lake, & OpenAI

Sep 30, 2023

embeddings

Neon as a vector database

Sep 28, 2023

embeddings

Vector similarity search using Neon Postgres

Sep 28, 2023

embeddings

How to automate AWS tasks with function calling

Sep 27, 2023

completions embeddings functions

Azure Chat Completion models with your own data (preview)

Sep 11, 2023

completions

Azure AI Search as a vector database for OpenAI embeddings

Sep 11, 2023

embeddings

Using Tair as a vector database for OpenAI embeddings

Sep 11, 2023

embeddings

Question answering with Langchain, Tair and OpenAI

Sep 11, 2023

completions embeddings tiktoken

Fine-Tuning for retrieval augmented generation (RAG) with Qdrant

Sep 4, 2023

completions embeddings fine-tuning

Philosophy with vector embeddings, OpenAI and Cassandra / Astra DB

Aug 29, 2023

completions embeddings

Philosophy with vector embeddings, OpenAI and Cassandra / Astra DB

Aug 29, 2023

completions embeddings

Cassandra / Astra DB

Aug 29, 2023

embeddings

Elasticsearch

Aug 29, 2023

completions embeddings

Retrieval augmented generation using Elasticsearch and OpenAI

Aug 29, 2023

completions embeddings

Semantic search using Elasticsearch and OpenAI

Aug 29, 2023

embeddings

Data preparation and analysis for chat model fine-tuning

Aug 22, 2023

completions fine-tuning tiktoken

How to evaluate a summarization task

Aug 16, 2023

completions embeddings

Function calling for nearby places: Leveraging the Google Places API and customer profiles

Aug 11, 2023

completions functions

Addressing transcription misspellings: prompt vs post-processing

Aug 11, 2023

audio completions whisper

Enhancing Whisper transcriptions: pre- & post-processing techniques

Aug 11, 2023

audio whisper

Azure functions example

Jul 21, 2023

completions functions

Visualizing the embeddings in Kangas

Jul 11, 2023

embeddings

Using PolarDB-PG as a vector database for OpenAI embeddings

Jul 11, 2023

embeddings

Search reranking with cross-encoders

Jun 28, 2023

completions embeddings

Vector databases

Jun 28, 2023

embeddings

Using Chroma for embeddings search

Jun 28, 2023

embeddings

Using MyScale for embeddings search

Jun 28, 2023

embeddings

Using Pinecone for embeddings search

Jun 28, 2023

embeddings

Using Qdrant for embeddings search

Jun 28, 2023

embeddings

Using Redis for embeddings search

Jun 28, 2023

embeddings

Using Typesense for embeddings search

Jun 28, 2023

embeddings

Using Weaviate for embeddings search

Jun 28, 2023

embeddings

Whisper prompting guide

Jun 27, 2023

audio completions whisper

Financial document analysis with LlamaIndex

Jun 22, 2023

completions embeddings

Question answering using a search API and re-ranking

Jun 16, 2023

completions embeddings

How to use functions with a knowledge base

Jun 14, 2023

completions functions

How to call functions with chat models

Jun 13, 2023

completions functions

Semantic search with SingleStoreDB

May 22, 2023

completions embeddings

SingleStoreDB

May 22, 2023

completions embeddings

Using Weaviate with generative OpenAI module for generative search

May 22, 2023

completions embeddings

Unit test writing using a multi-step prompt with legacy Completions

May 19, 2023

completions

How to create dynamic masks with DALLĀ·E and Segment Anything

May 19, 2023

dall-e

Using Hologres as a vector database for OpenAI embeddings

May 19, 2023

embeddings

Running hybrid VSS queries with Redis and OpenAI

May 11, 2023

embeddings

Redis as a context store with Chat Completions

May 11, 2023

completions embeddings

Kusto as a vector database for embeddings

May 10, 2023

embeddings

Kusto as a vector database

May 10, 2023

embeddings

Redis vectors as JSON with OpenAI

May 10, 2023

embeddings

Question answering with Langchain, AnalyticDB and OpenAI

May 5, 2023

embeddings tiktoken

How to build a tool-using agent with LangChain

May 2, 2023

agents completions embeddings

Using MyScale as a vector database for OpenAI embeddings

May 1, 2023

embeddings

Typesense

Apr 13, 2023

embeddings

Using AnalyticDB as a vector database for OpenAI embeddings

Apr 6, 2023

embeddings

Visualizing embeddings in Atlas

Mar 28, 2023

embeddings

Azure Chat Completions example (preview)

Mar 28, 2023

completions

Filtered search with Milvus and OpenAI

Mar 28, 2023

embeddings

Getting started with Milvus and OpenAI

Mar 28, 2023

embeddings

Filtered Search with Zilliz and OpenAI

Mar 28, 2023

embeddings

Getting Started with Zilliz and OpenAI

Mar 28, 2023

embeddings

Retrieval augmentation for GPT-4 using Pinecone

Mar 24, 2023

completions embeddings tiktoken

Pinecone vector database

Mar 24, 2023

completions embeddings

Semantic search with Pinecone and OpenAI

Mar 24, 2023

embeddings

How to format inputs to ChatGPT models

Mar 1, 2023

completions tiktoken

Long document content extraction

Feb 20, 2023

completions

Using Qdrant as a vector database for OpenAI embeddings

Feb 16, 2023

embeddings

Question answering with Langchain, Qdrant and OpenAI

Feb 16, 2023

embeddings

Redis

Feb 13, 2023

completions embeddings

Using Redis as a vector database with OpenAI

Feb 13, 2023

embeddings

Weaviate <> OpenAI

Feb 13, 2023

embeddings

Using Weaviate with OpenAI vectorize module for embeddings search

Feb 13, 2023

embeddings

Using Weaviate with OpenAI vectorize module for hybrid search

Feb 13, 2023

embeddings

Question Answering in Weaviate with OpenAI Q&A module

Feb 13, 2023

completions embeddings

Retrieval augmented generative question answering with Pinecone

Feb 7, 2023

completions embeddings

Visualizing embeddings in Weights and Biases

Feb 1, 2023

embeddings

How to work with large language models

Jan 20, 2023

completions

Use cases for embeddings

Jan 20, 2023

embeddings

Related resources from around the web

Jan 20, 2023

completions embeddings

Embedding texts that are longer than the model's maximum context length

Jan 18, 2023

embeddings tiktoken

How to count tokens with Tiktoken

Dec 16, 2022

completions tiktoken

Unit test writing using a multi-step prompt

Nov 15, 2022

completions

How to use the DALLĀ·E API

Nov 4, 2022

dall-e

Clustering for transaction classification

Oct 20, 2022

completions embeddings

Multiclass Classification for Transactions

Oct 20, 2022

completions embeddings

Techniques to improve reliability

Sep 12, 2022

completions

How to stream completions

Sep 2, 2022

completions

Azure embeddings example

Jul 12, 2022

embeddings

Classification using embeddings

Jul 11, 2022

embeddings

Question answering using embeddings-based search

Jun 10, 2022

completions embeddings

Clustering

Mar 10, 2022

embeddings

Code search using embeddings

Mar 10, 2022

embeddings

Customizing embeddings

Mar 10, 2022

embeddings

Fine tuning classification example

Mar 10, 2022

completions fine-tuning

Using embeddings

Mar 10, 2022

embeddings

Get embeddings from dataset

Mar 10, 2022

embeddings

Recommendation using embeddings and nearest neighbor search

Mar 10, 2022

embeddings

Regression using the embeddings

Mar 10, 2022

embeddings

Semantic text search using embeddings

Mar 10, 2022

embeddings

User and product embeddings

Mar 10, 2022

embeddings

Visualizing the embeddings in 2D

Mar 10, 2022

embeddings

Visualizing embeddings in 3D

Mar 10, 2022

embeddings

Zero-shot classification with embeddings

Mar 10, 2022

embeddings

Translate a book writen in LaTeX from Slovenian into English

Mar 10, 2022

completions tiktoken

Fine-Tuned Q&A - collect data

Mar 10, 2022

completions embeddings fine-tuning

Fine-Tuned Q&A - create Q&A

Mar 10, 2022

completions embeddings fine-tuning

Fine-Tuned Q&A - train

Mar 10, 2022

completions embeddings fine-tuning