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

# Get all available AI models

> Returns the normalized OpenRouter model catalog fetched from OpenRouter with output_modalities=all.



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/ai.yaml get /api/ai/models
openapi: 3.0.3
info:
  title: Insforge AI API
  version: 1.0.0
  description: >-
    Model Gateway helper APIs for OpenRouter key provisioning, model discovery,
    and deprecated compatibility proxy routes
servers: []
security: []
paths:
  /api/ai/models:
    get:
      tags:
        - Admin
      summary: Get all available AI models
      description: >-
        Returns the normalized OpenRouter model catalog fetched from OpenRouter
        with output_modalities=all.
      responses:
        '200':
          description: Flat array of available models from the OpenRouter catalog
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListModelsResponse'
        '401':
          description: Unauthorized
        '500':
          description: Failed to get models list
      security:
        - bearerAuth: []
components:
  schemas:
    ListModelsResponse:
      type: array
      description: Normalized OpenRouter model catalog returned by GET /api/ai/models.
      items:
        $ref: '#/components/schemas/AIModel'
    AIModel:
      type: object
      properties:
        id:
          type: string
          example: openai/gpt-4o
        created:
          type: integer
        inputModality:
          type: array
          items:
            type: string
          example:
            - text
            - image
        outputModality:
          type: array
          items:
            type: string
          example:
            - text
        provider:
          type: string
          example: openrouter
        modelId:
          type: string
          example: openai/gpt-4o
        inputPrice:
          type: number
          description: >-
            Input price per million tokens in USD when token pricing is
            available.
        outputPrice:
          type: number
          description: >-
            Output price per million tokens in USD when token pricing is
            available.
        inputPriceLabel:
          type: string
          description: >-
            Human-readable input pricing label, such as "$2.50 / 1M tokens" or
            "Free", when available.
        outputPriceLabel:
          type: string
          description: >-
            Human-readable output pricing label, such as "$10.00 / 1M tokens" or
            "Free", when available.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````