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

# List Available Models

> List all available models, including capabilities, pricing tier, and recommended use cases. Supports filtering by tier, capability, and whether a model is virtual (auto/ensemble).



## OpenAPI

````yaml /openapi.json get /api/v1/models
openapi: 3.1.0
info:
  title: NinjaChat API
  version: 1.0.0
  description: >-
    Access 40+ AI models through a unified API — chat, image generation, video
    generation, and web search. One API key, one endpoint per type, just change
    the `model` parameter.
servers:
  - url: https://www.ninjachat.ai
security:
  - bearerAuth: []
paths:
  /api/v1/models:
    get:
      tags:
        - Management
      summary: List Available Models
      description: >-
        List all available models, including capabilities, pricing tier, and
        recommended use cases. Supports filtering by tier, capability, and
        whether a model is virtual (auto/ensemble).
      operationId: listModels
      parameters:
        - name: tier
          in: query
          schema:
            type: string
            enum:
              - ultra
              - premium
              - standard
              - budget
          description: Filter by pricing tier.
        - name: capability
          in: query
          schema:
            type: string
            example: code
          description: Filter by capability (e.g. code, reasoning, images, video).
        - name: virtual
          in: query
          schema:
            type: boolean
          description: If false, excludes virtual routing models like auto/ensemble.
      responses:
        '200':
          description: List of models.
          content:
            application/json:
              schema:
                type: object
                properties:
                  models:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: gpt-5
                        group:
                          type: string
                          example: chat
                        tier:
                          type: string
                          example: standard
                        virtual:
                          type: boolean
                          example: false
                        capabilities:
                          type: array
                          items:
                            type: string
                          example:
                            - chat
                            - code
                        price:
                          type: object
                          properties:
                            unit:
                              type: string
                              example: request
                            amount:
                              type: string
                              example: $0.006
                        recommended_for:
                          type: array
                          items:
                            type: string
        '401':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      description: >-
        OpenAI-compatible error. The top-level `message`, `code`, and
        `request_id` mirror fields inside `error` for convenience.
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Human-readable error description.
            type:
              type: string
              description: >-
                Error category: invalid_request_error, authentication_error,
                rate_limit_error, insufficient_quota, or api_error.
            code:
              type: string
              description: Machine-readable error code.
            param:
              type: string
              nullable: true
              description: The request parameter that caused the error, if any.
        message:
          type: string
          description: Same as error.message.
        code:
          type: string
          description: Same as error.code.
        request_id:
          type: string
          description: Unique request ID, useful when contacting support.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key starting with nj_sk_

````