EYE AI
Search
⌃K
🧿

Introduction of the Eye- AI API

Authentication

The Eye AI API uses API keys for authentication. Visit the API Keys 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:

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

Example with the Eye-AI Python package:

1
import os
2
import Eye-AI
3
Eye-AI.organization = "YOUR_ORG_ID"
4
Eye-AI.api_key = os.getenv("Eye-AI_API_KEY")
5
Eye-AI.Model.list()

Example with the Eye-AI Node.js package:

1
import { Configuration, eYE-ai-API} from "eye-ai";
2
const configuration = new Configuration({
3
organization: "YOUR_ORG_ID",
4
apiKey: process.env.EYE-AI_API_KEY,
5
});
6
const eye-ai = new Eye-AI-Api(configuration);
7
const response = await Eye-AI.listEngines();
​