# Introduction of the Eye- AI API

#### *Authentication*

*The Eye AI API uses API keys for authentication. Visit the* [*API Keys*](/eye-ai/overview/introduction-of-the-eye-ai-api/making-requests.md) *page to retrieve the API key you will use in your requests.*

*Remember that your API key is a secret! Do not share it with others or expose it in any client-side code (browsers, applications). Production requests should be routed through your own back-end server, where your API key can be loaded securely from an environment variable or key management service.*

#### *All API requests must include your API key in an Authorization HTTP header as follows:*

```
Authorization: Bearer YOUR_API_KEY
```

*Requesting Organization For users who belong to multiple organizations, you can pass a header to specify which organization is used for an API request. The usage of these API requests will be counted in the subscription quota of the specified organization.*

#### ***Example curl command:***

{% code lineNumbers="true" %}

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

{% endcode %}

#### *Example with the Eye-AI Python package:*

{% code lineNumbers="true" %}

```python
import os
import Eye-AI
Eye-AI.organization = "YOUR_ORG_ID"
Eye-AI.api_key = os.getenv("Eye-AI_API_KEY")
Eye-AI.Model.list()
```

{% endcode %}

#### *Example with the Eye-AI Node.js package:*

{% code lineNumbers="true" %}

```javascript
import { Configuration, eYE-ai-API} from "eye-ai";
const configuration = new Configuration({
    organization: "YOUR_ORG_ID",
    apiKey: process.env.EYE-AI_API_KEY,
});
const eye-ai  = new Eye-AI-Api(configuration);
const response = await Eye-AI.listEngines();
```

{% endcode %}


---

# 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.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.
