Base URLs
The Relace API is organized into two base URLs:models.relace.ai for direct AI model access, and api.relace.run for general infrastructure services including source control.
Model Endpoints
/v1/code/apply, /v2/code/rank, /v1/code/compact.
Infrastructure Endpoints
Authentication
To authenticate you need to add an Authorization header with the contents of the header being your Relace API Key, which is a 32 digit key with with the prefixrlc-.
Response Codes
Relace uses standard HTTP codes to indicate the success or failure of your requests. In general, 2xx HTTP codes correspond to success, 4xx codes are for user-related failures, and 5xx codes are for infrastructure issues.
Check Error Codes for a comprehensive breakdown of all possible API errors.