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

# List models

> Every model id with its status, effective limits and price. Public: no API key needed. Rate limited per client IP.



## OpenAPI

````yaml /openapi.json get /v1/models
openapi: 3.1.0
info:
  title: Torchcast Decision API
  version: 1.0.0
  description: >-
    Calibrated probabilities for yes/no, multiple-choice and ordinal questions
    about a piece of text, using the standard decisions API request and response
    shape.
servers:
  - url: https://api.torchcast.ai
security:
  - bearerAuth: []
paths:
  /v1/models:
    get:
      summary: List models
      description: >-
        Every model id with its status, effective limits and price. Public: no
        API key needed. Rate limited per client IP.
      operationId: listModels
      responses:
        '200':
          description: The models.
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelList'
              examples:
                models:
                  summary: An alias and its pinned id
                  value:
                    data:
                      - id: torchcast-decider-latest
                        kind: alias
                        target_model: torchcast-decider-4b-v1-1-api-1
                        status: active
                        replacement_model: null
                        price_per_million_input_tokens_usd: null
                        max_questions: 16
                        max_options: 255
                        max_levels: 10
                        max_body_bytes: 29360128
                      - id: torchcast-decider-4b-v1-1-api-1
                        kind: pinned
                        target_model: null
                        status: active
                        replacement_model: null
                        price_per_million_input_tokens_usd: null
                        max_questions: 16
                        max_options: 255
                        max_levels: 10
                        max_body_bytes: 29360128
        '429':
          description: Rate limit exceeded; retry after `Retry-After` seconds.
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  summary: Rate limit exceeded
                  value:
                    error:
                      message: Rate limit exceeded. Retry after the indicated delay.
                      type: rate_limit_error
                      code: rate_limited
        '500':
          description: Internal error. Not charged.
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  summary: Internal error
                  value:
                    error:
                      message: Internal error.
                      type: api_error
                      code: internal_error
        '503':
          description: The model list is temporarily unavailable; retry with backoff.
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                model_unavailable:
                  summary: Model unavailable
                  value:
                    error:
                      message: The requested model is temporarily unavailable.
                      type: api_error
                      code: model_unavailable
      security: []
components:
  headers:
    RequestId:
      description: Unique id of this request (`req_...`). Quote it to support.
      required: true
      schema:
        type: string
    RetryAfter:
      description: Seconds to wait before retrying.
      required: true
      schema:
        type: string
  schemas:
    ModelList:
      type: object
      additionalProperties: false
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
            - code
          properties:
            message:
              type: string
              description: Human-readable. Never contains request input.
            type:
              enum:
                - invalid_request_error
                - authentication_error
                - billing_error
                - rate_limit_error
                - api_error
            code:
              type: string
            param:
              type: string
              description: >-
                Path of the offending field, such as
                `questions.severity.criteria`. Never a value.
            valid_models:
              type: array
              items:
                type: string
            replacement_model:
              type:
                - string
                - 'null'
            required_usd:
              type: string
              pattern: ^-?[0-9]+\.[0-9]{6}$
            available_usd:
              type: string
              pattern: ^-?[0-9]+\.[0-9]{6}$
            topup_url:
              type:
                - string
                - 'null'
              description: >-
                Console page for adding credit; null while console top-ups are
                not available.
            limit_usd:
              type: string
              pattern: ^-?[0-9]+\.[0-9]{6}$
            resets_at:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Start of the key's next spend period, in UTC; null for a
                lifetime limit.
    Model:
      type: object
      additionalProperties: false
      required:
        - id
        - kind
        - target_model
        - status
        - replacement_model
        - price_per_million_input_tokens_usd
        - max_questions
        - max_options
        - max_levels
        - max_body_bytes
      properties:
        id:
          type: string
        kind:
          enum:
            - pinned
            - alias
          description: A pinned id never changes meaning; an alias moves.
        target_model:
          type:
            - string
            - 'null'
          description: The pinned id an alias points at; null for pinned ids.
        status:
          enum:
            - active
            - retired
        replacement_model:
          type:
            - string
            - 'null'
          description: The id to move to when this one is retired.
        price_per_million_input_tokens_usd:
          type:
            - string
            - 'null'
          pattern: ^-?[0-9]+\.[0-9]{6}$
          description: >-
            Price in USD per 1,000,000 billable input tokens, as a decimal
            string with six decimals. This field is the source of truth for
            prices.
        max_questions:
          type: integer
          minimum: 1
          maximum: 128
        max_options:
          type: integer
          minimum: 1
          maximum: 255
        max_levels:
          type: integer
          minimum: 1
          maximum: 10
        max_body_bytes:
          type:
            - integer
            - 'null'
          minimum: 1
          maximum: 29360128
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A Decision API key from the console (starts with `tcd_`).

````

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