Quickstart
Make your first API request in minutes.
1. Get your API key
Sign up at console.subq.ai and create an API key from the dashboard. Store it in an environment variable:
export SUBQ_API_KEY="sk-your-api-key"2. Check account access
Make sure your account has credits before sending requests. A request without
available credits returns 402.
3. Send a request
The answer is in answers.escalate.noul, the probability of yes from 0 to
1. See the Decisions API for choice and score
questions, images, and errors.
Generate text with SubQ Savant
SubQ Savant is in early access and is OpenAI-compatible. Use the OpenAI SDK
with its base URL set to https://api.subq.ai/v1, or call
POST https://api.subq.ai/v1/chat/completions directly.
The answer is in choices[0].message.content:
You need to give 90 days' written notice.A 403 model_not_allowed means Savant isn't enabled for your organization
yet. See the Chat Completions API for
reasoning, token limits, files, and errors, and
Models for the context window and
pricing.