Integrations
SDKs and frameworks
Anything that accepts an OpenAI-compatible base URL works with Lyber.
Set the base URL to https://lyber-paid-acceptance-gateway-production.up.railway.app/v1, the API key to your Lyber key, and the model to one of the two IDs. Leave out parameters Lyber doesn't accept; see Compatibility.
- OpenAI SDKsPython and TypeScript, the official clients.
- Vercel AI SDKThrough the OpenAI-compatible provider.
- LangChainChatOpenAI with a custom base URL.
Any HTTP client
No SDK is required. Send JSON to https://lyber-paid-acceptance-gateway-production.up.railway.app/v1/chat/completions with your key as a bearer token.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://lyber-paid-acceptance-gateway-production.up.railway.app/v1",
api_key=os.environ["LYBER_API_KEY"],
)
response = client.chat.completions.create(
model="minimax-m3.1-flash-abliterated",
messages=[{"role": "user", "content": "Explain abliteration in two sentences."}],
max_tokens=1024,
)
print(response.model)
print(response.choices[0].message.content)