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

# List Models



## OpenAPI

````yaml https://api.llm-stats.com/stats/openapi.json get /v1/models
openapi: 3.1.0
info:
  title: LLM Stats API
  description: Public API for querying AI model benchmarks, scores, rankings, and pricing.
  version: 1.0.0
servers:
  - url: /stats
security: []
paths:
  /v1/models:
    get:
      summary: List Models
      operationId: list_models_v1_models_get
      parameters:
        - name: organization
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Organization
        - name: family
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Family
        - name: modality
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Modality
        - name: open_weight
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Open Weight
        - name: provider
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Provider
        - name: min_context
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Min Context
        - name: max_input_price
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            title: Max Input Price
        - name: max_output_price
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            title: Max Output Price
        - name: released_after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: Released After
        - name: released_before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: Released Before
        - name: sort
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Sort
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsListResponse'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ModelsListResponse:
      properties:
        models:
          items:
            $ref: '#/components/schemas/ModelSummary'
          type: array
          title: Models
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        total:
          type: integer
          title: Total
      type: object
      required:
        - models
        - total
      title: ModelsListResponse
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ModelSummary:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        organization:
          $ref: '#/components/schemas/OrganizationRef'
        family:
          anyOf:
            - $ref: '#/components/schemas/FamilyRef'
            - type: 'null'
        license:
          $ref: '#/components/schemas/LicenseRef'
        open_weight:
          type: boolean
          title: Open Weight
        model_type:
          type: string
          title: Model Type
        modalities:
          items:
            type: string
          type: array
          title: Modalities
        context_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Context Window
        param_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Param Count
        release_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Release Date
        providers:
          items:
            $ref: '#/components/schemas/ProviderPricing'
          type: array
          title: Providers
        top_scores:
          additionalProperties:
            type: number
          type: object
          title: Top Scores
        inference:
          $ref: '#/components/schemas/ModelInference'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        source:
          type: string
          title: Source
        url:
          type: string
          title: Url
      type: object
      required:
        - id
        - name
        - description
        - organization
        - license
        - open_weight
        - model_type
        - modalities
        - providers
        - top_scores
        - inference
        - created_at
        - updated_at
        - source
        - url
      title: ModelSummary
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
        help_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Help Url
      type: object
      required:
        - code
        - message
      title: ErrorDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    OrganizationRef:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: OrganizationRef
    FamilyRef:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: FamilyRef
    LicenseRef:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        allow_commercial:
          type: boolean
          title: Allow Commercial
      type: object
      required:
        - id
        - name
        - allow_commercial
      title: LicenseRef
    ProviderPricing:
      properties:
        provider_id:
          type: string
          title: Provider Id
        provider_name:
          type: string
          title: Provider Name
        input_price_per_m:
          anyOf:
            - type: number
            - type: 'null'
          title: Input Price Per M
        output_price_per_m:
          anyOf:
            - type: number
            - type: 'null'
          title: Output Price Per M
        status:
          type: string
          title: Status
      type: object
      required:
        - provider_id
        - provider_name
        - status
      title: ProviderPricing
    ModelInference:
      properties:
        available:
          type: boolean
          title: Available
        endpoint:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint
        gateway_model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Gateway Model Id
        openai_compatible:
          type: boolean
          title: Openai Compatible
          default: false
        supports_streaming:
          type: boolean
          title: Supports Streaming
          default: false
        supports_tools:
          type: boolean
          title: Supports Tools
          default: false
        supports_vision:
          type: boolean
          title: Supports Vision
          default: false
        docs_url:
          type: string
          title: Docs Url
          default: https://docs.llm-stats.com/gateway/chat-completions
      type: object
      required:
        - available
      title: ModelInference
      description: |-
        Discovery metadata for invoking a model via the LLM Stats gateway.

        Always present on model responses. When `available` is False, optional
        fields are omitted and consumers should not attempt gateway calls.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````