Documentation

Welcome to Bandlayer Ai

A community-powered AI gateway that gives you access to 20+ AI providers through a single API, with intelligent routing, automatic failover, and pooled rate limits.

What is Bandlayer Ai?

Bandlayer Ai is a community-driven AI gateway that unifies access to the world's best AI models. By pooling resources and API keys, we create a resilient, high-capacity network that benefits everyone. One API key gives you access to 20+ providers with intelligent routing, automatic failover, and best-in-class performance.

20+ AI providers

Access OpenAI, Anthropic, Google Gemini, DeepSeek, Mistral, Groq, and more through one endpoint.

OpenAI compatible

Drop-in replacement for the OpenAI API. Change the base URL and keep your existing code.

Automatic failover

If one provider is down or rate-limited, we automatically route to a healthy alternative.

Real-time analytics

Monitor usage, costs, latency, and performance across all your requests in real time.

The community pool model

This is what makes Bandlayer unique: you can contribute your own API keys and join a pooled network.

How it works

1

You contribute API keys

Share your unused keys from supported providers. Keys are encrypted and stored securely.

2

Keys join the pool

Your contribution becomes part of a distributed pool that increases total capacity for everyone.

3

You earn discounts

Contributors earn subscription discounts and bonus limits — up to 40% off.

4

Everyone benefits

The pool delivers better rate limits, higher availability, and lower costs for all members.

99.99%
Uptime target
10x
Better limits
40%
Max discount

What you can do

Simple integration

Use your existing OpenAI-compatible code. Just change the base URL.

Multi-provider access

Call GPT-4, Claude, Gemini, DeepSeek, and more from one API key.

Encrypted and private

API keys are encrypted at rest and never exposed.

Intelligent routing

Automatic load balancing and failover across providers.

Usage analytics

Track requests, tokens, latency, and cost in real time.

Transparent pricing

Clear pricing per model with predictable costs.

Rewards for contributors

Earn discounts and bonus limits by contributing keys.

Streaming support

Full streaming support for low-latency responses.

Pricing and plans

Bandlayer offers flexible pricing for every stage of growth:

Earn discounts by contributing

Contribute your API keys and earn up to 40% off your subscription.

Getting started

Quick start (3 steps)

1

Sign up for free

Create your account — no credit card required. Start with the free tier.

Create account
2

Generate an API key

From your dashboard, generate a new API key to authenticate requests.

Go to dashboard
3

Start making requests

Point your OpenAI SDK or HTTP client to Bandlayer’s endpoint and start building.

View API docs

Example: Using OpenAI SDK

from openai import OpenAI

client = OpenAI(
    api_key="your-bandlayer-api-key",
    base_url="https://api.airouter.bandlayer.com/api"
)

response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

Frequently asked questions

Is my data secure?

Yes. All API keys are encrypted at rest. We never log or store your prompts or responses.

How do contributed API keys work?

Contributed keys join a secure pool. In return, you earn discounts and bonus limits based on provider type and contribution volume.

Can I use my existing OpenAI code?

Absolutely. Bandlayer is OpenAI-compatible. Just change the base URL and use your Bandlayer API key.

What happens if I exceed my rate limit?

You’ll receive a 429 response. You can wait for the window to reset, upgrade your plan, or contribute keys to earn bonus limits.

Do you charge for failed requests?

No. We only charge for successful requests that return a provider response.

Can I cancel anytime?

Yes. You can cancel at any time and keep access through the end of your billing cycle.

Ready to get started?

Join thousands of developers building with Bandlayer Ai. Sign up for free and start making AI requests in minutes.