Developers
Build with an OpenAI-compatible cloud API.
The API speaks the OpenAI format, so the OpenAI SDKs, LangChain and most tools work after you change the base URL. Create a key in Workspace.
https://api.botconnector.id/v1curl https://api.botconnector.id/v1/chat/completions \
-H "Authorization: Bearer $BOTCONNECTOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "glm-5.3-flash", "messages": [{"role": "user", "content": "Halo!"}], "stream": true}'
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://api.botconnector.id/v1', apiKey: process.env.BOTCONNECTOR_API_KEY })
const stream = await client.chat.completions.create({
model: 'glm-5.3-flash',
messages: [{ role: 'user', content: 'Halo!' }],
stream: true,
})
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? '')
from openai import OpenAI
import os
client = OpenAI(base_url="https://api.botconnector.id/v1", api_key=os.environ["BOTCONNECTOR_API_KEY"])
stream = client.chat.completions.create(
model="glm-5.3-flash",
messages=[{"role": "user", "content": "Halo!"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
Endpoints
All requests use Authorization: Bearer <key>. Free models work with a Starter key; pay-as-you-go models need a PAYG balance, topped up in Workspace.
| Endpoint | What it does |
|---|---|
POST /chat/completions | Chat with streaming and tool calling. |
GET /models | The models your key can use. |
POST /images/generations | Generate images with the image models in the catalog. |
POST /audio/speech | Text to speech. |
POST /web/search | Web search results (title, URL, snippet) for grounding answers. Charged to your plan allowance; no daily cap. |
POST /web/fetch | Fetch a URL as clean text or Markdown (up to 30k characters per page, 5 MB page limit, private addresses blocked). Charged to your plan allowance; no daily cap. |
GET /usage | Wallet balance, monthly limit, and plan quota windows (5 hours / 7 days / billing period) in USD micros. |
Full request and response formats: API reference.
Guides
API guide
Keys, models, streaming, errors and limits.
SDKs
Using the OpenAI SDKs for JavaScript and Python.
BCCLI
The terminal coding agent and its commands.
Switchboard
The open-source terminal agent (sbx) with plugins, approvals, and Telegram/Discord channels.
MCP
Connect tools and data to BCCLI with MCP servers.
Integrations
Editors and apps that accept an OpenAI-compatible endpoint.
Models
Model ids, context lengths and access.