Get the OpenAI API OpenAPI specification
mainThe OpenAI API is described using an OpenAPI 3.1 specification. You can use this specification to generate typed clients, build API explorers, configure testing tools, or integrate with any OpenAPI-compatible workflow. You can browse the specification directly in the repository or download the latest version using curl.
curl -L https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml \
-o openai-openapi.yaml