Documentation

DeveloperDocumentation

Everything you need to integrate GlauberAI into your applications. Get started in minutes with our comprehensive guides and API reference.

Quick Start

Get up and running with GlauberAI in under 5 minutes

1. Get your API key

Sign up for a free account and get your API key from the dashboard.

Get API Key

2. Install and use

// Install the SDK
npm install @glauber-ai/sdk

// Initialize the client
import { GlauberAI } from '@glauber-ai/sdk';

const client = new GlauberAI({
  apiKey: 'your-api-key-here'
});

// Make a query
const response = await client.query({
  message: "Explain quantum computing in simple terms",
  preferences: {
    model: "auto", // Let GlauberAI choose the best model
    maxTokens: 500
  }
});

console.log(response.data.message);

API Reference

Complete reference for all API endpoints

POST /v1/query

Send a query to GlauberAI and get an intelligent response using the optimal model.

Request Body
{
  "message": "string", // Required: Your query
  "preferences": {
    "model": "auto" | "gpt-4" | "claude-3-sonnet", // Optional
    "maxTokens": 1000, // Optional: Max response length
    "temperature": 0.7, // Optional: Creativity (0-1)
    "domain": "coding" | "creative" | "analysis" // Optional: Routing hint
  }
}
cURL Example
curl -X POST https://api.glauber-ai.com/v1/query \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Explain machine learning",
    "preferences": {
      "model": "auto",
      "maxTokens": 500
    }
  }'

SDKs & Libraries

Official SDKs for popular programming languages

JavaScript/TypeScript
Available

@glauber-ai/sdk

Python
Available

glauber-ai

Go
Available

github.com/glauber-ai/go-sdk

Java
Coming Soon

com.glauber-ai:sdk

PHP
Coming Soon

glauber-ai/php-sdk

Ruby
Coming Soon

glauber-ai