Skip to content

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 ​

Download openapi.yaml

Import into Apifox ​

  1. Create or open a project.
  2. Choose the OpenAPI file or URL import option.
  3. Use https://doc.codexapi.asia/openapi.yaml.
  4. Create a production environment with Base URL https://codexapi.asia.
  5. 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.