Skip to main content
Routeway exposes a standard OpenAI-compatible API, which means any application, SDK, or framework that lets you configure a custom base URL and API key can connect to Routeway with no code changes.
All integrations require a valid Routeway API key. Get yours from the dashboard.

Generic Connection Details

SettingValue
Base URL (OpenAI-compatible)https://api.routeway.ai/v1
Base URL (Anthropic-compatible)https://api.routeway.ai
Auth headerAuthorization: Bearer YOUR_API_KEY
Models endpointGET https://api.routeway.ai/v1/models

How to Connect Any Tool

If your tool asks for an “OpenAI API key” and “base URL”, you just need two values:
1

Set the base URL

Replace the default OpenAI URL with:
https://api.routeway.ai/v1
2

Enter your Routeway API key

Use your Routeway API key wherever the tool asks for an “OpenAI API key” or “API token”.
3

Pick a model

Enter a model ID from routeway.ai/models. If the tool has a “fetch models” button, click it to load the full list automatically.

SDK Examples

Drop-in replacement for the OpenAI SDK in any language:
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_ROUTEWAY_API_KEY",
    base_url="https://api.routeway.ai/v1"
)

response = client.chat.completions.create(
    model="gpt-4.1",
    messages=[{"role": "user", "content": "Hello!"}]
)

Common Tools That Work Out of the Box

Any of these tools can be pointed at Routeway by changing the base URL:
Tool / FrameworkWhere to set the base URL
LangChainChatOpenAI(base_url="https://api.routeway.ai/v1")
LlamaIndexOpenAI(api_base="https://api.routeway.ai/v1")
Vercel AI SDKcreateOpenAI({ baseURL: "https://api.routeway.ai/v1" })
AutoGenSet base_url in the OAI config list
CrewAIUse the OpenAI-compatible LLM config
Continue (VS Code)Set apiBase in config.json
CursorSettings → Models → OpenAI API Base
LibreChatSet the endpoint URL in admin config
TypingMindCustom API Endpoint field
BoltAICustom provider → API Base URL
If a tool supports “OpenAI-compatible” or “custom endpoint” configuration, it will work with Routeway. Just set the base URL and API key.

Anthropic-Compatible Tools

Some tools (like Claude Code) use the Anthropic Messages API instead of OpenAI’s format. For those, use:
SettingValue
Base URLhttps://api.routeway.ai
Auth tokenYour Routeway API key
Endpoint/v1/messages
See the Claude Code integration for a full example.

Troubleshooting

Double-check that your API key is correct and has available balance (for paid models). Create a new key from the dashboard if needed.
Verify the model ID matches exactly. Use the models endpoint or browse routeway.ai/models to see available models.
Ensure you’re using https://api.routeway.ai/v1 (with HTTPS and /v1). Some tools require the trailing /v1, others don’t — try both if you get errors.
Check if the tool supports environment variables like OPENAI_BASE_URL or OPENAI_API_BASE. Many tools read these as fallbacks.