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

# List models



## OpenAPI

````yaml /platform/openapi.json get /v1/models
openapi: 3.1.0
info:
  title: Notra Labs Platform API
  version: 1.0.0
  description: >-
    OpenAI-compatible API for writer-0.1. Requests may have up to 500 messages
    and 1.45 MB of JSON. Docs: https://www.usenotra.com/docs/platform/overview.
    For agents: https://platform.usenotra.com/llms.txt.
servers:
  - url: https://platform.usenotra.com
security:
  - bearerAuth: []
tags:
  - name: Chat Completions
  - name: Responses
  - name: Models
paths:
  /v1/models:
    get:
      tags:
        - Models
      summary: List models
      operationId: listModels
      responses:
        '200':
          description: The models your key can call.
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelList'
        '401':
          description: '`invalid_api_key`'
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  message: Check the key and the Authorization header.
                  type: invalid_request_error
                  param: null
                  code: invalid_api_key
        '429':
          description: '`rate_limit_exceeded`'
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  message: >-
                    Wait for `retry-after` seconds; the `x-ratelimit-*` headers
                    show the limits.
                  type: invalid_request_error
                  param: null
                  code: rate_limit_exceeded
        '503':
          description: >-
            `model_starting`, `model_overloaded`, `model_unavailable`,
            `service_unavailable`
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  message: Retry after `retry-after` seconds for up to 10 minutes.
                  type: server_error
                  param: null
                  code: model_starting
components:
  headers:
    RequestId:
      description: The request's ID. Include it when you contact support.
      schema:
        type: string
  schemas:
    ModelList:
      type: object
      required:
        - object
        - data
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
            - param
            - code
          properties:
            message:
              type: string
            type:
              type: string
              description: >-
                OpenAI's error type, such as `invalid_request_error`,
                `authentication_error`, `insufficient_quota`, `requests`,
                `tokens` or `server_error`.
            param:
              anyOf:
                - type: string
                  description: The request field that caused the error.
                - type: 'null'
            code:
              type: string
              enum:
                - invalid_request
                - unsupported_parameter
                - context_length_exceeded
                - invalid_api_key
                - insufficient_credits
                - model_not_found
                - method_not_allowed
                - request_too_large
                - rate_limit_exceeded
                - upstream_error
                - upstream_timeout
                - model_starting
                - model_overloaded
                - model_unavailable
                - service_unavailable
    Model:
      type: object
      required:
        - id
        - object
        - created
        - owned_by
      properties:
        id:
          type: string
          examples:
            - writer-0.1
        object:
          type: string
          const: model
        created:
          type: integer
        owned_by:
          type: string
          const: notra-labs
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key from the console, starting with `nl_live_` or `nl_test_`.

````

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