Qubittron Bastion
API reference

API reference

Eight OpenAI-compatible endpoints. Bearer auth. JSON in, JSON or stream out.

All endpoints require Authorization: Bearer qbt_.... Most live under https://api.qubittron.ai/v1/; TTS is at /api/v1/tts/text_to_audio.

EndpointPathNotes
List modelsGET /v1/modelsDiscovery
Chat completionsPOST /v1/chat/completionsStreaming optional
CompletionsPOST /v1/completionsLegacy text completions
ResponsesPOST /v1/responsesRequires store: false
EmbeddingsPOST /v1/embeddingsSingle string or array
Image generationPOST /v1/images/generationsReturns base64 or URL
Audio transcriptionsPOST /v1/audio/transcriptionsMultipart, 25 MB cap
Text to speechPOST /api/v1/tts/text_to_audioNVIDIA Riva, language-routed

Common patterns

Auth header

Authorization: Bearer qbt_<key>

Error envelope

{ "error": { "message": "...", "type": "...", "code": "..." } }

Status codes

400 (validation / unknown model), 401 (bad key), 402 (no balance), 413 (oversize upload), 429 (rate limited), 502 (upstream), 503 (transient internal — retry).

See Getting started for the full error table and rate-limit behavior.

On this page