Authenticating...

API overview

Copy Page as Markdown

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

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 when your product needs tokens as they are generated

Base URL

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.

Which endpoint?

Chat CompletionsResponses API
Conversation stateYou send full messages[] each requestServer stores history; pass previous_response_id
Best forDrop-in OpenAI migrations, custom message assemblyMulti-turn apps, long-context workflows, simpler clients
System promptsystem role in messagesinstructions (per-turn; not inherited)
Built-in web searchNot availabletools: [{ "type": "web_search_preview" }]
Structured outputresponse_formattext.format (flattened shape)
File inputfile parts (file_data or file_id)input_file parts (file_id only)
Reasoning effortreasoning_effortreasoning.effort
Stream terminatordata: [DONE]response.completed event

Prefer Responses for high-stakes multi-turn work — diligence, compliance review, and agent loops over long documents — where server-managed state, system instructions, and optional web grounding matter more than hand-rolled messages[].

Next steps