Home/Models/qai-max
qai-max ยท Text - top capability

Long-context LLM API

The heaviest lifter. Long context, deep reasoning, complex multi-step problems, hard code refactors, nuanced creative writing. Reach for it when you would rather wait a little longer than read a mediocre answer.

qai-max at a glance

Model idqai-max
KindText (chat completions)
EndpointPOST /v1/chat/completions
Price (CAD)$1.50 per 1M input tokens; $5.00 per 1M output tokens
Context window1,048,576 tokens
Max output943,718 tokens
StreamingYes (server-sent events)
Tool callsYes
JSON modeYes
Best forQuality matters more than speed

All prices are in Canadian dollars (CAD). Prices come from live billing.

When to use it

Use it when

  • The output is high-stakes enough to be worth the latency
  • You are doing complex code review, refactor planning, or architecture work
  • You are working with long documents or large code contexts
  • You need writing that holds together across many paragraphs
  • You are running an agent that needs strong instruction following over many turns

Pick another tier when

  • You are running an inner-loop pipeline where every second compounds
  • The task is simple - qai-pro will land at almost the same quality for less

Call qai-max

curl
curl https://llm.quickcasa.ai/v1/chat/completions \
  -H "Authorization: Bearer $QAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "qai-max", "messages": [{"role": "user", "content": "Refactor this 400-line React component to use hooks and split into smaller components. Keep the visual output identical."}]}'
Python (openai)
import os
from openai import OpenAI

client = OpenAI(base_url="https://llm.quickcasa.ai/v1", api_key=os.environ["QAI_API_KEY"])

response = client.chat.completions.create(
    model="qai-max",
    messages=[{"role": "user", "content": "Refactor this 400-line React component to use hooks and split into smaller components. Keep the visual output identical."}],
)
print(response.choices[0].message.content)

Holds the full file in context and produces a coherent restructuring with an explanation of the changes. The kind of task you do not want to give to a smaller model and then babysit.

Questions, answered.

How much does qai-max cost?
$1.50 per 1M input tokens; $5.00 per 1M output tokens. All prices are in Canadian dollars (CAD). There is no monthly fee.
Is qai-max OpenAI-compatible?
Yes. Call it through POST /v1/chat/completions on https://llm.quickcasa.ai/v1 with any OpenAI SDK by changing the base URL and passing a Qai API key.
What is the context window of qai-max?
1,048,576 tokens for the whole conversation, with up to 943,718 tokens in one answer.