Guides
Integrations
Anything that speaks the OpenAI API can use Synaps. Set the base URL and the key, and keep the rest of your setup.
The two values every integration needs:
| Base URL | https://www.synaps.chat/api/v1 |
| API key | Your syn_… key from API keys |
OpenAI SDK (Python)
from openai import OpenAI
client = OpenAI(base_url="https://www.synaps.chat/api/v1", api_key="syn_...")Or with environment variables, so existing code needs no change at all:
export OPENAI_BASE_URL="https://www.synaps.chat/api/v1"
export OPENAI_API_KEY="syn_..."OpenAI SDK (Node.js)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://www.synaps.chat/api/v1", apiKey: process.env.SYNAPS_API_KEY });Vercel AI SDK
npm install ai @ai-sdk/openaiimport { createOpenAI } from "@ai-sdk/openai";
import { streamText } from "ai";
const synaps = createOpenAI({
baseURL: "https://www.synaps.chat/api/v1",
apiKey: process.env.SYNAPS_API_KEY,
});
const result = streamText({
model: synaps.chat("deepseek/deepseek-chat"),
prompt: "Summarise this changelog in three bullets.",
});
for await (const text of result.textStream) process.stdout.write(text);LangChain
pip install langchain-openaifrom langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="deepseek/deepseek-chat",
base_url="https://www.synaps.chat/api/v1",
api_key="syn_...",
)
print(llm.invoke("Explain gas fees to a five-year-old.").content)LlamaIndex
from llama_index.llms.openai_like import OpenAILike
llm = OpenAILike(
model="deepseek/deepseek-chat",
api_base="https://www.synaps.chat/api/v1",
api_key="syn_...",
is_chat_model=True,
)Coding tools and chat apps
Tools that let you add a custom OpenAI-compatible provider work the same way. Look for a setting named like OpenAI base URL, custom endpoint or OpenAI-compatible provider:
- Cursor: Settings → Models → OpenAI API key, then override the base URL with the Synaps URL and add model IDs by name.
- Continue, Cline, Roo Code: choose the OpenAI compatible provider and enter the base URL, key and model ID.
- Open WebUI, LibreChat, Chatbox: add an OpenAI-compatible connection with the same values.
Bots and backends
For a Telegram or Discord bot, call Synaps from your server, never from the client, and give the bot its own key with a daily limit. That way a spike in users can never spend more than you planned.