
Subquadratic/SubQ Savant
SubQ Savant is a long-context reasoning model for analyzing large documents, codebases, and other data-intensive workloads.
Developed by Subquadratic, SubQ Savant generates text and reasons over up to 4 million tokens in a single request. It accepts text and image inputs and supports function calling and structured outputs.
| Attribute | Value |
|---|---|
| Context Length | 4M |
| Input Modalities | Text, Image |
| Output Modalities | Text |
Its Subquadratic Sparse Attention architecture is designed to make long-context processing more compute-efficient. Savant can be used for tasks such as analyzing contract collections, reviewing financial filings, and reasoning across code repositories.
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["SUBQ_API_KEY"], base_url="https://api.subq.ai/v1")
prompt = ("In three bullets, explain the difference between indemnification, "
"limitation of liability, and insurance requirements in a software contract.")
completion = client.chat.completions.create(
model="subq-savant-1.4",
max_tokens=500,
messages=[
{"role": "system", "content": "You are concise and practical."},
{"role": "user", "content": prompt},
],
)
print(completion.choices[0].message.content)