API Documentation
BusinessAgent provides an OpenAI-compatible API relay for Anthropic's top models. Replace your endpoint URL, keep your existing code — it just works.
Quick Start
Get up and running in under 5 minutes:
Contact us via hello@your-agent.cc, Telegram, or WeChat (Moumlbius)
🎁 Free $1–$5 trial credit for new users
https://business-agent.cc/apicurl https://business-agent.cc/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-ba-your-key-here" \
-d '{"model": "claude-opus-4-20250514", "messages": [{"role": "user", "content": "Hello, Claude!"}]}' Authentication
All API requests require a valid API key sent via the Authorization header:
Authorization: Bearer sk-ba-xxxxxxxxxxxxNever expose your API key in client-side code or public repositories. Use environment variables.
API Endpoint
| Setting | Value |
|---|---|
| Base URL | https://business-agent.cc/api |
| Chat Completions | /v1/chat/completions |
| Models List | /v1/models |
| Protocol | OpenAI-compatible (Chat Completions API) |
| Streaming | ✅ Supported ("stream": true) |
Supported Models
| Model ID | Channel | Price / 50M Tokens | Best For |
|---|---|---|---|
claude-opus-4-20250514 | Anthropic Direct | $78 | Top-tier quality, max stability |
claude-opus-4-20250514 | AWS Bedrock | $47 | Enterprise stability, compliance-ready |
claude-opus-4-20250514 | Claude Official | $36 | Production-grade, balanced |
codex-5.3-high | Coding | $7 | Code generation, refactoring |
codex-5.4-high | Coding | $7 | Latest coding model |
claude-sonnet-4-20250514 | Claude Official | $36 | General purpose, balanced |
All models use official 1:1 token rates. No markup, no rate inflation.
Code Examples
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="sk-ba-your-key-here",
base_url="https://business-agent.cc/api/v1"
)
response = client.chat.completions.create(
model="claude-opus-4-20250514",
messages=[
{"role": "user", "content": "Explain quantum computing in 3 sentences."}")
]
)
print(response.choices[0].message.content) Node.js (OpenAI SDK)
import OpenAI from 'openai';
const client = new OpenAI({"}
apiKey: 'sk-ba-your-key-here',
baseURL: 'https://business-agent.cc/api/v1',
}"});
const response = await client.chat.completions.create({"}
model: 'claude-opus-4-20250514',
messages: [
{"} role: 'user', content: 'Write a haiku about coding.' }"}
],
}"});
console.log(response.choices[0].message.content); Streaming (Python)
stream = client.chat.completions.create(
model="claude-opus-4-20250514",
messages=[{"role": "user", "content": "Tell me a story."}],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="") Tool Integration
BusinessAgent works with any OpenAI-compatible tool. Just set the base URL and API key:
Cursor
Settings → Models → Override OpenAI Base URL
https://business-agent.cc/apiClaude Code (CLI)
Set environment variables:
export ANTHROPIC_BASE_URL=https://business-agent.cc/api
export ANTHROPIC_API_KEY=sk-ba-xxx VS Code (Continue)
Edit ~/.continue/config.json:
{"}
"apiBase": "https://business-agent.cc/api/v1",
"apiKey": "sk-ba-xxx"
}"} MCP Server
Any MCP-compatible client — set the endpoint in your MCP config.
Rate Limits
| Plan | RPM (Requests/min) | TPM (Tokens/min) | Concurrent |
|---|---|---|---|
| Standard | 60 | 100,000 | 5 |
| Team | 120 | 300,000 | 15 |
| Enterprise | Custom | Custom | Custom |
Rate limits are per API key. Contact us for higher limits.
Error Codes
| Code | Meaning | Solution |
|---|---|---|
401 | Invalid API key | Check your key is correct and complete |
402 | Insufficient balance | Top up your account |
429 | Rate limit exceeded | Reduce request frequency or upgrade plan |
500 | Internal server error | Retry after a few seconds |
503 | Model temporarily unavailable | The upstream model is under load — retry shortly |
Support
We typically respond within 2 hours during business hours (UTC+8).