OpenAPI Specification
Codex Relay publishes an OpenAPI specification containing only its public OpenAI-compatible endpoints. Import it into Apifox, Postman, or another OpenAPI 3.1-compatible tool.
Download
Import into Apifox
- Create or open a project.
- Choose the OpenAPI file or URL import option.
- Use
https://doc.codexapi.asia/openapi.yaml. - Create a production environment with Base URL
https://codexapi.asia. - Store the API key in a local environment variable. Never publish a real key in online documentation.
Scope
The specification includes only public OpenAI model endpoints. It intentionally excludes other protocols, administration, account pools, proxies, user management, and operations APIs.
Models and some capabilities vary by group, so model is a string rather than a static enumeration. Call /v1/models before making requests.
