Skip to content

API Reference

N.E.K.O. exposes a comprehensive API surface through FastAPI. All endpoints are served from the main server (default http://localhost:48911).

Base URL

http://localhost:48911

Authentication

The API does not require authentication for local access. API keys for LLM providers are managed separately through the Configuration system.

REST endpoints

RouterPrefixDescription
Config/api/configAPI keys, preferences, provider settings
Characters/api/charactersCharacter CRUD, voice settings, microphone
Live2D/api/live2dLive2D model management, emotion mapping
VRM/api/model/vrmVRM model management, animations
Memory/api/memoryMemory files, review configuration
Agent/api/agentAgent flags, tasks, health checks
Workshop/api/steam/workshopSteam Workshop items, publishing
System/apiEmotion analysis, screenshots, utilities

WebSocket

EndpointDescription
ProtocolConnection lifecycle and session management
Message TypesAll client→server and server→client message formats
Audio StreamingBinary audio format, interruption, resampling

Internal APIs

These are inter-service APIs not intended for external use:

ServerDescription
Memory ServerMemory storage and retrieval (port 48912)
Agent ServerAgent task execution (port 48915)

Response format

All REST endpoints return JSON. Successful responses typically include the data directly. Error responses follow FastAPI's default format:

json
{
  "detail": "Error message describing what went wrong"
}

Content types

  • application/json — Most endpoints
  • multipart/form-data — File uploads (models, voice samples)
  • audio/* — Voice preview responses

Released under the MIT License.