https://l0ng-backend.monyephoyn.workers.dev
All endpoints are relative to this base URL. No authentication is required for the current public build.
| Parameter | Type | Required | Description |
|---|---|---|---|
| message | string | required | The user's message. |
| mode | string | optional | Reasoning mode. Default: standard. See Modes section. |
| history | array | optional | Previous messages. Each item: {"role": "user"|"assistant", "content": "..."} |
// Request POST /api/chat Content-Type: application/json { "message": "Explain pathfinding in Roblox", "mode": "standard", "history": [ { "role": "user", "content": "Hey" }, { "role": "assistant", "content": "Hey! What can I help with?" } ] }
{
"response": "PathfindingService in Roblox lets you...",
"mode": "standard",
"tokens": 312
}
{
"status": "ok",
"model": "L0NG-1",
"version": "1.0.0"
}
The mode parameter controls how L0NG-1 approaches your request.
All errors return a JSON body with an error field and a standard HTTP status code.
| Status | Meaning |
|---|---|
| 400 | Bad request — missing or empty message field. |
| 405 | Method not allowed — use POST for /api/chat. |
| 500 | Internal server error — model inference failed. |