Native API
| Method | Route | Purpose |
|---|---|---|
| GET | /api/v1/health | Local service status |
| GET | /api/v1/models | Registered models |
| POST | /api/v1/models/load | Load weights |
| POST | /api/v1/models/unload | Release resources |
| POST | /api/v1/generate | Text generation |
| POST | /api/v1/tokenize | Encode text |
| POST | /api/v1/detokenize | Decode tokens |
| GET | /api/v1/hardware | Hardware inventory |
| GET | /api/v1/jobs | Job status |
| POST | /api/v1/evaluate | Start evaluation |
Compatible inference API
| Route | Intended capability |
|---|---|
| /v1/models | Model discovery |
| /v1/completions | Text completion |
| /v1/chat/completions | Future instruction-trained models |
| /v1/embeddings | Future embedding models |
| /v1/responses | Future compatibility |
| /v1/images/* | Future image models |
| /v1/audio/* | Future audio models |
from openai import OpenAI
# Proposed future local API, not currently available.
client = OpenAI(
base_url="http://127.0.0.1:8765/v1",
api_key="YOUR_LOCAL_KEY"
)
response = client.completions.create(
model="avq-1.0-halo",
prompt="Artificial intelligence is",
max_tokens=64
)
print(response.choices[0].text)Security and error handling
Bind to loopback by default; enabling LAN access requires deliberate configuration and authenticated transport. Separate inference-only credentials from workspace, training and administrative scopes. Enforce limits, validate input shapes, return structured errors and document streaming behavior.
| HTTP status | Intended meaning |
|---|---|
| 400 | Invalid input or unsupported configuration |
| 401 | Missing or invalid authentication |
| 403 | Insufficient permission |
| 404 | Model or artifact not found |
| 409 | Resource conflict |
| 429 | Resource or rate limit reached |
| 503 | Runtime or model unavailable |