Documentation
Control and optimize how every AI call is routed. Your API keys. No token markup. Deterministic routing with full visibility.
AI Routing
How routing works: classify, score, select, execute. Strategies (lowest cost, balanced, reliability, fastest), provider keys, force model, and failover.
ReadOpenAI-compatible API
Use StepBlend as an OpenAI drop-in. LangChain, OpenAI SDK, LlamaIndex: set base_url and api_key. Same request/response shape, tools, streaming.
OpenAI / LangChainRouting API Reference
Custom endpoint: POST /api/route, /api/route/stream, /api/recommend. Request/response shapes, rate limits, and the public demo.
API ReferenceCode Examples
Ready-to-use code examples in Python, JavaScript/TypeScript, cURL, Go, Ruby, and PHP. Copy and paste examples for non-streaming, streaming, and recommendation requests.
View ExamplesQuick links
- Add provider keys — Connect OpenAI, Anthropic, Google, Groq, DeepSeek. Keys are encrypted and never exposed.
- Control Center — Request logs, model usage, provider exposure, and strategy visibility (Growth+).
- Pricing — Starter (50k/mo), Growth (200k/mo), Scale (750k/mo). You bring your own API keys.
- Try Optimizer — Test routing with your keys and prompts.