Skip to content

SDK Overview

R9S SDK is a comprehensive client library for interacting with R9S APIs, supporting multiple programming languages.

Currently supports the following programming languages:

  • Python - Complete async and sync support with type hints
  • JavaScript/TypeScript - Node.js and browser environment support
  • Go - High-performance Go client with concurrency support
  • Java - Enterprise-level Java client with Spring integration
  • ✅ Automatic authentication and error handling
  • ✅ Async and streaming response support
  • ✅ Type-safe API calls with full IntelliSense
  • ✅ Complete documentation and examples
  • ✅ Smart retry and fallback strategies
  • ✅ Built-in logging and monitoring
  • ✅ Request/response interceptors
  • ✅ File upload/download management
Terminal window
pip install r9s
Terminal window
npm install r9s
Terminal window
go get github.com/edgefn/r9s-go
<dependency>
<groupId>com.edgefn</groupId>
<artifactId>r9s-sdk</artifactId>
<version>1.0.0</version>
</dependency>

Check the example usage in each module below to get started quickly:

All SDK modules follow a consistent pattern:

from r9s import R9S
# Initialize client
with R9S(api_key="your-api-key") as client:
# Use any SDK module
result = client.chat.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello!"}]
)
import { R9S } from 'r9s';
// Initialize client
const client = new R9S({ apiKey: 'your-api-key' });
// Use any SDK module
const result = await client.chat.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: 'Hello!' }]
});

For detailed API reference documentation, see:

See complete example code for each language:

Issues and Pull Requests are welcome to improve the SDK!

For questions or suggestions, please contact our technical support team.