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

# List Models

> List all available models

Retrieve a list of available models that can be used with the API.

## Response

Returns a list of model objects containing information about each available model including their capabilities and pricing tier.

## Example Response

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "id": "claude-3-5-sonnet-20241022", 
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "id": "gemini-pro",
      "object": "model", 
      "owned_by": "google"
    }
  ]
}
```


## OpenAPI

````yaml GET /models
openapi: 3.0.1
info:
  title: Electron Hub API
  description: >-
    Unified API platform integrating 200+ AI models for chat, image generation,
    speech-to-text, embeddings, and more.
  version: 1.0.0
  contact:
    name: Electron Hub Support
    email: support@electronhub.ai
    url: https://discord.com/invite/electronhub
  license:
    name: MIT
servers:
  - url: https://api.electronhub.ai/v1
    description: Production API v1
security:
  - bearerAuth: []
paths:
  /models:
    get:
      summary: List Models
      description: List all available models
      operationId: listModels
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListModelsResponse'
      security: []
components:
  schemas:
    ListModelsResponse:
      type: object
      properties:
        object:
          type: string
          example: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
    Model:
      type: object
      required:
        - name
        - description
        - id
        - object
        - created
        - owned_by
        - tokens
        - pricing
        - endpoints
        - premium_model
      properties:
        name:
          type: string
          description: Human-readable model name
        description:
          type: string
          description: Model description
        id:
          type: string
          description: Model identifier
        object:
          type: string
          example: model
        created:
          type: integer
          description: Creation timestamp
        owned_by:
          type: string
          description: Organization that owns the model
        tokens:
          type: integer
          description: >-
            Context length of the model (maximum combined input and output
            tokens)
        pricing:
          type: object
          properties:
            input:
              type: number
              description: Cost per input token
            output:
              type: number
              description: Cost per output token
        endpoints:
          type: array
          items:
            type: string
          description: Supported API endpoints
        premium_model:
          type: boolean
          description: Whether this is a premium model
        voices:
          type: array
          items:
            type: string
          description: Available voices for text-to-speech models
        sizes:
          type: array
          items:
            type: string
          description: Available image sizes for image generation models
        qualities:
          type: array
          items:
            type: string
          description: Available quality levels for image generation models
        tags:
          type: array
          items:
            type: string
          description: Available tags for music generation models
        styles:
          type: array
          items:
            type: string
          description: Available styles for video generation models
        metadata:
          type: object
          description: Additional metadata for chat completion models
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your API key (starts with 'ek-')

````