EYE AI
  • 🧿Eye AI - Explained
  • Overview
    • 🧿The beginning of a new age
    • 🧿Crypto robotics / Eye-AI
      • 🧿Functionality
    • 🧿Metaverse Eye-AI
      • 🧿AI powering the Metaverse
    • 🧿Trend Tracking
    • 🧿Point to ETH network
    • 🧿Introduction of the Eye- AI API
      • 🧿Making requests
      • 🧿Models
        • ▪️List models
      • 🧿Completions
        • ▪️Create completion
      • 🧿Edits
      • 🧿Images
        • ▪️Create image edit
        • ▪️Create image variation
      • 🧿Embeddings
      • 🧿File
        • ▪️Upload File
        • ▪️Delete File
        • ▪️Retrieve file
        • ▪️Retrieve file content
        • ▪️Fine-tunes
      • 🧿Moderations
      • 🧿Parameter details
    • 🧿Terms of Artificial Intelligence
    • 🧿AI and the developers
    • 🧿How AI can help organizations
    • 🧿AI in the company
      • 🧿What is driving AI adoption?
    • 🧿AI as a strategic must and competitive advantage
      • 🧿Best practices to get the most out of AI
    • 🧿Turnkey AI is making AI easier to operationalize
    • 🧿From artificial intelligence to adaptive intelligence
    • 🪙Token Eye AI
      • 🧿Taxes
      • 🧿Token Metrics
    • 🕵️‍♀️Security AI
    • 🛤️Roadmap
    • 🫂Social Media
    • 📊Fairlaunch ETH - Pinksale
Powered by GitBook
On this page
  1. Overview
  2. Introduction of the Eye- AI API

Embeddings

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.

Create embeddings

Creates an embedding vector representing the input text.

Example request
curl https://api.eye-ai.com/v1/embeddings \
  -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": "The food was delicious and the waiter...",
       "model": "text-similarity-babbage-001"}'
Parameters
{
  "model": "text-similarity-babbage-001",
  "input": "The food was delicious and the waiter..."
}
Response
{
  "object": "list",
  "data": [
    {
      "object": "embedding",
      "embedding": [
        0.018990106880664825,
        -0.0073809814639389515,
        .... (1024 floats total for ada)
        0.021276434883475304,
      ],
      "index": 0
    }
  ],
  "usage": {
    "prompt_tokens": 8,
    "total_tokens": 8
  }
}

PreviousCreate image variationNextFile

Last updated 2 years ago

🧿
🧿
Page cover image