Research initiative in developmentRelease status →
Documentation

Local API reference

Proposed native Starfire API and OpenAI-compatible inference contracts. These endpoints are specifications, not live services.

Native API

MethodRoutePurpose
GET/api/v1/healthLocal service status
GET/api/v1/modelsRegistered models
POST/api/v1/models/loadLoad weights
POST/api/v1/models/unloadRelease resources
POST/api/v1/generateText generation
POST/api/v1/tokenizeEncode text
POST/api/v1/detokenizeDecode tokens
GET/api/v1/hardwareHardware inventory
GET/api/v1/jobsJob status
POST/api/v1/evaluateStart evaluation

Compatible inference API

RouteIntended capability
/v1/modelsModel discovery
/v1/completionsText completion
/v1/chat/completionsFuture instruction-trained models
/v1/embeddingsFuture embedding models
/v1/responsesFuture 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 statusIntended meaning
400Invalid input or unsupported configuration
401Missing or invalid authentication
403Insufficient permission
404Model or artifact not found
409Resource conflict
429Resource or rate limit reached
503Runtime or model unavailable

Search Starfire