Documentation
Get started with RebelRouter API in minutes. All endpoints are OpenAI-compatible.
Quick Start
1
Create an account
Register at rebelrouter.com to get your API key. Free tier includes monthly credit.
2
Get your API key
Go to Dashboard - API Keys and generate a new key. The prefix will be sk-rebel-.
3
Make your first request
Use the base URL and your API key in any OpenAI-compatible client or SDK.
Base URL
https://api.rebeltv.biz.id/api/v1Authentication
All API requests require a valid API key in the Authorization header.
Authorization: Bearer sk-rebel-YOUR_API_KEYChat Completion
cURL
curl -X POST https://api.rebeltv.biz.id/api/v1/chat/completions \
-H "Authorization: Bearer sk-rebel-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-chat",
"messages": [
{"role": "user", "content": "Hello, how are you?"}
]
}'All models are available through the same endpoint. Just change the value of model.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.rebeltv.biz.id/api/v1",
api_key="sk-rebel-YOUR_KEY"
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)Streaming
Set stream: true to receive tokens as they are generated via Server-Sent Events (SSE).
curl -X POST https://api.rebeltv.biz.id/api/v1/chat/completions \
-H "Authorization: Bearer sk-rebel-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-chat","messages":[{"role":"user","content":"Tell me a story"}],"stream":true}'Available Models
List all models available for your account:
curl https://api.rebeltv.biz.id/api/v1/models \
-H "Authorization: Bearer sk-rebel-YOUR_KEY"