API Documentation
Everything you need to integrate ForceBoostAI into your applications
Coming Soon
Our API is currently under development. The documentation below shows what will be available when we launch.
Authentication
All API requests require authentication using an API key. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEY
You can generate API keys from your dashboard once you create an account.
Chat API
Send messages to our AI and receive responses.
Endpoint
POST https://api.forceboostai.com/v1/chat
Request Body
{
"model": "forceboost-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": "forceboost-1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm doing great, thank you for asking. How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 20,
"total_tokens": 32
}
}
Example (cURL)
curl https://api.forceboostai.com/v1/chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "forceboost-1",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Example (Python)
import requests
response = requests.post(
"https://api.forceboostai.com/v1/chat",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "forceboost-1",
"messages": [{"role": "user", "content": "Hello!"}]
}
)
print(response.json())
Example (JavaScript)
const response = await fetch('https://api.forceboostai.com/v1/chat', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'forceboost-1',
messages: [{ role: 'user', content: 'Hello!' }]
})
});
const data = await response.json();
console.log(data);
Available Models
| Model | Description | Max Tokens | Price |
|---|---|---|---|
forceboost-1 |
Standard model for most tasks | 4,096 | $0.0005/1K tokens |
forceboost-1-turbo |
Faster responses, same quality | 4,096 | $0.0008/1K tokens |
forceboost-1-pro |
Enhanced reasoning capabilities | 8,192 | $0.0015/1K tokens |
Rate Limits
| Plan | Requests/min | Tokens/min |
|---|---|---|
| Starter | 20 | 10,000 |
| Pro | 60 | 50,000 |
| Enterprise | Custom | Custom |
Error Handling
The API uses 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 forceboostai
Coming Soon
JavaScript/Node.js
npm install forceboostai
Coming Soon
PHP
composer require forceboostai/sdk
Coming Soon