Libraxis AI Gateway • OpenAI-Compatible
Security Note: Your API token is stored locally in
your browser and sent with each request via the Authorization:
Bearer ... header.
Quick clients adapted from VistaScribe for this gateway.
curl -sS -o chatclient.py /public/clients/chatclient.py
python3 chatclient.py --api-key YOUR_KEY \
--base-url http://localhost:8088/llm/v1 --model gpt-4o-mini
curl -sS -o responses_client.py /public/clients/responses_client.py
python3 responses_client.py --api-key YOUR_KEY \
--url http://localhost:8088/v1/responses --model chat --text "Hello"
API_KEY=YOUR_KEY bash public/clients/stt_curls.sh /path/to/audio.wav
import WebSocket from 'ws'
const WS = process.env.WS || 'ws://localhost:8088/v1/stream'
const ws = new WebSocket(WS)
ws.on('open', () => {
ws.send(JSON.stringify({ type: 'init', language: 'pl', sample_rate: 16000, encoding: 'pcm16' }))
// TODO: stream PCM16 base64 chunks:
// ws.send(JSON.stringify({ type: 'audio', audio: base64Chunk }))
// ws.send(JSON.stringify({ type: 'end' }))
})
ws.on('message', msg => {
try { console.log('evt:', JSON.parse(String(msg))) } catch { console.log(String(msg)) }
})