Skip to content
SolidRusT.ai

SDK Overview

We provide official SDKs to simplify integration with the SolidRusT AI API.

LanguagePackageStatus
Pythonsolidrust-aiComing Soon
JavaScript/TypeScript@solidrust/aiComing Soon

Since SolidRusT AI provides an OpenAI-compatible API, you can use the official OpenAI SDKs with minimal configuration changes.

from openai import OpenAI
client = OpenAI(
api_key="YOUR_SOLIDRUST_API_KEY",
base_url="https://api.solidrust.ai/v1"
)
response = client.chat.completions.create(
model="vllm-primary",
messages=[{"role": "user", "content": "Hello!"}]
)
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_SOLIDRUST_API_KEY',
baseURL: 'https://api.solidrust.ai/v1',
});
const response = await client.chat.completions.create({
model: 'vllm-primary',
messages: [{ role: 'user', content: 'Hello!' }],
});

Our official SDKs will provide additional features beyond OpenAI compatibility:

  • RAG Integration - Built-in methods for the data layer API
  • Tool Calling Helpers - Simplified function/tool calling
  • Automatic Retry - Configurable retry logic with backoff
  • Streaming Utilities - Helper functions for SSE handling
  • Type Definitions - Full TypeScript support

SDKs are open source. Contributions welcome:

  • Python SDK: Coming soon
  • JavaScript SDK: Coming soon