Quickstart
Qorebit is OpenAI SDK–compatible, allowing you to integrate in minutes while accessing multiple AI models from leading providers like Anthropic, Google, and Meta through a single, unified API.
1. Install the SDK
npm install openai2. Authentication
Qorebit uses API keys to authenticate requests. You can find your API key in the Dashboard.
Authorization: Bearer qb_live_...3. Make Your First Request
REST API — Direct HTTP calls to our unified endpoint (standard cURL example).
OpenAI SDK — Use the official OpenAI client by simply changing the base URL.
Python
TypeScript
JavaScript
cURL
import openai
client = openai.OpenAI({
api_key: "qb_live_...",
base_url: "https://api.qorebit.ai/v1",
default_headers: {
"HTTP-Referer": "<YOUR_SITE_URL>",
"X-Title": "<YOUR_SITE_NAME>",
}
})
response = client.chat.completions.create({
model: "openai/gpt-4o",
messages: [{ role: "user", content: "Hello!" }]
})
print(response.choices[0].message.content)