KJP AI Router
Sign in to your developer dashboard
API Dashboard
Manage load balancer rotation and proxy secrets for chatbot integration.
0
Primary AI Keys Pool
0
Fast AI Keys Pool
0
Generated API Keys
Active
Load Balancer Status
Quick Links
Step 1
Generate API Key
Create your custom secret token (
kjp-secret-...) for chatbots.
Step 2
Add Provider Keys
Add your backend AI keys for fast Round-Robin rotation.
Step 3
Get cURL & SDK Code
Copy working integration code for your chatbot or backend application.
Backend Provider Keys
Add multiple backend AI keys. Incoming requests are equally distributed.
Primary AI Keys Pool (kjp-alpha)
| Masked Key | Added Date | Action |
|---|
Fast AI Keys Pool (kjp-alpha-mini)
| Masked Key | Added Date | Action |
|---|
Model Mapping Settings
Define underlying provider model IDs for kjp-alpha and kjp-alpha-mini aliases.
Generated API Keys
Generate unique secret keys to authenticate requests coming from your chatbot.
| Secret Proxy API Key | Created On | Action |
|---|
Model Cards
Available endpoint routing aliases for chatbot developers.
Multimodal AI
kjp-alpha
Routes request through the primary multimodal AI key pool. Supports complex text prompts and multi-file uploads.
• Target Provider: Primary AI Pool
• Inputs: Text, Base64 Image
• Distribution: Round-Robin equal load balancing
• Inputs: Text, Base64 Image
• Distribution: Round-Robin equal load balancing
Ultra Fast Chat
kjp-alpha-mini
Routes request through the fast AI chat pool. Ideal for rapid conversational bots and quick queries.
• Target Provider: Fast AI Pool
• Inputs: Text Prompt
• Distribution: Round-Robin equal load balancing
• Inputs: Text Prompt
• Distribution: Round-Robin equal load balancing
API Integration Code Examples
Use these code snippets to connect your chatbot to this API Gateway.
Base Endpoint:
Send POST requests using your generated key
https://your-domain.comSend POST requests using your generated key
Authorization: Bearer kjp-secret-xxxx and set model to kjp-alpha or kjp-alpha-mini.
1. cURL Request
curl -X POST "https://your-domain.com/v1/chat/completions" \
-H "Authorization: Bearer kjp-secret-YOUR_GENERATED_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kjp-alpha",
"messages": [
{"role": "user", "content": "Explain AI in a few words"}
]
}'
2. JavaScript / Node.js Chatbot Integration
async function sendToChatbot(promptMessage) {
const API_URL = "https://your-domain.com/v1/chat/completions";
const API_KEY = "kjp-secret-YOUR_GENERATED_KEY";
const response = await fetch(API_URL, {
method: "POST",
headers: {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "kjp-alpha-mini",
messages: [{ role: "user", content: promptMessage }]
})
});
const data = await response.json();
console.log("Chatbot Response:", data);
return data;
}
3. Python Integration
import requests
url = "https://your-domain.com/v1/chat/completions"
headers = {
"Authorization": "Bearer kjp-secret-YOUR_GENERATED_KEY",
"Content-Type": "application/json"
}
payload = {
"model": "kjp-alpha",
"messages": [{"role": "user", "content": "Hello world!"}]
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())