Skip to content
alpharouter

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.

EndpointMethodType
/chat/completionsPOSTChat, streaming, tools, vision
/responsesPOSTServer-stored conversations, SSE
/messagesPOSTAnthropic-native shape
/embeddingsPOSTEmbedding, reranking
/images/generationsPOSTImage generation, editing
/audio/speechPOSTText to speech
/audio/transcriptionsPOSTSpeech to text
/modelsGETCatalog, 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.