API overview

Copy Page as Markdown

SubQ provides three inference endpoints: Decisions, Chat Completions, and Responses, plus resources for managing conversations, files, and models. Chat Completions and Responses are OpenAI-compatible. Decisions has a separate, typed JSON contract.

Request flow

  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. Choose an endpoint and send a request using a SubQ model.
  5. Enable streaming on Chat Completions or Responses when your product needs tokens as they are generated

Base URL

Send API requests to:

https://api.subq.ai/v1

Treat each endpoint page as the contract for its supported models, fields, and response formats.

Endpoints

EndpointMethodPathUse it to
ModelsGET/v1/modelsList the model IDs available to your API key at runtime.
DecisionsPOST/v1/systemoneReturn typed yes/no, choice, and score decisions about text or images, with probabilities and confidence.
ResponsesPOST/v1/responsesRun multi-turn and long-context workflows with instructions, built-in web search, and server-side history via previous_response_id.
Chat CompletionsPOST/v1/chat/completionsGenerate text from messages, statelessly. The drop-in path for OpenAI migrations.
FilesPOST / GET / DELETE/v1/filesUpload documents once and reference them by file_id in Chat Completions or Responses.
ConversationsPOST / GET / DELETE/v1/conversationsCreate, inspect, retag, and delete a conversation's history, independent of any single turn.

Next steps