Documentation

Put a cognitive inside your product.

Everything you need to go from a first chat to production traffic: quickstarts, the OpenAI-compatible REST API, the WhatsApp and Telegram channels, and an honest account of what a turn costs.

3Guides2Channels60Req / min / account
OpenAI-compatible, no new SDKKeys hashed, never recoverablePrepaid credits, metered per token

Start here

Four paths · about 20 minutes end to end
1

Get an API key

Create a key in the dashboard. It is shown once and stored only as a hash, so copy it then.

2

Send a first request

One curl against /v1/chat/completions with a cognitive's profile id.

3

Connect a channel

Reach the same cognitive from WhatsApp or from your own Telegram bot.

4

Understand the bill

Model cost passed through, plus each cognitive's rate on output tokens. No subscription.

Quickstart

From zero to a first answer

Top up

Brain Renting is prepaid. Top up once and every turn (web chat, WhatsApp, Telegram or API) draws from the same wallet. There is no plan to pick and nothing recurring.

Pick a cognitive

Browse the marketplace and open one. Its profile id is what you will address over the API, and its rate is what the seller charges on output tokens.

Create an API key

Keys look like sk_live_.... The key is displayed once and stored only as a SHA-256 hash, so the platform can show you a last-used timestamp but can never recover the key itself. Use one key per service so you can revoke a single one.

Send the first request

Grab your base URL and the model id from the Use this chat via API panel in the chat view rather than hardcoding a host, then point any OpenAI-compatible client at it.

Nothing to install. If your code already talks to /v1/chat/completions, integrating a cognitive is a base URL, a key and a model id.

How a turn runs

What happens between your request and the answer

A turn is not a single completion. The cognitive may reason across several internal model calls, reach for tools, and fetch from the web before it answers. That is why you budget latency generously and prefer streaming on anything a person is watching.

1 · Request

Your bearer key is checked and the model field resolved to one or more cognitives.

2 · Reasoning

The seller's own thinking shapes the plan: what to look up, what to ignore, what to answer.

3 · Tools

Optional web fetches and tool calls run here. Tool-heavy turns are the slow, expensive ones.

4 · Metering

Model cost passes through at cost; the seller's rate applies to output tokens. Logged, per turn.

Integration guides

Three ways to reach the same cognitive

WhatsApp

Channel · 4 min

Register your number, verify a one-time code, and chat with your cognitive from WhatsApp.

Telegram

Channel · 5 min

Create your own bot with Telegram's BotFather, connect it in a minute, and chat with your cognitive from Telegram.

REST API

Reference · 10 min

Technical patterns for embedding cognitive execution into production applications with high reliability.

Channels are for convenience, not automation. Every inbound message still runs a full turn on your wallet. There is no templated auto-reply and no business-hours queue.

API reference

OpenAI-compatible · bearer auth
v1

Endpoints

POST/v1/chat/completionsRun a turn against one or more cognitives. Supports stream.
GET/v1/modelsList every cognitive this key can address. Use it instead of hardcoding ids.

Authentication

Send your key as a bearer token. Auth failures return 401 with a deliberately generic message: an unknown key, a revoked key and an inactive account are indistinguishable by design, so do not branch on the reason.

# Base URL and model id both come from the "Use this chat via API" panel.
export BR_API_BASE="<base URL from the API panel>"

curl "$BR_API_BASE/v1/chat/completions" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cognitive/<profile_id>",
    "messages": [{"role": "user", "content": "How would you price a second tier?"}]
  }'
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["BR_API_KEY"],          # sk_live_...
    base_url=f"{os.environ['BR_API_BASE']}/v1",
)

resp = client.chat.completions.create(
    model="cognitive/<profile_id>",
    messages=[{"role": "user", "content": "Review this rollout plan."}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.BR_API_KEY,               // sk_live_...
  baseURL: `${process.env.BR_API_BASE}/v1`,
});

const resp = await client.chat.completions.create({
  model: "cognitive/<profile_id>",
  messages: [{ role: "user", content: "Review this rollout plan." }],
  stream: true,
});

Addressing a cognitive

The model field is the cognitive's profile id. A cognitive/ or cognitive: prefix is accepted and stripped. Pass a comma-separated list to run several in one turn: each contributes its reasoning, and each seller earns at its own rate.

FieldTypeRequiredNotes
modelstringyesProfile id, optionally prefixed. Comma-separate for multi-cognitive turns.
messagesarrayyesStandard role/content pairs.
streambooleannoContent deltas plus a final usage payload.
temperaturenumbernoPassed through to the underlying model.
max_tokensintegernoCaps output, and therefore caps the seller's share of the cost.

Playground

Simulated · nothing leaves this page
sk_live_••••
Response will appear here
// Press "Send request" to simulate a call.
// The response below is canned sample data, not a real API result.

Usage, limits and billing

60 requests per minute per account

Requests are limited to 60 per minute per account, counted in a sliding window across every key on that account. Over the limit returns 429 with a retryable message. Back off exponentially with jitter rather than hammering, because a tight retry loop from several workers will keep you pinned at the ceiling.

Before you ship

One key per service

Keys live in a secret manager, never the repo. Separate keys mean you can revoke one without taking down the rest.

Generous timeouts

Set the client timeout well above your slowest observed turn, and stream anything a person is waiting on.

Read the logs on day one

Cost per turn is easy to underestimate when the agent uses tools heavily. Check Usage Logs after your first day of real traffic.

Questions people actually ask

Six of them

No. The product is prepaid credits with per-token metering. "Add to Bucket" saves a cognitive; it does not start a recurring payment. You top up once and every turn draws from that balance.

The underlying model cost is passed through at cost, and the seller's rate is applied to output tokens. A turn that reasons across several internal calls and fetches the web costs more than a one-line answer, which is why Usage Logs record every turn individually.

No, and that is deliberate. The key is shown once and stored only as a SHA-256 hash. The platform can tell you when it was last used but can never show you the key again. Issue a new one and revoke the old.

An unknown key, a revoked key and an inactive account all return the same generic 401. Distinguishing them would tell an attacker which keys exist, so do not branch on the reason: treat any 401 as "re-check the credential".

Exponential backoff with jitter. The limit is 60 requests per minute per account across every key on it, counted in a sliding window, so a tight retry loop from several workers will simply keep you pinned at the ceiling.

Not through the channels. WhatsApp and Telegram are a convenience so you can reach a cognitive from a thread you already have open. There is no templated auto-response and no business-hours queue, and every message still runs a full turn on your wallet.

Ship your first turn today.

Create a key, point an OpenAI-compatible client at the base URL, and you are running expert cognition inside your own product before lunch.