Guide

OpenAI SDK setup

Change the base URL and the key. Everything else is unchanged.

python
from openai import OpenAI

client = OpenAI(
    api_key="sk-beeload-…",
    base_url="https://api.beeload.net/v1",
    timeout=120.0,
)

Node

typescript
const client = new OpenAI({{
  apiKey: process.env.BEELOAD_KEY,
  baseURL: "https://api.beeload.net/v1",
}});

Environment

Store the key in BEELOAD_KEY. Never commit it. Rotate keys on a schedule and after any leak.