Quickstart
This quickstart uses curl so you can verify your API key before adding SDK
code. In an application, use the same base URL with the OpenAI SDK.
1. Get your API key
Section titled “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
Section titled “2. Check account access”Make sure your account has credits before sending requests. A request without
available credits returns 402.
3. Send a chat completion
Section titled “3. Send a chat completion”curl https://api.subq.ai/v1/chat/completions \ -H "Authorization: Bearer $SUBQ_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "subq-preview", "messages": [ { "role": "user", "content": "Summarize the integration path for a developer evaluating SubQ." } ] }'For SDK examples, supported fields, streaming, and response shapes, continue to the Chat Completions API.