Docs
Overview
One OpenAI-compatible endpoint reaches models from 10 providers. Change base_url and the key in your existing SDK and your first call goes out.
Quickstart
Create a service API key in the console and change three lines. Put a model ID from the model catalog in model — the models page lists the IDs available on this site.
curl https://api.alpharouter.io/v1/chat/completions \ -H "Authorization: Bearer $ALPHAROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-fable-5", "messages": [{"role":"user","content":"Summarize the quarterly report"}] }'Supported endpoints
The same key works across the paths below. Only models compatible with a given path become candidates for it.
| Endpoint | Method | Type |
|---|---|---|
| /chat/completions | POST | Chat, streaming, tools, vision |
| /responses | POST | Server-stored conversations, SSE |
| /messages | POST | Anthropic-native shape |
| /embeddings | POST | Embedding, reranking |
| /images/generations | POST | Image generation, editing |
| /audio/speech | POST | Text to speech |
| /audio/transcriptions | POST | Speech to text |
| /models | GET | Catalog, pricing, specs |
Next
- Check the authentication doc for key types and header rules.
- Check the models page for the model IDs available on this site.
- Read the error handling doc for retry and idempotency rules.