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

# List currently available models

> Returns runtime-enabled models only. Use getModel for exact input and result schemas. Preview models may have detail records but cannot be submitted.

## Current contract

[Read the machine-readable definition](https://apistable.ai/api-reference/listModels.json)


## OpenAPI

````yaml openapi.json GET /api/v1/models
openapi: 3.1.0
info:
  title: APIstable API
  version: 1.0.0-preview
  description: >-
    Public /api/v1 protocol. Valid API keys have the same account-scoped access.
    Read the selected model documentation for its ID, supported inputs, result
    format and availability before submitting. No client submission idempotency
    or max_credits. Availability, pricing, file retention and callback formats
    follow the selected model contract. Unconfigured operations return 503.
servers:
  - url: https://apistable.ai
    description: API Stable API
security: []
paths:
  /api/v1/models:
    get:
      summary: List currently available models
      description: >-
        Returns runtime-enabled models only. Use getModel for exact input and
        result schemas. Preview models may have detail records but cannot be
        submitted.
      operationId: listModels
      parameters:
        - name: modality
          in: query
          schema:
            type: string
            enum:
              - image
              - video
              - music
              - llm
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - name: after
          in: query
          schema:
            type: string
            maxLength: 1000
      responses:
        '200':
          description: Available models and pagination cursor.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - msg
                  - data
                additionalProperties: false
                properties:
                  code:
                    const: 200
                  msg:
                    const: success
                  data:
                    type: object
                    properties:
                      models:
                        type: array
                        items:
                          $ref: '#/components/schemas/ModelSummary'
                      next_cursor:
                        type:
                          - string
                          - 'null'
        '400':
          description: Invalid model list parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ModelSummary:
      type: object
      required:
        - id
        - modality
        - status
        - live_available
        - input_schema_version
      properties:
        id:
          type: string
        modality:
          type: string
          enum:
            - image
            - video
            - music
            - llm
        status:
          type: string
        live_available:
          type: boolean
        input_schema_version:
          type: string
    Error:
      type: object
      required:
        - code
        - msg
        - data
      properties:
        code:
          type: integer
        msg:
          type: string
        data:
          type: 'null'

````

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