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

# List generator-ready models

> Returns catalog versions currently available for the requested generation mode.



## OpenAPI

````yaml /openapi.json get /api/v1/models
openapi: 3.1.0
info:
  title: Porn Factory AI API
  version: 1.0.0
  description: >-
    Catalog-backed image and video generation with credit accounting, polling,
    and signed webhooks.
servers:
  - url: https://pornfactoryai.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Catalog
    description: Generator-ready checkpoints and LoRAs
  - name: Credits
    description: Account credit balance
  - name: Generations
    description: Image and video request lifecycle
paths:
  /api/v1/models:
    get:
      tags:
        - Catalog
      summary: List generator-ready models
      description: >-
        Returns catalog versions currently available for the requested
        generation mode.
      operationId: listModels
      parameters:
        - name: mode
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/GenerationMode'
        - name: type
          in: query
          required: true
          schema:
            type: string
            enum:
              - checkpoint
              - lora
        - name: q
          in: query
          required: false
          description: Search text, up to 120 characters.
          schema:
            type: string
            maxLength: 120
        - name: baseModel
          in: query
          required: false
          schema:
            type: string
            maxLength: 120
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            maxLength: 200
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 20
      responses:
        '200':
          description: Model list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    GenerationMode:
      type: string
      enum:
        - text_to_image
        - image_to_image
        - image_edit
        - text_to_video
        - image_to_video
    ModelList:
      type: object
      required:
        - object
        - data
        - next_cursor
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
        next_cursor:
          type:
            - string
            - 'null'
    Model:
      type: object
      required:
        - object
        - model_id
        - version_id
        - model_name
        - version_name
        - model_type
        - base_model
      properties:
        object:
          type: string
          const: model
        model_id:
          type: string
        version_id:
          type: string
        model_name:
          type: string
        version_name:
          type: string
        model_type:
          type: string
          enum:
            - checkpoint
            - lora
        base_model:
          type:
            - string
            - 'null'
        credit_estimate:
          type:
            - number
            - 'null'
        preview_url:
          type:
            - string
            - 'null'
          format: uri
    Error:
      type: object
      required:
        - error
        - code
      properties:
        error:
          type: string
        code:
          type: string
        available_credits:
          type: number
        required_credits:
          type: number
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Missing scope or suspended account
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded
      headers:
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: Temporary platform failure
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pfai_ API key
      description: Create a scoped key at https://pornfactoryai.com/account?tab=developer

````