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_KEY

Generate 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/chat

Request 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

ModelDescriptionMax TokensPrice
rocket-1Standard model for most tasks4,096$0.0004/1K tokens
rocket-1-turboFaster responses, same quality4,096$0.0007/1K tokens
rocket-1-proEnhanced reasoning capabilities8,192$0.0012/1K tokens

Rate Limits

PlanRequests/minTokens/min
Starter2512,000
Pro8060,000
EnterpriseCustomCustom

Error Handling

Standard HTTP response codes:

CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid API key
429Too Many Requests - Rate limit exceeded
500Server Error

Official SDKs

We'll provide official SDKs for popular languages:

Python

pip install rocketairoomComing Soon

JavaScript/Node.js

npm install rocketairoomComing Soon

PHP

composer require rocketairoom/sdkComing Soon

Ready to Build?

Join our waitlist to get early API access.

Join Waitlist