Skip to main content

Overview

The nilAI API provides the following endpoints for interfacing with Private LLMs:

NameMethodEndpointDescription
Chat CompletionPOST/v1/chat/completionsGenerate AI chat responses
ResponsesPOST/v1/responsesGenerate AI responses with flexible input formats
ModelsGET/v1/modelsList available models
AttestationGET/v1/attestation/reportGet cryptographic proof of environment
UsageGET/v1/usageTrack your token usage
DelegationGET/v1/delegationGet prompt store delegation token
Health CheckGET/v1/healthCheck service status

Pricing Endpoints

NameMethodEndpointDescription
All PricesGET/v1/pricingGet pricing for all models
Model PriceGET/v1/pricing/{model_name}Get pricing for a specific model