Base URL
Point every request at the following base URL:Authentication
All requests must include your API key as a Bearer token in theAuthorization header:
OpenAI Compatibility
The Pinaivu API implements the same request and response schema as the OpenAI API. In practice, this means you can point any OpenAI SDK or compatible tooling directly at the Pinaivu base URL without changing your existing code:Response Format
Every response follows the OpenAI response schema. In addition, Pinaivu includes arequest_id field at the top level of every response object:
request_id to look up the routing receipt for any completed inference — including the node that served it, the payment settled, and a coordinator signature produced inside an AWS Nitro Enclave.
Errors
Pinaivu uses standard HTTP status codes. When a request fails, the response body contains anerror object with a message field describing the problem.
| Status | Error | Description |
|---|---|---|
400 | Bad Request | Invalid parameters — check your request body. |
401 | Unauthorized | Missing or invalid API key. |
403 | Forbidden | Insufficient permissions for this operation. |
422 | Unprocessable | Malformed request body — the server could not parse your JSON. |
429 | Too Many Requests | Rate limit exceeded — back off and retry. |
503 | Service Unavailable | No GPU nodes are currently available to serve this model. |
Endpoints
Chat Completions
POST /v1/chat/completions — run LLM inference and get a response.
Usage
GET /v1/usage — view token counts and request statistics.
Models
GET /v1/models — list LLMs currently available on the network.
Receipts
GET /v1/receipts/ — fetch a signed routing receipt.