n4n AI

n4n AI · unified gateway

One API,
every model.

n4n AI sits in front of every major model behind a single OpenAI-compatible endpoint. We route each request to the cheapest healthy provider, retry failures for you, and meter usage per token — no subscription.

one endpoint · pay per token · prepaid credits

Why n4n AI

Built for production traffic.

Routing and fallback

Requests land on the cheapest healthy provider. Rate limits and outages reroute automatically — failed attempts cost nothing.

Usage-based billing

Every token is metered in micro-dollars against one credit balance. No subscription, no minimums, credits never expire.

One key for every provider

Keep your OpenAI client — change the base URL and the key. One n4n key unlocks Anthropic, OpenAI, Google, Meta and more.

How routing works

Keep your SDK. Change one line.

01

Send an OpenAI-format request

Point your existing OpenAI client at api.n4n.ai/v1 with an n4n_ key. Streaming included.

02

We pick the endpoint

Each model maps to ranked provider endpoints. If one is rate-limited or degraded, the request moves to the next healthy one automatically.

03

Pay per token

Top up prepaid credits with PayPal or crypto. Every request is metered to the micro-dollar — no subscription, no minimums.

Quick start

# any OpenAI-compatible client works
curl https://api.n4n.ai/v1/chat/completions \
  -H "Authorization: Bearer n4n_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Pricing

Credits in, tokens out. Nothing else.

01 · top up

Load credits from $1

Pay with PayPal or crypto. Credits never expire and there is no monthly fee.

02 · send requests

Every token is metered

Each response is billed as prompt + completion tokens at the model's listed price, accounted in micro-dollars.

03 · fallback included

Pay only for what lands

Rate limits and outages reroute to the next provider automatically. Failed attempts cost nothing.

See the full model catalog and prices

Start building on n4n AI.

Sign in with Google, create a key and send your first request in under a minute.

Open the console