Настройка клиентов
Any client that lets you set a custom base URL works with llmtap.
Python (OpenAI SDK)
main.py
from openai import OpenAI
client = OpenAI(
api_key="sk-live-your-key",
base_url="https://llmtap.dev/api/v1",
)
res = client.chat.completions.create(
model="gpt-5.6-sol",
messages=[{"role": "user", "content": "hello"}],
)
print(res.choices[0].message.content)Node.js (OpenAI SDK)
index.ts
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "sk-live-your-key",
baseURL: "https://llmtap.dev/api/v1",
});
const res = await client.chat.completions.create({
model: "gpt-5.6-sol",
messages: [{ role: "user", content: "hello" }],
});
console.log(res.choices[0].message.content);curl
terminal
$ curl https://llmtap.dev/api/v1/chat/completions \
-H "Authorization: Bearer sk-live-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5.6-sol", "messages": [{"role": "user", "content": "hello"}]}'Other clients (Cherry Studio, opencode, etc.)
Add an OpenAI-compatible provider with base URL https://llmtap.dev/api/v1 and your llmtap key. In Cherry Studio: Settings → Providers → Add → OpenAI-compatible. In opencode, configure a custom provider with the same base URL and key.