Blog » OMNIA AI Brain – Now Available via API

OMNIA AI Brain – Now Available via API

4 min read

Just a few weeks ago we were introducing the OMNIA AI Brain platform, marking another milestone in our mission to revolutionize decentralized technology and support our ecosystem with cutting-edge tools.

All 2024 pending accounts have been onboarded

It’s no secret that our AI Brain platform started as an invitation only and we onboarded users in batches to allow a smooth process that also allowed us to scale systems as usage grew as well.
After seeing the enthusiasm towards the use of our platform as an alternative to OpenAI ChatGPT, but also for our OMNIA flavored LLMs, we decided to onboard the final batch of 2024 with all the pending accounts.

Expanding DePIN Infrastructure to Power AI Innovation:

To achieve our ambitious goal declared under the new vision, we are leveraging and expanding our existing Decentralized Physical Infrastructure Network (DePIN) to provide the computational resources necessary for serving this decentralized LLM infrastructure. By building out our DePIN capabilities, we can support the immense computational demands of a large-scale AI platform while maintaining decentralization, scalability, and security.

Powering your DApps with AI

We are opening our AI Brain platform such that it can be accessed via API – this will allow all the developers out there to integrate AI capabilities straight into their apps.

Steps to get API access:

  • Step 1 Open AI Brain Platform: Go to https://chat.omniatech.io and login into your account.
  • Step 2 – Generate an API Key: Click your profile icon in the bottom left corner, then click Settings -> Account.
  • Step 3 – Test your API key with the completions API.

While Step 1 is pretty straightforward, let’s now dive into the details of steps 2 &3.

Generating an API Key

After you have logged in your account, click the bottom left corner Account icon and follow the sub-steps below:

1. Open Account menu and click Settings

2. Click the Show button from the API keys row

3. Click Create new secret key and copy it

Make sure you copied the API key and not the JWT Token.

For now we support only 1 API key at a time, but you can use the refresh button to generate a new one.

Test your API Key

In order to test the API key we’ll send a basic request to ask the LLM to tell us a joke about blockchain. You can do this with Postman or any other API testing tool. For simplicity we will use this online tool https://reqbin.com

Since, our API endpoint https://chat.omniatech.io/api/chat/completions is OpenAI API compatible, its enough to just send a POST request with:

  • Authorization header is: “Bearer YOUR_API_KEY”
  • Body is a standard completions API request, see below example
{
   "model": "llama3.2:latest",
   "messages": [
       {
         "role": "user",
         "content": "Tell me a joke about blockchain"
       }
    ]
}

You should get something like this:

Alternatively, you can just open a terminal with curl and run the following command

curl -X POST https://chat.omniatech.io/api/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
      "model": "llama3.2:latest",
      "messages": [
        {
          "role": "user",
          "content": "Tell me a joke about blockchain"
        }
      ]
    }'

Completions API

Endpoint is : https://chat.omniatech.io/api/chat/completions

The above endpoint serves as an OpenAPI API compatible chat completion endpoint for models available on chat.omniatech.io.

If you want to deep dive into the API specification details, we recommend going through OpenAI’s well written documentation.

What This Means for You

You can start integrating AI capabilities straight into your apps, or you can replace the OpenAI usage in your existing apps with OMNIA AI Brain’s LLM powerhouse with just an API & endpoint string replacement, while maintaining the standardized interface and avoid being vendor locked.

Join Us in Shaping the Future

This is only the beginning. We look forward to collaborating with you, gathering your insights, and building a future driven by innovation, community, and decentralized technology. Together, we will unlock new possibilities and continue to take OMNIA to the next level.

Welcome to the future of AI-driven decentralization. Let’s build it together!

Written by:

Get Started
Contact Us Today

Want learn about subscription plans or integrating our services into your project

Contact Us