Skip to content
OneAPIDocs
ModelsOpen console

API reference

System One

A judgement call, not a chat: send the current state plus the questions to answer, get the answers back as unary JSON.

POSThttps://api.oneapi.id/v1/systemone
Key header
Authorization: Bearer or x-api-key
Streaming
Never: stream: true is a 400
Models
Routes backed by the OpenCode System One vendor

Request

Minimal System One call
{
  "model": "jev",
  "state": "Hi, I need help connecting Stripe, this is urgent.",
  "questions": {
    "urgency": { "type": "noul", "instructions": "Does this message express urgency?" }
  }
}

state is a string or an object describing the situation. questionsfollows the model's schema (choice, score, noul). The model is the public route alias from Models, never the upstream ID.

Body fields

modelstring required

The public route alias.

statestring | object required

The situation to judge.

questionsobject required

One entry per question, keyed by name.

streamboolean

Omit it, or send false. true is rejected.

Response

model echoes the public alias. answers is keyed exactly like the request's questions.

200 OK, shape only
{
  "model": "jev",
  "answers": { "urgency": { "type": "noul", "noul": 0.8 } },
  "usage": { "input_tokens": 4, "output_tokens": 1 }
}