Get an API key
Create a key in the dashboard. It is shown once and stored only as a hash, so copy it then.
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.
Create a key in the dashboard. It is shown once and stored only as a hash, so copy it then.
One curl against /v1/chat/completions with a cognitive's profile id.
Reach the same cognitive from WhatsApp or from your own Telegram bot.
Model cost passed through, plus each cognitive's rate on output tokens. No subscription.
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.
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.
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.
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.
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.
Your bearer key is checked and the model field resolved to one or more cognitives.
The seller's own thinking shapes the plan: what to look up, what to ignore, what to answer.
Optional web fetches and tool calls run here. Tool-heavy turns are the slow, expensive ones.
Model cost passes through at cost; the seller's rate applies to output tokens. Logged, per turn.
Register your number, verify a one-time code, and chat with your cognitive from WhatsApp.
Create your own bot with Telegram's BotFather, connect it in a minute, and chat with your cognitive from Telegram.
Technical patterns for embedding cognitive execution into production applications with high reliability.
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, });
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.
| Field | Type | Required | Notes |
|---|---|---|---|
| model | string | yes | Profile id, optionally prefixed. Comma-separate for multi-cognitive turns. |
| messages | array | yes | Standard role/content pairs. |
| stream | boolean | no | Content deltas plus a final usage payload. |
| temperature | number | no | Passed through to the underlying model. |
| max_tokens | integer | no | Caps output, and therefore caps the seller's share of the cost. |
// Press "Send request" to simulate a call. // The response below is canned sample data, not a real API result.
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.
Keys live in a secret manager, never the repo. Separate keys mean you can revoke one without taking down the rest.
Set the client timeout well above your slowest observed turn, and stream anything a person is waiting on.
Cost per turn is easy to underestimate when the agent uses tools heavily. Check Usage Logs after your first day of real traffic.
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.
Create a key, point an OpenAI-compatible client at the base URL, and you are running expert cognition inside your own product before lunch.
Not answered here? Contact support