1. Create an Account
Visit AppleRouter Console to sign up.
2. Get Your API Key
After logging in, create a new API key on the API Keys page.
Keep your API key secure. Never expose it in client-side code or public
repositories.
3. Make Your First Call
AppleRouter is compatible with the OpenAI API format. You can use any OpenAI-compatible SDK or send HTTP requests directly.
curl https://api.applerouter.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'
Replace YOUR_API_KEY with the API key you created in the Console.
Using Other Models
AppleRouter supports models from multiple AI providers. Just change the model parameter:
# Using Claude
response = client.chat.completions.create(
model="claude-sonnet-4-20250514",
messages=[{"role": "user", "content": "Hello!"}]
)
# Using Gemini
response = client.chat.completions.create(
model="gemini-2.0-flash",
messages=[{"role": "user", "content": "Hello!"}]
)
If you prefer Claude or Gemini’s native API format, AppleRouter supports those too:
Claude Messages API
Gemini API
curl https://api.applerouter.ai/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello!"}
]
}'
curl "https://api.applerouter.ai/v1beta/models/gemini-2.0-flash:generateContent?key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{"parts": [{"text": "Hello!"}]}
]
}'
Next Steps