Base URL
Use the Sandbox environment for development and testing — it behaves identically to Production but does not incur charges.
All API endpoints are OpenAI-compatible. If you’re already using the OpenAI API, you can switch by changing the base URL and API key.
Authentication
Include your API key in theAuthorization header:
Endpoints
Request Format
AllPOST requests accept JSON bodies with Content-Type: application/json.
Response Format
All responses return JSON. Successful responses include the data directly. Error responses follow this format:HTTP Status Codes
OpenModex Response Metadata
Every response includes an optionalopenmodex field with routing and performance metadata:
Idempotency
ForPOST requests, you can pass an Idempotency-Key header to ensure the same request is not processed twice: