The /v1/messages endpoint provides an Anthropic-compatible Messages API that seamlessly integrates with the Anthropic SDK while delivering Stratus world model predictions.
For Anthropic SDK users: Drop-in replacement - just change the base URL and API key.
{ "model": "stratus-x1ac-small-gpt-4o", "max_tokens": 1024, "system": "You are analyzing a web application interface.", "messages": [ { "role": "user", "content": "Describe the current state" } ]}
Stratus model to use. See Models for the full list of 2,050+ combinations.Native examples:stratus-x1ac-small-gpt-4o, stratus-x1ac-base-claude-sonnet-4-20250514OpenRouter examples:stratus-x1ac-base-deepseek/deepseek-r1, stratus-x1ac-base-meta-llama/llama-3.3-70b-instruct
import Anthropic from '@anthropic-ai/sdk';const client = new Anthropic({ baseURL: 'https://api.stratus.run', apiKey: process.env.STRATUS_API_KEY,});const message = await client.messages.create({ model: 'stratus-x1ac-small-gpt-4o', max_tokens: 1024, system: 'Current state: User is on the homepage with login button visible', messages: [ { role: 'user', content: 'What happens if I click login?' } ],});console.log(message.content[0].text);
from anthropic import Anthropicclient = Anthropic( base_url="https://api.stratus.run", api_key="stratus_sk_live_your_key")message = client.messages.create( model="stratus-x1ac-small-gpt-4o", max_tokens=1024, system="Current state: User is on the homepage with login button visible", messages=[ {"role": "user", "content": "What happens if I click login?"} ])print(message.content[0].text)
curl https://api.stratus.run/v1/messages \ -H "x-api-key: stratus_sk_live_your_key" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "stratus-x1ac-small-gpt-4o", "max_tokens": 1024, "system": "Current state: User is on the homepage", "messages": [ {"role": "user", "content": "What happens if I click login?"} ] }'
const conversation = [ { role: 'user', content: 'What is the current page?' }, { role: 'assistant', content: 'You are on the product listing page.' }, { role: 'user', content: 'If I search for "laptop", what will I see?' }];const message = await client.messages.create({ model: 'stratus-x1ac-small-gpt-4o', max_tokens: 1024, messages: conversation,});console.log(message.content[0].text);
// Auto - model decidestool_choice: { type: 'auto' }// Any - model must use a tooltool_choice: { type: 'any' }// Specific tooltool_choice: { type: 'tool', name: 'get_weather' }