# List models

*Lists the currently available models, and provides basic information about each one such as the owner and availability.*

{% code title="Example request" lineNumbers="true" %}

```
curl https://api.eye-ai.com/v1/models \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

{% endcode %}

{% code title="Response" lineNumbers="true" %}

```
{
  "data": [
    {
      "id": "model-id-0",
      "object": "model",
      "owned_by": "organization-owner",
      "permission": [...]
    },
    {
      "id": "model-id-1",
      "object": "model",
      "owned_by": "organization-owner",
      "permission": [...]
    },
    {
      "id": "model-id-2",
      "object": "model",
      "owned_by": "eye-ai",
      "permission": [...]
    },
  ],
  "object": "list"
}
```

{% endcode %}

#### *Retrieve model*

*Retrieves a model instance, providing basic information about the model such as the owner and permissioning.*

{% code title="Example request" lineNumbers="true" %}

```ada
curl https://api.eye-ai.com/v1/models/text-ada-001 \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

{% endcode %}

#### Path parameters

*The ID of the model to use for this request*

{% code title="Response" lineNumbers="true" %}

```ada
{
  "id": "text-ada-001",
  "object": "model",
  "owned_by": "eye-ai",
  "permission": [...]
}
```

{% endcode %}

\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eye-ai.gitbook.io/eye-ai/overview/introduction-of-the-eye-ai-api/models/list-models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
