API Reference
The INFER API provides an OpenAI-compatible interface for accessing decentralized AI inference.
Base URL
https://inferexchange.com/api/v1Authentication
All API requests require a Bearer token. Include your API key in the Authorization header:
Authorization: Bearer sk-infer-YOUR_KEY_HEREGenerate API keys in your Dashboard .
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /chat/completions | Create a chat completion |
GET | /models | List available models |
Response Format
All responses follow a consistent JSON format:
{
"data": { ... }
}Error responses:
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable description"
}
}OpenAI SDK Compatibility
The API is designed as a drop-in replacement for OpenAI. Change your base_url to use INFER with any OpenAI-compatible SDK or tool.