Overview
AppleRouter is a powerful AI model routing service that provides a unified API interface supporting multiple AI providers. Our API is compatible with:OpenAI
Full compatibility with OpenAI API format
Claude
Native Anthropic Claude Messages API support
Gemini
Google Gemini API format support
API Capabilities
Chat Completions
Text generation with conversation context, supporting streaming and tools
Image Generation
Create images from text prompts using DALL-E, Gemini, and more
Video Generation
Generate videos from text or images using Sora, Kling, Veo, etc.
Audio
Text-to-speech, speech-to-text, and audio translation
Embeddings
Convert text into vector representations
Realtime
Real-time voice conversation via WebSocket
Authentication
All API endpoints require authentication using Bearer tokens. Include your API key in theAuthorization header:
Keep your API key secure and never expose it in client-side code.
Base URL
All API requests should be made to:Request Format
Most endpoints accept JSON request bodies. Set theContent-Type header appropriately:
Response Format
Responses are returned in JSON format. Successful responses will include the requested data, while error responses follow this structure:Rate Limits
API rate limits depend on your subscription plan. If you exceed the rate limit, you’ll receive a429 Too Many Requests response.
Multi-Format Support
AppleRouter automatically detects the request format based on headers:| Headers | Format |
|---|---|
x-api-key + anthropic-version | Anthropic Claude |
x-goog-api-key or key query param | Google Gemini |
| Default | OpenAI |