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

# List models

> Returns a list of available AI models in OpenAI-compatible format. When authenticated with a spend key, results are filtered by the key's allowed models and providers. No authentication is required, but authenticated requests may return filtered results.



## OpenAPI

````yaml /openapi.json get /models
openapi: 3.0.0
info:
  title: Lava API
  description: >-
    Lava API enables businesses to implement usage-based billing for AI
    services. This API allows tracking, managing, and billing for third-party AI
    API usage through a forwarding system.
  version: 1.0.0
  contact:
    name: Lava support
    url: https://www.lava.so/contact
servers:
  - url: https://api.lava.so/v1/
    description: Lava API v1
security: []
tags:
  - name: Authentication
  - name: Core Endpoints
  - name: Models
  - name: Services
  - name: Requests
  - name: Wallet
  - name: Payment Methods
  - name: Spend Keys
  - name: Usage
  - name: Checkout Sessions
  - name: Customers
  - name: Plans
  - name: Subscriptions
  - name: Meters
  - name: Webhooks
  - name: Secret Keys
  - name: Credit Bundles
  - name: Gateway Settings
  - name: Skills
  - name: News Data
  - name: Search
  - name: Enrich
paths:
  /models:
    get:
      tags:
        - Models
      summary: List models
      description: >-
        Returns a list of available AI models in OpenAI-compatible format. When
        authenticated with a spend key, results are filtered by the key's
        allowed models and providers. No authentication is required, but
        authenticated requests may return filtered results.
      responses:
        '200':
          description: List of available models
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                      - list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Model'
      security: []
components:
  schemas:
    Model:
      type: object
      properties:
        id:
          type: string
          description: Model identifier (e.g., gpt-4o, claude-sonnet-4-6)
        object:
          type: string
          enum:
            - model
          description: Object type, always 'model'
        created:
          type: integer
          description: Unix timestamp of when the model was registered
        owned_by:
          type: string
          description: Provider that owns this model (e.g., openai, anthropic)
      required:
        - id
        - object
        - created
        - owned_by

````