Build with sovereign AI inference
One API for the OpenAI and Anthropic SDKs. Send model="auto", and every answer tells you the model, the Inference Provider and the country that served it.
- Make an API keyIn Your workspace → Connect → API keys.
- Point your SDK at StavChange the base URL. Your code stays the same.
- Read the receiptEach response carries
X-Stav-*headers: model, country, cost.
Python
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.stav.ai/v1",
api_key=os.environ["STAV_API_KEY"],
)
r = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "Hei, Stav!"}],
)
print(r.choices[0].message.content)
Get started
Mint a key, point your SDK at api.stav.ai, ship your first completion in five minutes.
5 pages
Concepts
How Stav works: the sovereignty ladder, the Smart Router, reasoning, tools and structured output, credits and billing.
9 pages
Guides
Move from the OpenAI or Anthropic SDK, enforce a sovereignty floor, and run coding agents on Stav.
10 pages
API reference
Every endpoint, every field, every error, with code in curl, Python and Node.js.
32 pages