Skip to content

Endpoints overview

SubQ exposes OpenAI-compatible endpoints under the https://api.subq.ai/v1 base URL. Authenticate every request with Authorization: Bearer $SUBQ_API_KEY.

MethodPathUse it to
POST/v1/chat/completionsGenerate text from SubQ using Chat Completions messages.
GET/v1/modelsList the model IDs available to your API key.

Start with Chat Completions API for generation requests. Use Models API when your application needs to discover supported model IDs at runtime.

Authenticating...