Start calling Claude in 5 minutes
Beeload exposes an OpenAI-compatible API. If you can call the OpenAI API, you can call Beeload — change the base URL and the key.
Base URL
All requests go to:
endpoint
https://api.beeload.net/v1
Note. The
/v1/models endpoint on this gateway currently does not return a standard OpenAI model list. Use the model names in the model list page instead.Authentication
Pass your key as a bearer token. Keys are created in the dashboard and can be revoked at any time.
curl https://api.beeload.net/v1/chat/completions \ -H "Authorization: Bearer $BEELOAD_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"claude-sonnet-5","messages":[{"role":"user","content":"Hello"}]}'
from openai import OpenAI client = OpenAI( api_key="sk-beeload-…", base_url="https://api.beeload.net/v1", ) print(client.chat.completions.create( model="claude-sonnet-5", messages=[{"role": "user", "content": "Hello"}], ).choices[0].message.content)
Response shape
The response follows the OpenAI chat completion schema, so existing parsers keep working.
{
"id": "msg_011Ch8EUJxrJWYgGtL7UyT1h",
"model": "claude-sonnet-5",
"object": "chat.completion",
"choices": [{
"index": 0,
"message": { "role": "assistant", "content": "Chào bạn!" },
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 13, "completion_tokens": 31,
"total_tokens": 44
}
}
Errors
Errors use the OpenAI error envelope: an HTTP status plus an error.message string.
| Status | Meaning | What to do |
|---|---|---|
| 401 | Key not found or revoked | Generate a new key in the dashboard |
| 402 | Insufficient credit | Top up; traffic resumes immediately |
| 429 | Rate limit | Back off, then retry with exponential delay |
| 502 | Upstream unavailable or model name invalid | Check the model name; retry |
Limits
- Keys are scoped to a single account and can be individually revoked.
- Spend caps are enforced per key; a capped key returns a billing error.
- Request and response sizes follow the upstream model's context window.
Placeholder: concrete rate-limit numbers and retention periods are not final. They will be published here once load testing is complete.