Berget AI System One API

TypeSafe Jev-compatible typed judgments about application state

GitHub OpenAPI

Operations 1

POST /v1/systemone/ Answer System One questions #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/berget-ai:berget-ai-system-one-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

berget-ai-system-one-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Berget Ai System One API
  version: 1.0.0
  contact:
    name: Berget AI Support
    email: support@berget.ai
    url: https://berget.ai/support
  license:
    name: Proprietary
    url: https://berget.ai/terms
  description: 'Operations tagged System One across 2 of this provider''s published API definitions: berget-ai-openapi.json, berget-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.berget.ai
  description: Production API
- url: https://api.stage.berget.ai
  description: Stage API
tags:
- name: System One
  description: TypeSafe Jev-compatible typed judgments about application state
paths:
  /v1/systemone/:
    post:
      operationId: systemOne
      summary: Answer System One questions
      tags:
      - System One
      description: 'Answers typed questions (`noul`, `choice`, `score`) about an application state and

        returns a structured judgement per question — probabilities and confidence, never

        prose. Compatible with the TypeSafe Jev `/v1/systemone` API.


        ## Quick start


        ```bash

        curl https://api.berget.ai/v1/systemone \

        -H "Authorization: Bearer $BERGET_API_KEY" \

        -H ''Content-Type: application/json'' \

        -d ''{

        "model": "laya-latest",

        "state": "I was charged twice for my subscription.",

        "questions": {

        "route": {"type": "choice", "instructions": "Which team should handle this?",

        "criteria": {"billing": "Payments", "technical": "Bugs"}},

        "refund": {"type": "noul", "instructions": "Is the customer asking for money back?"},

        "urgency": {"type": "score", "instructions": "How urgent is this?",

        "criteria": ["Low", "Rising", "Critical"]}

        }

        }''

        ```


        All questions in one request are answered in a single pass; adding questions

        barely changes response time.


        ## Using the TypeSafe SDK


        Point the official TypeSafe SDK at Berget

        and pass a `model` explicitly:


        ```python

        from typesafe_sdk import Choice, Noul, Score, TypeSafeClient


        client = TypeSafeClient(

        base_url="https://api.berget.ai",

        api_key="sk_ber_...",

        model="laya-latest",

        )

        ```


        > **Note** — the SDK''s built-in default model id `jev-latest` is **not** served

        > on Berget and returns 404. Always set `model` (or pass it per call) to one of:

        > `Qwen/Qwen3.5-2B` (default), `convaiinnovations/laya`.

        > Convenience aliases: `systemone`, `systemone-qwen3.5-2b`, `systemone-laya`,

        > `laya-latest`.


        ## Limits


        | Constraint | Value |

        | ---------- | ----- |

        | Questions per request | 1–64 (all answered in parallel) |

        | `choice.criteria` options | 2–255 |

        | `score.criteria` levels | 2–10 (ordered) |

        | `state` | string, object, or array — nested structures allowed |


        ## Errors


        - `400` — request failed schema validation (missing `state`, empty `questions`, …).

        - `422` — rejected by a question validation rule (e.g. a `choice` with 1 or

        256 options, a `score` with 11 levels).

        - `401` — missing or invalid API key. `404` — unknown `model` id.

        - `502`/`503` — the service is temporarily unavailable; retry with backoff.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SystemOneRequestInput'
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Answers to every question
          content:
            application/json:
              schema:
                description: Answers to every question
                allOf:
                - $ref: '#/components/schemas/SystemOneResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error message
                      type:
                        type: string
                        description: Error type (e.g. "invalid_request_error")
                      param:
                        description: The parameter that caused the error
                        type:
                        - string
                        - 'null'
                      code:
                        description: Error code
                        type:
                        - string
                        - 'null'
                    required:
                    - message
                    - type
                    - code
                    additionalProperties: false
                required:
                - error
                additionalProperties: false
                description: Invalid request
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error message
                      type:
                        type: string
                        description: Error type (e.g. "invalid_request_error")
                      param:
                        description: The parameter that caused the error
                        type:
                        - string
                        - 'null'
                      code:
                        description: Error code
                        type:
                        - string
                        - 'null'
                    required:
                    - message
                    - type
                    - code
                    additionalProperties: false
                required:
                - error
                additionalProperties: false
                description: Authentication error
        '404':
          description: Model not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error message
                      type:
                        type: string
                        description: Error type (e.g. "invalid_request_error")
                      param:
                        description: The parameter that caused the error
                        type:
                        - string
                        - 'null'
                      code:
                        description: Error code
                        type:
                        - string
                        - 'null'
                    required:
                    - message
                    - type
                    - code
                    additionalProperties: false
                required:
                - error
                additionalProperties: false
                description: Model not found
        '422':
          description: Question validation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error message
                      type:
                        type: string
                        description: Error type (e.g. "invalid_request_error")
                      param:
                        description: The parameter that caused the error
                        type:
                        - string
                        - 'null'
                      code:
                        description: Error code
                        type:
                        - string
                        - 'null'
                    required:
                    - message
                    - type
                    - code
                    additionalProperties: false
                required:
                - error
                additionalProperties: false
                description: Question validation failed
        '502':
          description: Temporary error, please retry
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error message
                      type:
                        type: string
                        description: Error type (e.g. "invalid_request_error")
                      param:
                        description: The parameter that caused the error
                        type:
                        - string
                        - 'null'
                      code:
                        description: Error code
                        type:
                        - string
                        - 'null'
                    required:
                    - message
                    - type
                    - code
                    additionalProperties: false
                required:
                - error
                additionalProperties: false
                description: Temporary error, please retry
        '503':
          description: Temporarily unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error message
                      type:
                        type: string
                        description: Error type (e.g. "invalid_request_error")
                      param:
                        description: The parameter that caused the error
                        type:
                        - string
                        - 'null'
                      code:
                        description: Error code
                        type:
                        - string
                        - 'null'
                    required:
                    - message
                    - type
                    - code
                    additionalProperties: false
                required:
                - error
                additionalProperties: false
                description: Temporarily unavailable
    servers:
    - url: https://api.berget.ai
      description: Production API
    - url: https://api.stage.berget.ai
      description: Stage API
