AnyRouteAnyRoute Docs
AnyRouteAnyRoute Docs
Homepage

Start Here

AnyRoute Documentation
QuickstartCreate an API KeyChoose a Provider GroupImport Key to TerminalFirst Request

Tools

Capabilities

API Reference

Operations

FAQ
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.

Import Key to Terminal

Set the correct base URL and API key for your client.

Tools

Import the correct AnyRoute base URL and API key into each tool.

Table of Contents

Anthropic-compatible
OpenAI-compatible
Gemini-compatible