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

# List Models

> Retrieve the list of all available LLM models and their capabilities.

## Request

```bash theme={null}
GET https://modelslab.com/api/v7/llm/v1/models
```

```bash theme={null}
curl https://modelslab.com/api/v7/llm/v1/models \
  -H "x-api-key: $MODELSLAB_API_KEY"
```

## Response

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "id": "Qwen/Qwen2.5-VL-72B-Instruct-together",
      "object": "model",
      "created": 1712345678,
      "owned_by": "Qwen"
    },
    {
      "id": "meta-llama/Llama-3.1-70B-Instruct",
      "object": "model",
      "created": 1712345678,
      "owned_by": "Meta"
    }
  ]
}
```

## Usage with SDKs

<Tabs>
  <Tab title="OpenAI SDK">
    ```python theme={null}
    from openai import OpenAI

    client = OpenAI(
        api_key="YOUR_MODELSLAB_API_KEY",
        base_url="https://modelslab.com/api/v7/llm",
    )

    models = client.models.list()
    for model in models.data:
        print(model.id)
    ```
  </Tab>

  <Tab title="Anthropic SDK">
    ```python theme={null}
    import requests

    response = requests.get(
        "https://modelslab.com/api/v7/llm/v1/models",
        headers={"x-api-key": "YOUR_MODELSLAB_API_KEY"},
    )

    models = response.json()
    for model in models["data"]:
        print(model["id"])
    ```
  </Tab>
</Tabs>

<Tip>
  You can also browse all available models with details and playground access at [modelslab.com/models/category/llmaster](https://modelslab.com/models/category/llmaster).
</Tip>


## OpenAPI

````yaml GET /v1/models
openapi: 3.1.0
info:
  title: ModelsLab LLM API
  description: >-
    Unified LLM API with OpenAI and Anthropic SDK compatibility. Access 200+
    language models through a single API.
  version: 7.0.0
servers: []
security: []
paths:
  /v1/models:
    get:
      summary: List Models
      description: List all available LLM models.
      responses:
        '200':
          description: List of models
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsListResponse'
      security:
        - apiKeyAuth: []
      servers:
        - url: https://modelslab.com/api/v7/llm
components:
  schemas:
    ModelsListResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/ModelObject'
    ModelObject:
      type: object
      properties:
        id:
          type: string
          description: Model identifier
        object:
          type: string
          enum:
            - model
        created:
          type: integer
          description: Unix timestamp of model creation
        owned_by:
          type: string
          description: Organization that owns the model
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key authentication via x-api-key header

````