Unified access to 200+ LLMs
The AI Gateway provides unified access to 200+ large language models from OpenAI, Anthropic, Google, Meta, and more. Features automatic fallbacks, response caching, streaming support, and detailed usage tracking. One API, all models.
Install the SDK: npm install @sylphx/sdk
Initialize with your API key
Call sylphx.ai.chat() with your prompt
Handle the response or stream
Send messages to AI models and receive intelligent responses. Supports streaming for real-time output.
Choose from 200+ models including GPT-4o, Claude 3.5, Gemini, and Llama. Each has different capabilities and pricing.
Automatically try alternative models if the primary one fails or is rate-limited.
Track input and output tokens for cost management and rate limiting.
| Method | Description |
|---|---|
sylphx.ai.chat() | Send a chat completion request |
sylphx.ai.embed() | Generate text embeddings |
sylphx.ai.image() | Generate images from text |
sylphx.ai.models() | List available models |
Check out our complete documentation for in-depth guides and tutorials.
View full documentation