Skip to main content

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 the Authorization header:

Endpoints

Request Format

All POST 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 optional openmodex field with routing and performance metadata:

Idempotency

For POST requests, you can pass an Idempotency-Key header to ensure the same request is not processed twice:
Idempotency keys are valid for 24 hours.