Integrate Oblivion's AI capabilities into your applications
Sign up and get your API key from the dashboard
Send a POST request to our chat endpoint
Receive AI-generated responses in real-time
const response = await fetch('https://oblivion.ai/api/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
messages: [
{ role: 'user', content: 'Hello, Oblivion!' }
]
})
});
const data = await response.json();
console.log(data.message);All API requests require authentication using an API key. Include your API key in the Authorization header of your requests.
Authorization: Bearer YOUR_API_KEYAPI keys are currently in private beta. Contact our support team to request access.
Send a message to Oblivion and receive an AI-generated response.
{
"messages": [
{
"role": "user",
"content": "What is artificial intelligence?"
}
],
"stream": false,
"max_tokens": 1000,
"temperature": 0.7
}| Parameter | Type | Required | Description |
|---|---|---|---|
| messages | array | Yes | Array of message objects |
| stream | boolean | No | Enable streaming responses |
| max_tokens | integer | No | Maximum tokens in response |
| temperature | float | No | Response creativity (0.0-1.0) |
{
"id": "msg_abc123",
"object": "chat.completion",
"created": 1701234567,
"model": "oblivion-1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Artificial intelligence (AI) refers to..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 150,
"total_tokens": 165
}
}To ensure fair usage and maintain service quality, we implement rate limits on API requests.
Rate limit headers are included in all responses to help you track your usage.
Official SDK for Node.js and browser environments
npm install @oblivion/sdkPython SDK with async support
pip install oblivion-sdkLightweight Go client library
go get github.com/oblivion/go-sdkDirect HTTP requests using cURL
curl -X POST https://oblivion.ai/api/chatOur team is here to help you integrate Oblivion into your applications successfully.