How to use AGI

AGI is designed to be intuitive and powerful, offering two main user interfaces to meet diverse needs: API access for developers and a web interface for non-technical users. Whether you’re integrating advanced intelligence into your apps or accessing expert insights on demand, this guide will show you how to make the most of AGI.


1. Using a Web Interface

The web interface is your go-to for instant access to AGI capabilities without any coding.

Getting Started

  1. Buy AGI license key
  2. Go to GenAIPrompts.com
  3. Enter URL and license key

How to Use

  • Ask Questions either by typing, sharing images or talking

Who Should Use the Web Interface?

  • Non-technical users looking for instant answers or insights.
  • Professionals needing expert guidance in specific fields.
  • Teams exploring ideas collaboratively.

2. Using the API

For developers and businesses looking to integrate AGI into their applications, the API offers flexibility and power.

Getting Started

  1. API Key Setup:
  • Log in to your account and navigate to the Developer Portal.
  • Generate an API key for secure access.
  1. Documentation:
  • Access comprehensive API documentation from the portal, including example requests, response formats, and error handling.

How to Use

  • Python

import requests

API_URL = “<dedicated cloud instance>”

headers = {“Authorization”: “Bearer <api-key>”}

def query(payload):

    response = requests.post(API_URL, headers=headers, json=payload)

    return response.json()

   

output = query({

    “question”: “Hey, how are you?”,

})

  • CURL

curl <dedicated cloud instance>

     -X POST

     -d ‘{“question”: “Hey, how are you?”}’

     -H “Content-Type: application/json”

     -H “Authorization: Bearer <api-key>”

  • JAVASCRIPT

async function query(data) {

    const response = await fetch(

        “<dedicated cloud instance>”,

        {

            headers: {

                Authorization: “Bearer <api-key>”,

                “Content-Type”: “application/json”

            },

            method: “POST”,

            body: JSON.stringify(data)

        }

    );

    const result = await response.json();

    return result;

}

query({“question”: “Hey, how are you?”}).then((response) => {

    console.log(response);

});

Who Should Use the API?

  • Developers integrating AI into applications, websites, or workflows.
  • Businesses automating complex tasks like customer support or data analysis.
  • Researchers requiring large-scale query processing.

3. Comparing the Interfaces

Feature

Web Interface

API

Ease of Use

User-friendly, no coding

Requires programming knowledge

Customization

Limited to UI settings

Fully customizable via code

Use Case

On-the-fly tasks, casual use

Integration into apps, automation

Accessibility

Browser-based

Programmatic

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *