AI Gateway

Most popular

Unified access to 200+ LLMs

Passthrough

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.

Overview
Pricing
Usage
Docs
Examples

Quick Start

1

Install the SDK: npm install @sylphx/sdk

2

Initialize with your API key

3

Call sylphx.ai.chat() with your prompt

4

Handle the response or stream

Documentation

Key Concepts

Chat Completions

Send messages to AI models and receive intelligent responses. Supports streaming for real-time output.

Model Selection

Choose from 200+ models including GPT-4o, Claude 3.5, Gemini, and Llama. Each has different capabilities and pricing.

Fallbacks

Automatically try alternative models if the primary one fails or is rate-limited.

Token Counting

Track input and output tokens for cost management and rate limiting.

SDK Methods

MethodDescription
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

Need more details?

Check out our complete documentation for in-depth guides and tutorials.

View full documentation