Introduction to outerlane
Use one API key to access text, image, and video models from multiple providers.
outerlane is an AI gateway compatible with the OpenAI and Anthropic API formats. Change the base URL and API key in your existing SDK or developer tool to use models from OpenAI, Anthropic, Google, xAI, DeepSeek, and others with one key and one bill.
curl https://api.outerlane.app/v1/chat/completions \
-H "Authorization: Bearer $OUTERLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-6.1-sol",
"messages": [{ "role": "user", "content": "Hello" }]
}'What you can do
- Use one key across providers: Switch models in the same code by changing the model ID, including its provider prefix (
openai/,anthropic/,google/, and others). - Keep your existing tools: Connect the OpenAI SDK, Anthropic SDK, Claude Code, Codex, or another tool with a configurable base URL.
- Pay lower token rates: With pay-as-you-go billing, closed-weight models cost 50% of list rates and open-weight models cost 40%.
- See costs per request: The
x_outerlaneresponse field includes token counts and charges. The dashboard shows savings compared with list prices.
Endpoints
The base URL is https://api.outerlane.app.
| Endpoint | Compatible format | Streaming |
|---|---|---|
POST /v1/chat/completions | OpenAI Chat Completions | Yes |
POST /v1/responses | OpenAI Responses (Stateless) | Yes |
POST /v1/messages | Anthropic Messages | Yes |
POST /v1/images/generations | OpenAI Images | No |
POST /v1/videos | OpenAI-style asynchronous videos | No |
GET /v1/models | OpenAI · Anthropic | — |
Next steps
Quickstart
Create an API key and send your first request.
Supported models
Find model IDs and provider prefixes.
Connect Claude Code
Connect Claude Code with a single configuration file.
Tool calling
Let the model call functions and use their results.
Structured outputs
Get responses that follow a JSON Schema.
Error codes
Look up HTTP status codes and how to resolve errors.