PureRouter Public API
The PureRouter API allows you to interact with PureAI’s intelligent LLM routing service. This documentation provides details about the public endpoints available for use in your applications.Authentication
All endpoints require authentication via API key. Contact support to obtain your access credentials.Public Endpoints
The PureRouter public API offers the following endpoints:Router - Intelligent Routing (/v1/infer)
Sends a query to be automatically routed to the most suitable model based on the selected profile. Example with curl:Deployments - Invoke Specific Model (/v1/deployments//invoke)
Sends a request to a specific model through its deployment ID. Example with curl:Response Examples
Response from /v1/infer endpoint
Response from /v1/deployments//invoke endpoint
Error Handling
The PureRouter API returns standard HTTP status codes to indicate the success or failure of a request. In case of error, the response body will contain detailed information about the problem.Common Status Codes
- 200 OK: The request was successful
- 400 Bad Request: The request contains invalid parameters or is malformed
- 401 Unauthorized: Authentication failure (invalid or missing API key)
- 404 Not Found: The requested resource was not found
- 500 Internal Server Error: Internal server error