# SubQ Preview

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

- Date: 2026-10-10
- HTML: https://anyrouter.dev/blog/releases/2026-10-10-subq-preview

## Models

- `subquadratic/subq-preview` (SubQ Preview) — Early access. Text and file input, tools, structured outputs, reasoning_effort. BYOK via SubQ.

## Notes

[`subquadratic/subq-preview`](https://anyrouter.dev/model/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.

- App code: [Vercel AI SDK](https://anyrouter.dev/use-cases/ai-sdk) or [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk).
- Coding agent: `anyr claude` / `anyr opencode` / `anyr codex` ([playbook](https://anyrouter.dev/use-cases/coding-agents)).
- No code: [playground](https://anyrouter.dev/playground?model=subquadratic/subq-preview).

SubQ Preview is **BYOK-only** through a SubQ key. Add the key under [Dashboard → BYOK](https://anyrouter.dev/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](https://anyrouter.dev/use-cases/ai-sdk) ([guide](https://anyrouter.dev/blog/ai-sdk-anyrouter)). `createAnyRouter()` reads `ANYROUTER_API_KEY`:

```ts
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](https://anyrouter.dev/use-cases/openai-sdk):

### OpenAI SDK

```ts
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

```bash
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](https://anyrouter.dev/use-cases/claude-code) · [OpenCode](https://anyrouter.dev/use-cases/opencode)):

### Claude Code

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr claude --model "subquadratic/subq-preview"
```

### OpenCode

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr opencode --model "subquadratic/subq-preview"
```

### Codex

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr codex --model "subquadratic/subq-preview"
```

More: [AI SDK](https://anyrouter.dev/use-cases/ai-sdk) · [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk) · [coding agents](https://anyrouter.dev/use-cases/coding-agents) · [BYOK setup](https://anyrouter.dev/use-cases/byok).

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

[Try in playground](https://anyrouter.dev/playground?model=subquadratic/subq-preview)
