API Documentation
Everything you need to integrate RocketAIRoom into your applications
Coming Soon
Our API is under active development. The documentation below previews what will be available at launch.
Authentication
All API requests require authentication using an API key in the request header:
Authorization: Bearer YOUR_API_KEYGenerate API keys from your dashboard once you create an account.
Chat API
Send messages to our AI and receive intelligent responses.
Endpoint
POST https://api.rocketairoom.com/v1/chatRequest Body
{
"model": "rocket-1",
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
],
"max_tokens": 1000,
"temperature": 0.7
}Response
{
"id": "chat-abc123",
"object": "chat.completion",
"created": 1234567890,
"model": "rocket-1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm doing great. How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 18,
"total_tokens": 30
}
}Example (cURL)
curl https://api.rocketairoom.com/v1/chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "rocket-1",
"messages": [{"role": "user", "content": "Hello!"}]
}'Example (Python)
import requests
response = requests.post(
"https://api.rocketairoom.com/v1/chat",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "rocket-1",
"messages": [{"role": "user", "content": "Hello!"}]
}
)
print(response.json())Example (JavaScript)
const response = await fetch('https://api.rocketairoom.com/v1/chat', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'rocket-1',
messages: [{ role: 'user', content: 'Hello!' }]
})
});
const data = await response.json();
console.log(data);Available Models
| Model | Description | Max Tokens | Price |
|---|---|---|---|
rocket-1 | Standard model for most tasks | 4,096 | $0.0004/1K tokens |
rocket-1-turbo | Faster responses, same quality | 4,096 | $0.0007/1K tokens |
rocket-1-pro | Enhanced reasoning capabilities | 8,192 | $0.0012/1K tokens |
Rate Limits
| Plan | Requests/min | Tokens/min |
|---|---|---|
| Starter | 25 | 12,000 |
| Pro | 80 | 60,000 |
| Enterprise | Custom | Custom |
Error Handling
Standard HTTP response codes:
| Code | Description |
|---|---|
200 | Success |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid API key |
429 | Too Many Requests - Rate limit exceeded |
500 | Server Error |
Official SDKs
We'll provide official SDKs for popular languages:
Python
pip install rocketairoomComing SoonJavaScript/Node.js
npm install rocketairoomComing SoonPHP
composer require rocketairoom/sdkComing Soon