Quickstart

Public preview
Copy Page as Markdown

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

This request asks subq-snap-preview, in public preview, one yes/no question about a patient message. See Models.

cURLTypeScriptPython

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.