components:
  schemas:
    SystemOneRequestInput:
      type: object
      properties:
        model:
          description: The System One model to use. Defaults to `Qwen/Qwen3.5-2B`.
          type: string
        state:
          description: The application state the questions are asked about
        questions:
          type: object
          additionalProperties:
            type: object
            properties:
              type:
                type: string
                description: Question type, e.g. `noul`, `choice`, or `score`
            required:
            - type
            additionalProperties: {}
            description: 'A question about the state. Type-specific fields are forwarded unchanged.


              All three types share `type` and `instructions`; `choice` and `score` add `criteria`:


              - **noul** — a yes/no question. `instructions` (required): the statement to evaluate. Optional `criteria: { "true": ..., "false": ... }` describes what yes and no mean.

              - **choice** — pick one option. `instructions` (required) plus `criteria` (required): a map of option to rubric description (use `null` when an option needs no detail). Between 2 and 255 options.

              - **score** — rate the state on an ordered scale. `instructions` (required) plus `criteria` (required): an ordered array of 2-10 level descriptions.


              `instructions` may be a string, an object, or an array. Use an object to give the question extra context: put the question in one field and reference data fields by name in backticks.'
          description: Questions keyed by a caller-chosen id
      required:
      - state
      - questions
      additionalProperties: {}
    SystemOneResponse:
      type: object
      properties:
        model:
          type: string
          description: Public model id
        answers:
          type: object
          additionalProperties:
            type: object
            properties:
              type:
                type: string
                description: Answer type, matching the question type
            required:
            - type
            additionalProperties: {}
            description: 'The answer to one question. Type-specific fields are returned unchanged:


              - **noul** — `noul`: probability (0-1) that the statement is true.

              - **choice** — `choice`: the highest-probability option, `probabilities`: every option mapped to its probability (sums to 1), `confidence`: 0-1, derived from the distribution.

              - **score** — `score`: probability-weighted value across the levels (can land between levels), `legend`: each level index mapped to its description, `probabilities`: per level, `confidence`: 0-1, derived from the distribution.'
          description: Answers keyed by question id
        usage:
          type: object
          properties:
            input_tokens:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            output_tokens:
              type: integer
              minimum: 0
              maximum: 9007199254740991
          required:
          - input_tokens
          - output_tokens
          additionalProperties: false
          description: Token usage for this request.
      required:
      - model
      - answers
      - usage
      additionalProperties: false
      examples:
      - model: Qwen/Qwen3.5-2B
        answers:
          model:
            type: choice
            choice: powerful
            probabilities:
              lightweight: 0.07
              powerful: 0.93
            confidence: 0.64
          task_complexity:
            type: score
            score: 1.8
            legend:
              '0': 'Single step: one lookup or one tool call'
              '1': A few steps, no coordination needed
              '2': 'Multi-step: planning and several tool calls'
              '3': 'Long-running: needs progress tracking and verification'
            probabilities:
              '0': 0.06
              '1': 0.12
              '2': 0.77
              '3': 0.05
            confidence: 0.45
          needs_tools:
            type: noul
            noul: 0.65
        usage:
          input_tokens: 179
          output_tokens: 295
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API key
      description: 'Bearer token or API key. Pass either a JWT token or an API key (sk_ber_*) in the Authorization header as: Bearer <token>'
x-refined-from:
- berget-ai-openapi.json
- berget-ai-openapi.yml