Skip to content
All releases
Added

SubQ Preview

Subquadratic's long-context chat model, built on its sparse attention architecture for very large inputs. Early access, BYOK via SubQ.

subquadratic/subq-preview is Subquadratic's long-context chat model, built on its Subquadratic Sparse Attention (SSA) architecture for reasoning over very large inputs such as whole repositories, contract archives and filings.

It takes text and files (documents), returns text, and supports function calling, JSON-schema structured outputs and a reasoning_effort control from none to max. Reasoning text is never returned; reasoning tokens bill as output. It is in early access, so availability and features may change.

SubQ Preview is **BYOK-only** through a SubQ key. Add the key under Dashboard → BYOK; the request goes out with your key and the provider bills you at its own rates. AnyRouter charges nothing for a BYOK route.

Try it in the Vercel AI SDK (guide). createAnyRouter() reads ANYROUTER_API_KEY:

import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"

const anyrouter = createAnyRouter()

const { text } = await generateText({
  model: anyrouter("subquadratic/subq-preview"),
  prompt: "Summarize the main obligations in this contract.",
})
console.log(text)
generateText with the catalog id.

Already on the OpenAI SDK? OpenAI SDK playbook:

OpenAI-compatible: SDK or curl.
import OpenAI from "openai"

const client = new OpenAI({
  baseURL: "https://anyrouter.dev/api/v1",
  apiKey: process.env.ANYROUTER_API_KEY,
})

const res = await client.chat.completions.create({
  model: "subquadratic/subq-preview",
  messages: [{ role: "user", content: "Hello" }],
})
console.log(res.choices[0]?.message.content)
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"subquadratic/subq-preview","messages":[{"role":"user","content":"Hello"}]}'

Or launch a coding agent through the anyr CLI (Claude Code · OpenCode):

Coding agents via the AnyRouter CLI.
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr claude --model "subquadratic/subq-preview"
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr opencode --model "subquadratic/subq-preview"
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr codex --model "subquadratic/subq-preview"

More: AI SDK · OpenAI SDK · coding agents · BYOK setup.

No terminal? Open the playground and send a first message.

Try in playground

Looking for the full catalog? Browse all models.