For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

UI Kit Demo

UI Kit Demo

DocsTip

Use DocsTip for helpful callouts inside guides or references.

Markdown

Markdown

Use Markdown content here to validate styles and link handling.

  • Bullet one
  • Bullet two

Internal link and external link.

ContentModeSwitch

Responses sample
curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY"

CodeSample

Examples
import OpenAI from "openai";

const client = new OpenAI();

const response = await client.responses.create({
  model: "gpt-4.1-mini",
  input: "Say hello",
});
Examples
import OpenAI from "openai";

const client = new OpenAI();

const response = await client.responses.create({
  model: "gpt-4.1-mini",
  input: "Say hello",
});

hello

CodeSample

Examples
import OpenAI from "openai";

const client = new OpenAI();

const response = await client.responses.create({
  model: "gpt-4.1-mini",
  input: "Say hello",
});
Examples
import OpenAI from "openai";

const client = new OpenAI();

const response = await client.responses.create({
  model: "gpt-4.1-mini",
  input: "Say hello",
});

CodeComparison

Before
curl https://api.openai.com/v1/responses
After
curl https://api.openai.com/v1/responses

ContentSwitcher

Node SDK
import OpenAI from "openai";

const client = new OpenAI();

DeepDive

Deep dive
Why streaming matters

LatencyExample

Network
End user to API latency
Server
Time to process prompt tokens
Server
Time to sample/generate tokens
Network
API to end user latency

WaveformComponent

Expander

Image

OpenAI Open Graph

Icon

IconItem

Realtime quickstart
Launch a realtime session and inspect events.

GalleryDocs

Input 1Input 2Input 3Input 4
Result

CodeGallery

ImageGallery

VideoGallery