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

# Decision models and prices

> The models behind /decide with their price per million billed tokens and the request limits. Unauthenticated and cacheable.



## OpenAPI

````yaml /openapi.json get /decide/models
openapi: 3.1.0
info:
  title: tokz API
  version: 1.0.0
  description: >-
    Typed decisions about text from the open OpenDecision models. Text sent to
    /decide is read by the model and never stored or logged; only counters are
    kept. Fine tunes are built in the dashboard, which is not part of this API.
  contact:
    name: tokz
    url: https://tokz.si
servers:
  - url: https://api.tokz.si
    description: Production
  - url: http://127.0.0.1:3999
    description: Local dev (dev:pglite)
security:
  - bearerAuth: []
tags:
  - name: Decisions
    description: Typed decisions about text, answered by the OpenDecision models.
  - name: Fine tunes
    description: >-
      The files of a model you trained. Starting, canceling and deleting one
      happen in the dashboard.
  - name: Operations
    description: Health and diagnostics.
paths:
  /decide/models:
    get:
      tags:
        - Decisions
      summary: Decision models and prices
      description: >-
        The models behind /decide with their price per million billed tokens and
        the request limits. Unauthenticated and cacheable.
      operationId: decideModels
      responses:
        '200':
          description: The model catalog.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecideModels'
      security: []
components:
  schemas:
    DecideModels:
      type: object
      required:
        - default
        - models
        - limits
      properties:
        default:
          type: string
        models:
          type: array
          items:
            type: object
            required:
              - id
              - tier
              - usd_per_1m_billed_tokens
            properties:
              id:
                type: string
              tier:
                type: string
                enum:
                  - fast
                  - default
                  - accuracy
              usd_per_1m_billed_tokens:
                type: number
        limits:
          type: object
          properties:
            maxInputs:
              type: integer
            maxDecisions:
              type: integer
            maxOptions:
              type: integer
            maxTextChars:
              type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key: `Authorization: Bearer tokz_live_<id>_<secret>`. Only a
        SHA-256 hash of the secret is stored.

````

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