Introduction

Welcome to the QAQ AI documentation. The QAQ AI API lets you add state-of-the-art language, embedding and retrieval capabilities to your application through a single OpenAI-compatible endpoint.

Base URL

https://api.qaq.ai/v1

Your first request

Install the SDK and make a chat completion in three lines:

pip install qaq-ai

from qaq import QAQ
client = QAQ(api_key="sk-...")

resp = client.chat.completions.create(
    model="qaq-large",
    messages=[{"role": "user", "content": "Explain RAG in one sentence."}],
)
print(resp.choices[0].message.content)

Using curl

curl https://api.qaq.ai/v1/chat/completions \
  -H "Authorization: Bearer $QAQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qaq-large",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Next steps