Developer docs

OpenAI-compatible. Drop-in ready.

Point the OpenAI client at https://api.botlab.my/v1 and keep the code you already have — same request shape, same response shape.

01

Get an API key

Sign in to the dashboard and create a key. Top up your RM wallet to start.

02

Point your SDK

Set the base URL to https://api.botlab.my/v1 and use your key. Keep your existing code.

03

Call any model

Pick any model from the catalog — streaming and non-streaming both supported.

Quickstart — cURL

Any HTTP client works. Replace the key and model.

terminal
curl https://api.botlab.my/v1/chat/completions \
  -H "Authorization: Bearer $BOTLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4.8",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python (OpenAI SDK)

Just change the base URL — the rest is standard.

example.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api.botlab.my/v1",
    api_key="YOUR_BOTLAB_KEY",
)

resp = client.chat.completions.create(
    model="claude-opus-4.8",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True,
)

for chunk in resp:
    print(chunk.choices[0].delta.content or "", end="")

What you get

  • Drop-in replacement for the OpenAI SDK
  • Streaming and non-streaming responses
  • One API key across every model
  • Priced in Ringgit — pay only for what you use

Browse the full model catalog, or read the complete API reference on the dashboard.