Set Your API Key
Export your API key once per shell session so you can reference it in every subsequent command.Chat Completion
Send aPOST request to /v1/chat/completions with a JSON body containing your model name and message array.
Streaming
Add"stream": true to the request body and --no-buffer to the cURL flags so tokens are written to your terminal as soon as Boole sends them.
data: {...}. The stream ends with data: [DONE].
List Models
Retrieve the full list of models available on your account with aGET request — no request body required.
Audio Transcription
Submit an audio file for transcription usingmultipart/form-data. Boole routes this to Whisper Large v3, priced at $0.02 per minute of audio.
Replace
audio.mp3 with the path to any supported audio file. Whisper Large v3 accepts MP3, MP4, MPEG, MPGA, M4A, WAV, and WEBM formats.Local Binary
When calling a locally running Boole binary, replace the base URL withhttp://localhost:8000. No Authorization header is required — the local server does not validate API keys.
Omit the
Authorization header entirely for local deployments — including it won’t cause an error, but it isn’t needed. All other request and response fields are identical to the cloud API.