QUERY chat and an API, one account

API reference

QUERY speaks the OpenAI chat API. If your code already talks to OpenAI, point the base URL here and change nothing else. Create an account, verify your email, and generate a key from your dashboard.

Use it

from openai import OpenAI

client = OpenAI(
    base_url="https://query.ai-ministries.com/v1",
    api_key="qk-your-key-here",
)

client.chat.completions.create(
    model="your-model",
    messages=[{"role": "user", "content": "hello"}],
)

curl works the same way:

curl https://query.ai-ministries.com/v1/chat/completions \
  -H "Authorization: Bearer qk-your-key-here" \
  -H "Content-Type: application/json" \
  -d '{"model":"your-model","messages":[{"role":"user","content":"hello"}]}'

Call GET /v1/models for the list of model names available to your key.

What you get

GET /v1/models and POST /v1/chat/completions, streaming included. Per-key rate limits and a usage log you can see. GET /healthz reports the live state with no key needed.