Skip to main content
Stratus is a drop-in replacement for the OpenAI API. Change the baseURL, swap the model name, and your existing code gains prediction, planning, and semantic state understanding on every request.
That’s it. Pick your framework below.

Agent Platforms

OpenClaw

Native plugin for OpenClaw’s SIGBART agent runtime. Drops the full model catalog, embeddings, and rollout tools directly into your agent.

Framework Integrations

OpenAI SDK

The most common path. Works in TypeScript, Python, and anywhere the OpenAI SDK runs.

Anthropic SDK

Use the Anthropic SDK with Stratus for Claude-backed X1 models via the /v1/messages endpoint.

LangChain

Plug Stratus into LangChain agents, chains, and memory — no wrappers needed.

Vercel AI SDK

Streaming UI in Next.js App Router with server actions and route handlers.

cURL

Raw HTTP — for quick tests, CI pipelines, and shell scripts.

Migration Guide

Already on OpenAI or Anthropic? The switch takes seconds.

From OpenAI Direct

Model name mapping: OpenRouter models are also available directly via slash notation — stratus-x1ac-base-deepseek/deepseek-r1, stratus-x1ac-base-meta-llama/llama-3.3-70b-instruct, stratus-x1ac-base-google/gemini-2.5-pro, and more. See Models for the full list.

From Anthropic Direct

Model name mapping:

OpenAI SDK

The most common integration path. Works in TypeScript, Node.js, Python, and anywhere the OpenAI SDK runs.

Installation

TypeScript / Node.js

Streaming

Error Handling


Anthropic SDK

Use the Anthropic SDK to hit Stratus via the /v1/messages endpoint — useful when your codebase is already Anthropic-shaped.

Installation

Stratus supports both /v1/chat/completions (OpenAI format) and /v1/messages (Anthropic format). Use whichever SDK fits your codebase.

TypeScript / Node.js

Streaming


LangChain

Plug Stratus into LangChain agents and chains without any custom wrappers.

Installation

Basic Usage

With Agents

With Chains


Vercel AI SDK

Streaming UI in Next.js with server actions and route handlers.

Installation

Server Action + Streaming UI

API Route Handler


cURL

For quick tests, CI pipelines, and shell scripts.

Basic Request

Streaming

Extract Fields with jq


Other Languages


Troubleshooting

“Invalid API Key” — Confirm the key starts with stratus_sk_live_ and the env var is actually loaded (echo $STRATUS_API_KEY). “Model Not Found” — Use the Stratus model name, not the upstream provider name. stratus-x1ac-base-gpt-4o ✅ · gpt-4o SSL errors — Always https://api.stratus.run/v1, never http://. 402 Insufficient Credits — Top up from the dashboard.

Next Steps

API Reference

Full endpoint docs, parameters, and response shapes.

Models

Every available model across all size tiers.

Authentication

API keys, BYOK, and key resolution priority.