Skip to content

API overview

SubQ provides an OpenAI-compatible API. Existing Chat Completions clients can switch by changing the base URL and API key, then passing the subq-preview model ID in the request body.

  1. Create an account at console.subq.ai
  2. Generate an API key from the console
  3. Set the SubQ base URL in your HTTP client or OpenAI SDK
  4. Send a Chat Completions request using SubQ.
  5. Enable streaming when your product needs tokens as they are generated

Send API requests to:

https://api.subq.ai/v1

The documented endpoints use OpenAI-compatible request and response shapes. Treat the pages in this documentation as the contract for the supported model, fields, and response formats.

Authenticating...