Quickstart
First Request
Verify that your AnyRoute API key and provider group work.
Run a small request after importing your key.
Anthropic-compatible
curl https://anyroute.io/v1/messages \
-H "Authorization: Bearer YOUR_ANYROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-3-5-haiku-20241022",
"max_tokens": 64,
"messages": [{"role": "user", "content": "Say hello from AnyRoute."}]
}'OpenAI-compatible
curl https://anyroute.io/v1/chat/completions \
-H "Authorization: Bearer YOUR_ANYROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Say hello from AnyRoute."}]
}'Gemini-compatible
curl "https://anyroute.io/v1beta/models/gemini-2.0-flash:generateContent" \
-H "Authorization: Bearer YOUR_ANYROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"role": "user", "parts": [{"text": "Say hello from AnyRoute."}]}]
}'If the request fails, check Provider Group Mismatch and Auth Errors.
AnyRoute Docs