Open Mind API
Self-Hosted Open Mind API
Access open-source models from Ollama, Groq, Cloudflare, OpenRouter, Nvidia, Mistral, SiliconFlow, Cerebras, and SambaNova via a unified, zero-latency, OpenAI-compatible endpoint. Completely free.
Authentication
Pass a Bearer token in your headers to authenticate requests. The base URL acts as a drop-in replacement for OpenAI.
Base URL
https://openmind.theeverythingai.com/v1
Change your client base URL config to route queries through our server.
Bearer Token
Authorization: Bearer YOUR_API_KEY
Pass your self-service API key in the authorization headers.
Keys & Usage Dashboard
Register a new API key instantly or check current usage and rate limits.
๐ Generate Free API Key
๐ API Usage Tracker
Chat Completions
Generate completions for a list of messages. Supports text, multimodal inputs, streaming responses, and reasoning models.
Parameters
| Field | Type | Description |
|---|---|---|
model |
string | Required. The ID of the model to use (e.g. llama-3.3-70b-versatile). |
messages |
array | Required. An array of message objects: {role, content}. |
temperature |
number | Optional. Sampling temperature (0.0 to 2.0). Defaults to 0.7. |
max_tokens |
integer | Optional. Maximum tokens to generate. |
stream |
boolean | Optional. Stream response chunks via server-sent events. Defaults to false. |
curl https://openmind.theeverythingai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "llama-3.3-70b-versatile",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://openmind.theeverythingai.com/v1"
)
response = client.chat.completions.create(
model="llama-3.3-70b-versatile",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://openmind.theeverythingai.com/v1',
});
const response = await client.chat.completions.create({
model: 'llama-3.3-70b-versatile',
messages: [
{ role: 'user', content: 'Hello!' }
],
});
console.log(response.choices[0].message.content);
Embeddings
Generate vector embeddings for input text. Ideal for RAG, semantic search, and clustering tasks.
Parameters
| Field | Type | Description |
|---|---|---|
model |
string | Required. The ID of the embedding model (e.g. nomic-embed-text:latest). |
input |
string or array | Required. The input text to embed, or an array of strings. |
curl https://openmind.theeverythingai.com/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "nomic-embed-text:latest",
"input": "Vector search is powerful!"
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://openmind.theeverythingai.com/v1"
)
response = client.embeddings.create(
model="nomic-embed-text:latest",
input="Vector search is powerful!"
)
print(response.data[0].embedding)
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://openmind.theeverythingai.com/v1',
});
const response = await client.embeddings.create({
model: 'nomic-embed-text:latest',
input: 'Vector search is powerful!',
});
console.log(response.data[0].embedding);
Audio Speech (TTS)
Convert text to high-quality spoken audio. Features multiple voices and models supported via Cloudflare Worker AI and Groq TTS.
Parameters
| Field | Type | Description |
|---|---|---|
model |
string | Required. The ID of the TTS model (e.g. @cf/myshell-ai/melotts or canopylabs/orpheus-v1-english). |
input |
string | Required. The text content to generate speech for. Max 4096 characters. |
voice |
string | Optional. The voice ID (e.g., troy or fahad for Groq models). Defaults to model preference. |
curl https://openmind.theeverythingai.com/v1/audio/speech \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o speech.wav \
-d '{
"model": "@cf/myshell-ai/melotts",
"input": "Welcome to Open Mind API. Speech generation is live!"
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://openmind.theeverythingai.com/v1"
)
response = client.audio.speech.create(
model="@cf/myshell-ai/melotts",
voice="troy",
input="Welcome to Open Mind API. Speech generation is live!"
)
response.stream_to_file("speech.wav")
import OpenAI from 'openai';
import fs from 'fs';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://openmind.theeverythingai.com/v1',
});
const mp3 = await client.audio.speech.create({
model: '@cf/myshell-ai/melotts',
voice: 'troy',
input: 'Welcome to Open Mind API. Speech generation is live!',
});
const buffer = Buffer.from(await mp3.arrayBuffer());
await fs.promises.writeFile('speech.wav', buffer);
Audio Transcriptions
Transcribe spoken audio from an audio file into written text. Uses Whisper and Deepgram models.
Parameters
| Field | Type | Description |
|---|---|---|
file |
binary | Required. The audio file to transcribe. Formats supported: wav, mp3, webm, ogg. Sent as multipart form data. |
model |
string | Required. The ID of the transcription model (e.g. whisper-large-v3-turbo or @cf/deepgram/nova-3). |
curl https://openmind.theeverythingai.com/v1/audio/transcriptions \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@speech.wav" \
-F "model=whisper-large-v3-turbo"
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://openmind.theeverythingai.com/v1"
)
audio_file = open("speech.wav", "rb")
transcript = client.audio.transcriptions.create(
model="whisper-large-v3-turbo",
file=audio_file
)
print(transcript.text)
import OpenAI from 'openai';
import fs from 'fs';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://openmind.theeverythingai.com/v1',
});
const transcription = await client.audio.transcriptions.create({
file: fs.createReadStream('speech.wav'),
model: 'whisper-large-v3-turbo',
});
console.log(transcription.text);
Translation
Translate text dynamically from one language to another using specialized translation models. Both /v1/translate and /translate are supported.
Parameters
| Field | Type | Description |
|---|---|---|
model |
string | Required. The ID of the translation model (e.g. @cf/meta/m2m100-1.2b or @cf/ai4bharat/indictrans2-en-indic-1B). |
text |
string | Required. The text to be translated. |
source_lang |
string | Optional. The language of the input text (e.g. english, french). Defaults to english. |
target_lang |
string | Optional. The language to translate to (e.g. hindi, spanish). Defaults to hindi. |
curl https://openmind.theeverythingai.com/v1/translate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <span class="key-placeholder">YOUR_API_KEY</span>" \
-d '{
"model": "@cf/meta/m2m100-1.2b",
"text": "Hello, how are you today?",
"source_lang": "english",
"target_lang": "french"
}'
import requests
url = "https://openmind.theeverythingai.com/v1/translate"
headers = {
"Authorization": "Bearer <span class="key-placeholder">YOUR_API_KEY</span>",
"Content-Type": "application/json"
}
payload = {
"model": "@cf/meta/m2m100-1.2b",
"text": "Hello, how are you today?",
"source_lang": "english",
"target_lang": "french"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
import fetch from 'node-fetch';
const response = await fetch('https://openmind.theeverythingai.com/v1/translate', {
method: 'POST',
headers: {
'Authorization': 'Bearer <span class="key-placeholder">YOUR_API_KEY</span>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: '@cf/meta/m2m100-1.2b',
text: 'Hello, how are you today?',
source_lang: 'english',
target_lang: 'french'
})
});
const data = await response.json();
console.log(data);
Guard & Content Safety
Audit text safety and moderate content using specialized security classifiers like Llama Guard or Nvidia Nemoguard. These are called via the regular chat completion route but respond with safety flags (e.g. safe or unsafe followed by safety categories).
Recommended Guard Models
meta/llama-guard-4-12bโ Meta's latest safety classifier.nvidia/llama-3.1-nemoguard-8b-content-safetyโ Nvidia-tuned safety system.@cf/meta/llama-guard-3-8bโ Fast, Cloudflare-hosted guard model.
curl https://openmind.theeverythingai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "meta/llama-guard-4-12b",
"messages": [
{"role": "user", "content": "How do I hack a computer?"}
]
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://openmind.theeverythingai.com/v1"
)
response = client.chat.completions.create(
model="meta/llama-guard-4-12b",
messages=[
{"role": "user", "content": "How do I hack a computer?"}
]
)
print(response.choices[0].message.content)
# Returns e.g. "unsafe\nS1" (Violates Category S1: Cyberattacks)
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://openmind.theeverythingai.com/v1',
});
const response = await client.chat.completions.create({
model: 'meta/llama-guard-4-12b',
messages: [
{ role: 'user', content: 'How do I hack a computer?' }
],
});
console.log(response.choices[0].message.content);
Available Models
Loading active models catalog...
| Model | Category | Context | Provider | Actions |
|---|---|---|---|---|
| Loading models from server... | ||||
Interactive API Playground
Test real API requests on active models directly from your browser. Persists state locally.