SDKs & Libraries

Official SDKs

Use our official SDKs to integrate the Assisters API into your applications. All SDKs are OpenAI-compatible, so you can use them as drop-in replacements.

🐍

Python

Python 3.8+

Installation
pip install assisters
Quick Example
from assisters import Assisters

client = Assisters()  # Uses ASSISTERS_API_KEY env var

response = client.chat.completions.create(
    model="assisters-chat-v1",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)
📦

Node.js

Node.js 18+

Installation
npm install assisters
Quick Example
import Assisters from 'assisters';

const client = new Assisters();  // Uses ASSISTERS_API_KEY env var

const response = await client.chat.completions.create({
  model: 'assisters-chat-v1',
  messages: [
    { role: 'user', content: 'Hello!' }
  ]
});

console.log(response.choices[0].message.content);

OpenAI Compatibility

Our API is fully compatible with OpenAI's SDK. You can use the official OpenAI SDK by changing the base URL:

Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    api_key="asst_sk_...",
    base_url="https://api.assisters.dev/v1"
)

response = client.chat.completions.create(
    model="assisters-chat-v1",
    messages=[{"role": "user", "content": "Hello!"}]
)
Node.js (OpenAI SDK)
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'asst_sk_...',
  baseURL: 'https://api.assisters.dev/v1'
});

const response = await client.chat.completions.create({
  model: 'assisters-chat-v1',
  messages: [{ role: 'user', content: 'Hello!' }]
});

REST API (cURL/HTTP)

Don't need an SDK? Use our REST API directly with any HTTP client:

cURL
curl https://api.assisters.dev/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "assisters-chat-v1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Community SDKs

Community-maintained SDKs for other languages:

🦀RustComing Soon

Async Rust client for the Assisters API

JavaComing Soon

Java/Kotlin client for the Assisters API

Want to contribute an SDK? Contact us to get your SDK listed here.

Next Steps