> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create decision

> Answers typed questions about a state with a probability for every allowed answer, instead of generated text. Use it with decision models such as `mammoth-1`; other models return 422 on this endpoint.

Each question is read on its own against the state, so the state and one question together must fit in 16,384 tokens. A request takes up to 64 questions; split larger sets across requests. Requests that don't fit are rejected with 400, never truncated.




## OpenAPI

````yaml /api-reference/corti-models/corti-models-openapi.yml post /typesafe/v1/systemone
openapi: 3.0.3
info:
  title: Models API
  description: >-
    OpenAI-compatible and Anthropic-compatible API for Corti's LLM models.

    The models listing endpoint (`GET /v1/models`) returns the public
    AIGatewayRoute resources on the cluster this service runs on. Each model may
    carry extra metadata (capabilities, cost, effort, display name, token
    limits, ...) sourced from the llm.corti.ai/metadata annotation of the route.
    In US projects, these model IDs are served by Azure-hosted OpenAI models
    rather than Corti's own infrastructure — see
    [Regions](https://docs.corti.ai/models/regions).

    ## Available Models

    | Model | Description | |------|-------------| | `corti-s1` |
    Full-capability model | | `corti-s1-instant` | Fast variant of corti-s1 | |
    `corti-s1-mini` | Smaller model | | `corti-s1-mini-instant` | Fast variant
    of corti-s1-mini | | `corti-s1-embedding` | Embedding model |

    `-instant` variants are optimized for speed and lower token usage.

    ## Reasoning

    Some models return chain-of-thought reasoning in a `reasoning` field (chat
    completions) or as structured output items with `type: "reasoning"`
    (responses API). The `-instant` variants do not produce reasoning.

    | Model | Chat Completions | Anthropic Messages | |-------|:---:|:---:| |
    `corti-s1` | `reasoning` field present | Text content only | |
    `corti-s1-instant` | `reasoning: null` | Text content only | |
    `corti-s1-mini` | `reasoning` field present | Text content only | |
    `corti-s1-mini-instant` | `reasoning: null` | Text content only |

    ## Reasoning effort

    Set reasoning depth with `reasoning_effort` (Chat Completions) or
    `reasoning.effort` (Responses). Accepted values differ per model and region
    and are listed in `effort.levels` from `GET /v1/models`.

    On EU and FR projects:

    | Model | Accepted values | Default | Other values |
    |-------|------|:---:|------| | `corti-s1-mini` | `low`, `medium`, `xhigh` |
    `xhigh` | `400` error | | `corti-s1-mini-instant` | Ignored | — | Ignored |

    ## Authentication

    All endpoints require a bearer token issued by Corti. Pass it in the
    `Authorization` header as `Bearer <token>`.
  version: 1.0.0
  contact:
    name: Corti AI
    url: https://corti.app
servers:
  - url: https://ai.{environment}.corti.app/
    variables:
      environment:
        default: eu
        enum:
          - eu
          - fr
          - us
security:
  - bearerAuth: []
paths:
  /typesafe/v1/systemone:
    post:
      tags:
        - Decisions
      summary: Create decision
      description: >
        Answers typed questions about a state with a probability for every
        allowed answer, instead of generated text. Use it with decision models
        such as `mammoth-1`; other models return 422 on this endpoint.


        Each question is read on its own against the state, so the state and one
        question together must fit in 16,384 tokens. A request takes up to 64
        questions; split larger sets across requests. Requests that don't fit
        are rejected with 400, never truncated.
      operationId: createSystemOneDecision
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SystemOneRequest'
            examples:
              Triage:
                summary: One question of each type
                value:
                  model: mammoth-1
                  state: >-
                    58-year-old with chest pain on exertion for two weeks,
                    relieved by rest. No pain at rest.
                  questions:
                    department:
                      type: choice
                      instructions: Which department should see this patient?
                      criteria:
                        cardiology: heart and circulation
                        dermatology: skin
                        orthopedics: bones and joints
                    urgent:
                      type: noul
                      instructions: Does the patient need to be seen today?
                      criteria:
                        'true': symptoms could be life-threatening
                    severity:
                      type: score
                      instructions: How severe are the symptoms?
                      criteria:
                        - mild
                        - moderate
                        - severe
      responses:
        '200':
          description: Decision response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemOneResponse'
              examples:
                Triage:
                  summary: Answers to the triage questions
                  value:
                    id: decision-82d4140c-b151-4fcf-be91-a4661be068e9
                    object: structured_decision
                    created: 1796196928
                    model: mammoth-1
                    answers:
                      department:
                        type: choice
                        choice: cardiology
                        probabilities:
                          cardiology: 0.9969
                          dermatology: 0.001
                          orthopedics: 0.0021
                        confidence: 0.8328
                      urgent:
                        type: noul
                        noul: 0.5388
                        probabilities:
                          'yes': 0.5388
                          'no': 0.4612
                        confidence: 0.0513
                      severity:
                        type: score
                        score: 0.8546
                        legend:
                          '0': mild
                          '1': moderate
                          '2': severe
                        probabilities:
                          '0': 0.3086
                          '1': 0.5281
                          '2': 0.1633
                        confidence: 0.0749
                    usage:
                      input_tokens: 378
                      output_tokens: 3
                    diagnostics:
                      department:
                        label_mass: 0.8354
                        argmax_is_label: true
                      urgent:
                        label_mass: 0.0951
                        argmax_is_label: true
                      severity:
                        label_mass: 0.1418
                        argmax_is_label: true
                    joint: null
        '400':
          description: >
            Invalid request, such as an unknown field or question type, more
            than 64 questions, malformed criteria, or a question whose prompt
            exceeds 16,384 tokens.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The model is not served on this endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >
            Rate limit exceeded, or the model is at capacity. Retry after the
            `Retry-After` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SystemOneRequest:
      type: object
      required:
        - model
        - state
        - questions
      description: Unknown fields return 400.
      properties:
        model:
          type: string
          enum:
            - mammoth-1
          default: mammoth-1
        state:
          description: >
            What the questions are about. Text is read as written; a JSON object
            or array is read as indented JSON. Text only: images are not
            accepted.
          oneOf:
            - type: string
            - type: object
            - type: array
              items: {}
        questions:
          type: object
          description: >
            Up to 64 questions, keyed by question ID. The response answers each
            under the same ID.
          minProperties: 1
          maxProperties: 64
          additionalProperties:
            $ref: '#/components/schemas/SystemOneQuestion'
    SystemOneResponse:
      type: object
      required:
        - id
        - object
        - created
        - model
        - answers
        - usage
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - structured_decision
        created:
          type: integer
          format: int64
          description: Unix timestamp (in seconds).
        model:
          type: string
        answers:
          type: object
          description: One answer per question, keyed by question ID.
          additionalProperties:
            $ref: '#/components/schemas/SystemOneAnswer'
        usage:
          type: object
          required:
            - input_tokens
            - output_tokens
          properties:
            input_tokens:
              type: integer
              description: >
                Prompt tokens across all questions. Each question is read with
                the full state, so the state counts once per question.
            output_tokens:
              type: integer
              description: One per question.
        diagnostics:
          type: object
          description: Per-question read diagnostics, keyed by question ID.
          additionalProperties:
            type: object
            properties:
              label_mass:
                type: number
                minimum: 0
                maximum: 1
                description: >
                  Probability the model put on the answer labels, out of its
                  whole vocabulary. A low value means most of it went elsewhere.
              argmax_is_label:
                type: boolean
                description: >-
                  Whether the model's single most likely token was an answer
                  label.
        joint:
          type: object
          nullable: true
          description: Always `null` for `mammoth-1`.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message or object with message.
        detail:
          type: string
    SystemOneQuestion:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - choice
            - noul
            - score
          description: >
            `choice` picks one of named options, `noul` answers yes or no, and
            `score` rates the state on ordered levels.
        instructions:
          type: string
          description: The question to ask about the state.
        criteria:
          description: >
            For `choice` (required): an object mapping each option name to its
            description or `null`, 1 to 255 options. For `noul` (optional): an
            object with `true` and/or `false` describing what yes and no mean.
            For `score` (required): a list of 2 to 10 level descriptions, lowest
            first; a level's index is its score.
          oneOf:
            - type: object
              additionalProperties:
                type: string
                nullable: true
            - type: array
              items:
                type: string
              minItems: 2
              maxItems: 10
    SystemOneAnswer:
      type: object
      required:
        - type
        - probabilities
        - confidence
      properties:
        type:
          type: string
          enum:
            - choice
            - noul
            - score
        choice:
          type: string
          description: '`choice` only: the most likely option name.'
        noul:
          type: number
          minimum: 0
          maximum: 1
          description: '`noul` only: the probability of yes.'
        score:
          type: number
          description: >
            `score` only: the expected level, from 0 to the number of levels
            minus 1. For example, 1.5 falls between levels 1 and 2.
        legend:
          type: object
          additionalProperties:
            type: string
          description: '`score` only: each level''s index mapped to its description.'
        probabilities:
          type: object
          additionalProperties:
            type: number
          description: >
            Probability of each allowed answer, summing to 1: per option name
            for `choice`, `yes` and `no` for `noul`, and per level index for
            `score`.
        confidence:
          type: number
          minimum: 0
          maximum: 1
          description: >
            The most likely answer's probability times `label_mass`, so it is
            low when the model is unsure between answers or when little of its
            probability went to the answer labels at all.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        Use a Corti-issued bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.