openai/openai-openapi

OpenAPI specification for the OpenAI API

What it solves

This repository provides a machine-readable definition of the OpenAI REST API. It eliminates the need for developers to manually write API clients or documentation, ensuring that tools and SDKs stay synchronized with the actual API behavior.

How it works

The project publishes the API's endpoints, authentication methods, parameters, and request/response schemas in OpenAPI 3.1 format (available as openapi.yaml and openapi.json). These files are automatically synchronized from OpenAI's internal source to ensure accuracy.

Who it’s for

Developers who want to build typed clients, create API explorers, configure testing tools, or integrate the OpenAI API into any OpenAPI-compatible workflow.

Highlights

  • Official OpenAPI 3.1 specification for the OpenAI API.
  • Serves as the source for official SDKs in Python, JavaScript/TypeScript, .NET, Go, Java, and Ruby.
  • Machine-readable YAML and JSON formats for easy tool integration.

Related

  • Project
  • Project
  • Project
  • Dispatch
  • Project