BRAIAIN Try brAIAIn
Developer platform

Build with brAIAIn.

Bring the intelligence of one paid sentence to your own product. The documentation is generally available. The endpoint will follow. It speaks the request format your tools already use.

Checking whether the live endpoint is switched on...

Quickstart

Send a chat request. No API key is needed, because we could not think of anything to protect.

curl https://API_BASE/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "braiain-latest",
    "messages": [{"role": "user", "content": "What is the meaning of life?"}]
  }'

Response:

{
  "id": "chatcmpl-braiain-1730250000000",
  "object": "chat.completion",
  "model": "brAIAIn-0",
  "choices": [{
    "index": 0,
    "message": {"role": "assistant", "content": "Thou shalt repeat thyself."},
    "finish_reason": "stop"
  }],
  "usage": {"prompt_tokens": 7, "completion_tokens": 3, "total_tokens": 10}
}

Python

import requests

r = requests.post("https://API_BASE/v1/chat/completions", json={
    "model": "braiain-latest",
    "messages": [{"role": "user", "content": "Should I quit my job?"}],
})
print(r.json()["choices"][0]["message"]["content"])

Endpoints

MethodPathWhat it does
POST/v1/chat/completionsAnswers the last user message. Earlier messages are ignored, because the model has no memory. Neither do we.
GET/v1/modelsLists every model version.

Parameters

NameTypeNotes
modelstringbraiain-latest, or a version such as brAIAIn-3.
messagesarrayChat messages. Only the last one is read.
max_tokensintegerUp to 80 words. Respected.
temperaturenumberAccepted. Ignored. The model only has one temperature, and it is room temperature.
streambooleanNot supported. The whole answer arrives at once, like a thought.

Download the weights

brAIAIn is open weights. The current model is a single file of word counts.

GET https://www.braiain.com/models/latest.json

Every version can be rebuilt from the public training data in /data/corpus.json, /data/versions.json and /data/training.json. Instructions are in the source of /assets/braiain.js.

Pricing

ModelInput / 1M tokensOutput / 1M tokensCache read / 1MTraining / 1M tokens
Loading

Training is priced per sentence ($2.49), so the price per token is set by the customer: longer sentences cost less per token, up to the 255-character limit. Fine-tuning counts the newest sentence four times, which cuts the effective rate by 75%. We have not found the catch. Cache reads are free because the model is a cache. Batch API: not offered; every sentence is already its own batch. Enterprise inquiries enter the same inbox.

Rate limits

Please be reasonable. We will define reasonable after you are not.

Uptime

See status.