Client SDKs & Libraries
Official client libraries for integrating Genesis Alpha API into your projects
Quick Start
All client libraries are OpenAI-compatible with enhanced Genesis Alpha features. Simply change your base URL to http://localhost:8000
Python Client SDK
Full-featured Python client with sync/async support
Features
- • Sync & async client support
- • Type hints and dataclasses
- • Conversation management
- • Error handling & retries
- • All API endpoints covered
Installation
pip install requests aiohttp
Example Usage
from genesis_client import GenesisClient
# Initialize client
client = GenesisClient("http://localhost:8000")
# Simple chat
response = client.chat("What is consciousness?")
print(response.content)
# Execute code
result = client.execute_code("print('Hello, World!')")
print(result.stdout)
# Update settings
client.update_settings(
temperature=0.8,
reasoning_depth="deep"
)JavaScript/Node.js Client SDK
Works in both Node.js and modern browsers
Features
- • Node.js and browser support
- • Promise-based async API
- • Conversation context manager
- • TypeScript definitions
- • Error handling with retry logic
Installation
npm install node-fetch
Example Usage
const { GenesisClient } = require('./genesis-client');
// Initialize client
const client = new GenesisClient('http://localhost:8000');
// Simple chat
const response = await client.chat('What is consciousness?');
console.log(response.content);
// Multi-turn conversation
const conversation = client.createConversation();
await conversation.send('Hello!');
await conversation.send('Tell me about AI');
// Execute code
const result = await client.executeCode("console.log('Hello!')");
console.log(result.stdout);cURL Examples & Testing
Ready-to-use cURL commands for API testing
Quick Health Check
curl http://localhost:8000/health
Chat Completion
curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "genesis-alpha-v6.3.1",
"messages": [{"role": "user", "content": "Hello!"}],
"temperature": 0.7
}'Quick Start Guide
Get up and running in 5 minutes
1
Start Genesis Alpha Server
Run python genesis_alpha_v6/genesis_v6_3_1_server.py
2
Download Client SDK
Choose Python, JavaScript, or cURL examples above
3
Make Your First API Call
Test with health check: curl http://localhost:8000/health
✓
Start Building
You're ready to integrate Genesis Alpha into your project!