> ## Documentation Index
> Fetch the complete documentation index at: https://student-213fb9fc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Models (OpenAI)

> List available models via the OpenAI-compatible endpoint

## Overview

Returns a list of all available models in the OpenAI-compatible format. This endpoint works with any tool that expects the OpenAI `/v1/models` format.

## Request

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer YOUR_API_KEY`
</ParamField>

***

## Response

<ResponseField name="object" type="string">
  Always `"list"`.
</ResponseField>

<ResponseField name="data" type="array">
  Array of model objects:

  * `id` — model identifier (same as the name used in API calls)
  * `object` — `"model"`
  * `created` — Unix timestamp
  * `owned_by` — `"ajstudioz"`
</ResponseField>

***

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.ajstudioz.co.in/v1/models \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      base_url="https://api.ajstudioz.co.in/v1",
      api_key="YOUR_API_KEY"
  )

  models = client.models.list()
  for model in models.data:
      print(model.id)
  ```

  ```javascript Node.js theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    baseURL: "https://api.ajstudioz.co.in/v1",
    apiKey: process.env.AJSTUDIOZ_API_KEY,
  });

  const models = await client.models.list();
  models.data.forEach(model => console.log(model.id));
  ```
</CodeGroup>

<ResponseExample>
  ```json Response theme={null}
  {
    "object": "list",
    "data": [
      {
        "id": "gpt-oss:120b",
        "object": "model",
        "created": 1754352000,
        "owned_by": "ajstudioz"
      },
      {
        "id": "kimi-k2:1t",
        "object": "model",
        "created": 1757030400,
        "owned_by": "ajstudioz"
      },
      {
        "id": "gemma3:27b",
        "object": "model",
        "created": 1741737600,
        "owned_by": "ajstudioz"
      },
      {
        "id": "deepseek-v3.2",
        "object": "model",
        "created": 1751760000,
        "owned_by": "ajstudioz"
      },
      {
        "id": "qwen3-vl:235b-instruct",
        "object": "model",
        "created": 1748736000,
        "owned_by": "ajstudioz"
      }
    ]
  }
  ```
</ResponseExample>
