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
  3. Completions

Create completion

Creates a completion for the provided prompt and parameters

Example request
curl https://api.eye-ai.com/v1/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
  "model": "text-ada-001",
  "prompt": "Say this is a test",
  "max_tokens": 7,
  "temperature": 0
}
Parameters
{
  "model": "text-ada-001",
  "prompt": "Say this is a test",
  "max_tokens": 7,
  "temperature": 0,
  "top_p": 1,
  "n": 1,
  "stream": false,
  "logprobs": null,
  "stop": "\n"
}
Response
{
  "id": "cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7",
  "object": "text_completion",
  "created": 1589478378,
  "model": "text-ada-001",
  "choices": [
    {
      "text": "\n\nThis is indeed a test",
      "index": 0,
      "logprobs": null,
      "finish_reason": "length"
    }
  ],
  "usage": {
    "prompt_tokens": 5,
    "completion_tokens": 7,
    "total_tokens": 12
  }
}

PreviousCompletionsNextEdits

Last updated 2 years ago

🧿
🧿
▪️
Page cover image