Introducing ASpec

Inference for
Long-Running Agents

The inference provider designed for 200k+ token sessions. Run smarter, faster, and cheaper agents for coding and cybersecurity.

On long tasks vs. standard inference providers:

Higher accuracy

10%

Faster task completion

2x

Lower cost

50%+

Effective context

5M+

Models

Models available on our serverless API, each served in two variants. Both variants are optimized for long context and heavy cache use. The Marathon variant extends the context window to 5M+ tokens for the most demanding tasks.

  • GLM-5.31M
  • GLM-5.3 Marathon5M+
  • DeepSeek V4.1 10171M
  • DeepSeek V4.1 1017 Marathon5M+
  • Inkling Small 2Coming soon
Or serve any model on a dedicated endpoint

A chatbot responds with one answer. An agent can work across millions of tokens and hundreds of steps.

Subconscious is an opinionated inference provider that makes long-horizon agent work possible at scale with the same models and frameworks you already use.

Where to use Subconscious

Power long-running agents with our API.

How it works

We treat agents as the primary workload for better performance and reliability.

Standard inference (periodic compaction)Subconscious (compression at runtime)0250K500K750K1M0250500Agent turns →Retained context →Context compression ceilingStandard context window

Trace tokens

0.00

Standard inference

0.00

Subconscious

0.00

Tokens avoided

0.00

0.0% less

  • Runtime context compression

    As an agent's context fills, we compress less relevant steps at runtime.

  • Hyper-efficient caching

    When we compress intermediate steps, we reuse the prefix and the suffix to avoid costly reprocessing.

  • ASpec speculative decoding

    ASpec, our adversarial speculative decoding, generates tokens faster and improves accuracy on long-horizon traces.

    See the research

Compression and ASpec
improve accuracy

On the DeepSWE benchmark for agentic coding, runtime compression and ASpec raised accuracy on the same open models.

DeepSWE (Agentic Coding Benchmark)

Pay 3.2× less than Opus 5.5, and 2.9× less than standard GLM-5.3

Standard inference vs. Subconscious with runtime context compression.

Fewer Tokens

More Tokens

Short

Med

Long

XL

Max

50K

300K

750K

1.5M

5M

Opus 5.5

$89.11

GLM-5.3

$80.69

GLM-5.3 Marathon

$27.56

Standard inferenceSubconscious
Retained context per step0500KContext window limitContext compression ceiling1750 stepsRetained context

Effective context

750K tokens

Tokens billed

281.6M → 96.2M

Cost savings vs Opus

3.2× less

Cost savings vs standard GLM

2.9× less

Get started today

Use our CLI to quickly connect your coding agents to Subconscious. For agentic products, the API is compatible with all SDKs and frameworks.

Paste this into Claude Code, Codex, ChatGPT or any assistant to switch your code over.

Setup prompt

Switch my project's LLM calls to Subconscious.

Switch my project's LLM calls to Subconscious.

Subconscious is an inference API for agents. It serves open models through OpenAI and Anthropic compatible endpoints, billed per token.
- OpenAI compatible base URL: https://api.subconscious.dev/v1
- Anthropic compatible base URL: https://api.subconscious.dev
- Model: subconscious/glm-5.3-marathon
- Context window: 5M tokens (5,000,000).
- API key: read it from the SUBCONSCIOUS_API_KEY environment variable. Never commit the key or paste it into project files. If it is not set, ask me to create one at https://platform.subconscious.dev.

Find where my code creates its OpenAI or Anthropic client, or where my framework sets its model provider. Point it at the matching base URL above and set the model. If my code or framework sets a context window limit, raise it to 5,000,000 tokens. Change nothing else. If the code uses neither SDK, use the OpenAI compatible endpoint.

Docs: https://docs.subconscious.dev

When you are done, send one test request to confirm it works, then summarize what you changed.

Subconscious API

Pay per token. OpenAI and Anthropic compatible.

Build with the API

Team Token Plans

From $1,000 a month, with 5x the usage.

See Pricing

Dedicated Deployments

On your GPUs or in our cloud.

Get a deployment

Frequently asked questions

  • Agents run for hundreds of steps and fill their context with old tool calls and results. Our runtime compresses what no longer matters and keeps the rest cached. Agents finish tasks 2x faster and process 50–80% fewer tokens. They also get more accurate, because the model sees less noise. On DeepSWE, GLM-5.3 went from 60.6% to 67.6% and DeepSeek V4.1 Flash from 67.8% to 71.8%.
  • GLM-5.3 and DeepSeek V4.1 1017, each in two versions. Base has a 1M context window and costs 10% less. Marathon Mode has 5M+ context. Dedicated Deployments can run almost any open model.
  • Yes. Change the base URL and API key and your existing code runs on Subconscious.
  • Yes. GitHub Copilot, Claude Code, Codex, Pi, OpenCode, and anything else that uses the OpenAI or Anthropic API. Setup steps are in our docs.
  • Pay per token, or buy a Team Token Plan for a fixed monthly price and 5x the usage. Rates are on the pricing page. Dedicated Deployments are priced separately.
  • It depends on the model. Base models bill every token you send. Marathon Mode models bill only what is left after compression, so sending 2M tokens might bill around 300k.
  • No. We don’t store prompts or outputs, and we don’t train on your data. We only keep token and request counts for billing.
  • Yes. Run on reserved GPUs in our cloud or on your own. Both have no rate limits, run any open model, and come with custom SLAs. Talk to an engineer to set one up.

Built for the long run

Same models, same hardware, more agents that run reliably, quickly, and affordably for longer. Try our API or deploy Subconscious in your own cloud.