Skip to Content
API ReferenceOverview

API Reference

The INFER API provides an OpenAI-compatible interface for accessing decentralized AI inference.

Base URL

https://inferexchange.com/api/v1

Authentication

All API requests require a Bearer token. Include your API key in the Authorization header:

Authorization: Bearer sk-infer-YOUR_KEY_HERE

Generate API keys in your Dashboard .

Endpoints

MethodPathDescription
POST/chat/completionsCreate a chat completion
GET/modelsList 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.