Overview
The nilAI API provides the following endpoints for interfacing with Private LLMs:
| Name | Method | Endpoint | Description |
|---|---|---|---|
| Chat Completion | POST | /v1/chat/completions | Generate AI chat responses |
| Responses | POST | /v1/responses | Generate AI responses with flexible input formats |
| Models | GET | /v1/models | List available models |
| Attestation | GET | /v1/attestation/report | Get cryptographic proof of environment |
| Usage | GET | /v1/usage | Track your token usage |
| Delegation | GET | /v1/delegation | Get prompt store delegation token |
| Health Check | GET | /v1/health | Check service status |
Pricing Endpoints
| Name | Method | Endpoint | Description |
|---|---|---|---|
| All Prices | GET | /v1/pricing | Get pricing for all models |
| Model Price | GET | /v1/pricing/{model_name} | Get pricing for a specific model |