Note
This post is a follow-up to our original post published on 2024-10-21. Over the last few months, we've partnered with TDC - the disruptive collective & naptha.ai to make cutting-edge AI models accessible from any device, via our always available model servers to our new bot's for discord, matrix, & web!
Overview
We’ve been pushing the boundaries of accessible AI. We built ai.unturf.com and uncloseai.js to provide you with free, state-of-the-art AI tools that are as free as in beer and as free as in freedom. A huge shout out to naptha.ai for powering the two brand new endpoints, connectivity, & the electricity that keep these publicly accessible models running!
Dynamic Model & Endpoint Discovery
Instead of maintaining a static list of models—which can quickly become outdated—our service is designed for dynamic discovery. Each of our model server endpoints offers an API route that returns the current list of supported models. This means you can always retrieve the latest model roster directly from the source.
We encourage you to review the dynamic model querying approaches used by both uncloseai.js and opencompletion.com to see how they simplify integration & keep things current.
Here’s where you can find the model lists for each endpoint:
- Hermes Endpoint:
- Node2 Endpoint:
- Node3 Endpoint:
By dynamically querying each endpoint for its supported models, you ensure your integration remains up to date without needing to hardcode model names.
Example Usage
Below is a quick cURL example for interacting with our new mistralai/Mistral-Small-24B-Instruct-2501 endpoint:
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"prompt": "Give a Python Fizzbuzz solution in one line of code",
"model": "mistralai/Mistral-Small-24B-Instruct-2501",
"temperature": 0.5,
"max_tokens": 150
}' \
https://node3.naptha.ai/inference/completions
Integration Made Easy
Our service supports any programming language. With client libraries available for Python and Node.js—and a web-client-only solution via uncloseai.js—integrating AI into your application or website has never been easier. Try to use the default openai client oin your native language.
The browser-based integration is ideal for static sites or CDNs, eliminating the need for a dedicated backend server or API key.
Add the following HTML snippet to your site to get started:
<head>
<!-- Highlight.js for syntax highlighting -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/styles/a11y-dark.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
<script src="https://uncloseai.com/uncloseai.js"></script>
</head>
<div id="chat-container">
<div id="chat-box"></div>
<div></div>
</div>
<div>
<input type="text" id="user-input" placeholder="Ask about this page..." />
<button onclick="handleUserInput()">Send</button>
</div>
Try It Out!
There is a demo connected to this static page!
Dive in and explore our service—use it as-is or build your own custom client. Let's keep democratizing AI and empower everyone to harness its power.
We’ve also open-sourced Matrix & Discord Bots to showcase dynamic model loading in action.
Join our Discord server to collaborate with us on building agents, environments, and much more!