OpenAI API documentation (documentation,https://platform.openai.com/docs)是 The developer documentation center for the OpenAI platform, for developers who need to call the OpenAI API and build AI applications and agents. The page brings together guides, API documentation, examples, and a documentation search entry point, and covers multiple topics ranging from the first API request to production deployment.
-
Purpose This page is a documentation navigation and entry point, not a single API or model page. It helps developers find API usage, examples, and best practices, and also provides entry points to topics such as ChatGPT subscriber API credits, conversation state, background mode, mid-run steering, token counting, cloud providers, supported countries/regions, OpenAI crawlers, and terms and policies.
-
Main capabilities The documentation covers model selection, text generation, code generation, structured outputs, prompt engineering, citation formats, prompt generation, frontend prompting, reasoning models and reasoning best practices; image input cost calculator, image generation, image prompting; realtime and audio, voice, getting started with audio and voice, and specialized models.
The agents area includes agent configuration, running and continuing sessions, events and projects, session management, scheduled automation, automated review, and Webhook; OpenAI-hosted sandboxes, self-hosted sandboxes, sandbox lifecycle, prewarmed sandboxes, sandbox security, files and artifacts; web search, computer use, functions, MCP connections, plugins, and Vault; observability and usage, errors and recovery, Bedrock Managed Agents, agent definitions, models and providers, results and status, integrations and observability, and evaluating agent workflows.
The tools and retrieval area includes function calling, search and retrieval, connecting tools and data, Secure MCP Tunnel, building tool workflows, programmatic tool calling, asynchronous tool calling, computer and code, and code interpreter. The voice area includes voice activity detection, building voice, WebRTC with WARP, telephony and SIP, server-side control, audio processing, file transcription, realtime transcription, realtime translation, audio in Chat Completions, and production best practices.
The platform and safety area includes API keys and service accounts, deployment checklists, performance and quality, latency optimization, predicted outputs, accuracy optimization, evaluation best practices, cost and throughput, prompt caching and diagnostics, and Flex processing; safety best practices, safety checks, safety classifiers, cybersecurity checks, misalignment monitoring, content provenance, and private safety processing; Terraform provider, projects and access, service accounts, rate limits and spend, and models/tools/numData controls, workload identity federation, federation rules, X.509 certificates, Kubernetes, AWS, Microsoft Azure, Google Cloud, Oracle Cloud Infrastructure, GitHub Actions, SPIFFE Idira, IP egress ranges.
Plugins and commerce include plugin architecture, MCP server building and publishing, plugin UI, authentication, packaging, testing and publishing, submission and publishing, conversion specs, restaurant reservation spec, product checkout spec, checkout API reference, requesting a client ID, and ChatGPT plugins. ChatGPT and Codex include ChatGPT desktop/mobile/web, Codex IDE extension, Codex app-server, self-hosted VM, CLI customization, developer commands, non-interactive mode, third-party integrations, local and cloud environments, Windows sandbox, and recording and replay. Codex security includes security plugins, security CLI, security SDK, security review, deep scan, vulnerability reporting, and CI/CD integration.
Enterprise capabilities include workspace identity and access, groups and configuration, user lifecycle, roles and permissions, personal access tokens, Windows app and CLI deployment, NFS home directories, managed configuration, GovCloud, gateways, education programs, collaboration and sharing, GPTs and sharing, plugin controls, workspace analytics, HIPAA configuration, compliance API, and audit events, among others.
III. Usage Users can locate topics through documentation search and initiate their first API request from the developer quickstart; configure access according to documentation such as API keys and service accounts, projects and access, rate limits and spend; build agents according to agent, tools, sandbox, and observability documentation; and deploy according to documentation such as Terraform, cloud providers, gateways, and GovCloud. When you need to connect ChatGPT and Codex to the OpenAI Platform, refer to the OpenAI Developers plugin instructions; the plugin follows the OpenAI API setup guide and creates a project API key when the app requires it.
IV. Applicable scenarios It is suitable for developers calling the OpenAI API, teams building agents and plugins, enterprise administrators responsible for deployment and security governance, and users who need to consult ChatGPT/Codex extensions and workspace capabilities. It can serve textand code generation, structured outputs, image and vision, voice and real-time interaction, agents and tool calling, plugin publishing, security review, and enterprise workspace management development scenarios.
V. Limitations The provided material is documentation navigation text and does not list specific pricing, quotas, SLAs, a complete model list, a list of supported countries/regions, specific request parameters, or complete example code; these require consulting the corresponding subpages. Some topics are marked with preview limitations, limited testing, or feature maturity, and actual availability is affected by account, project permissions, region, and organizational policies.