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

# List models

> Every model your key can call right now. Models an operator has
disabled are omitted; if every model is disabled the list is empty.

`owned_by` is the model maker's name (e.g. `OpenAI`, `DeepSeek`) —
it says who trained the model, not where it is served.
`max_input_tokens` and `rate_limit_rpm` are live operator-tuned
ceilings, so re-read this list rather than caching it for long.

BYOK (`@provider/...`) models are not merged into this list.




## OpenAPI

````yaml /openapi.yaml get /v1/models
openapi: 3.1.0
info:
  title: Square1 API
  version: 1.0.0
  description: |
    OpenAI-compatible LLM gateway API.

    All endpoints live on `https://inference.square1.dev` and require a
    Square1 API key (`sq-arca-...`, or a legacy `ws-...` key) sent as a
    Bearer token.

    The wire format follows the OpenAI Chat Completions / Embeddings /
    Models conventions, with a small set of documented vendor extensions:
    the `reasoning_effort` request field, the `reasoning` delta/message
    field, and the `wellspring` quota-receipt block on chat responses.
servers:
  - url: https://inference.square1.dev
security:
  - bearerAuth: []
tags:
  - name: Chat
    description: OpenAI-compatible chat completions.
  - name: Embeddings
    description: OpenAI-compatible embeddings.
  - name: Models
    description: The model catalog as visible to your key.
  - name: Account
    description: Read-only introspection for the authenticated key.
  - name: Illustration
    description: NovelAI-compatible synchronous image generation.
paths:
  /v1/models:
    get:
      tags:
        - Models
      summary: List models
      description: |
        Every model your key can call right now. Models an operator has
        disabled are omitted; if every model is disabled the list is empty.

        `owned_by` is the model maker's name (e.g. `OpenAI`, `DeepSeek`) —
        it says who trained the model, not where it is served.
        `max_input_tokens` and `rate_limit_rpm` are live operator-tuned
        ceilings, so re-read this list rather than caching it for long.

        BYOK (`@provider/...`) models are not merged into this list.
      operationId: listModels
      responses:
        '200':
          description: Model list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    ModelList:
      type: object
      required:
        - object
        - data
      properties:
        object:
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
    Model:
      type: object
      required:
        - id
        - object
        - created
        - owned_by
      properties:
        id:
          type: string
        object:
          const: model
        created:
          type: integer
          description: Always 0 (catalog entries carry no creation time).
        owned_by:
          type: string
          description: The model maker (e.g. `OpenAI`, `DeepSeek`).
        supports_tools:
          type: boolean
        supports_reasoning:
          type: boolean
        supports_images:
          type: boolean
        supports_embeddings:
          type: boolean
        max_output_tokens:
          type: integer
        max_input_tokens:
          type: integer
          description: >
            The enforced input ceiling for this model — operator-tuned and live
            (requests over it return 400 `input_too_long`).
        rate_limit_rpm:
          type: integer
          description: Your requests-per-minute limit on this model.
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
              description: |
                Human-readable description. User-facing messages are in Korean.
            type:
              type: string
              description: >
                Error family, e.g. `invalid_request_error`, `rate_limit_error`,
                `quota_exceeded`, `access_denied`, `overloaded_error`,
                `server_error`, `service_unavailable`.
            code:
              type: string
              description: Machine-readable code (see the Errors guide).
            resets_at:
              type: string
              format: date-time
              description: >
                Present on `session_exhausted`, `weekly_exhausted`, and
                `abuse_cooldown` so clients can render a countdown.
  responses:
    Unauthorized:
      description: '`invalid_api_key` — missing, malformed, or revoked key.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unavailable:
      description: >
        Service unavailable. Codes: `maintenance` (operator maintenance window),
        `model_disabled` (operator turned this model off), `server_draining`
        (restart in progress — retry shortly).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        A Square1 API key: `Authorization: Bearer sq-arca-...` (legacy `ws-...`
        keys remain valid). Create and rotate keys from the dashboard.

````