Run Claude Code on free OSS models. Upgrade when you need to.

InferAll is an Anthropic-compatible gateway with $0 input/output on 10+ NVIDIA-hosted open-source models (within the free-plan daily request limit), pay-as-you-go access to Claude, GPT-4, and Gemini, and optional model fallback. Point Claude Code, Cline, Cursor, LangChain or any OpenAI-compatible client at one base URL — one key, one bill.

Drop into Claude Code with two env vars — no code changes.

Drop-in for Claude Code

export ANTHROPIC_API_KEY=ifu_...
export ANTHROPIC_BASE_URL=https://api.inferall.ai
export ANTHROPIC_MODEL=nvidia/nemotron-3-ultra-550b-a55b
export ANTHROPIC_DEFAULT_HAIKU_MODEL=nvidia/nemotron-3-ultra-550b-a55b
claude

Existing project on the OpenAI or Anthropic SDK? One command sets up your key and points your code at InferAll.

Install wizard

npx @inferall/cli init

Or call the gateway directly with the official SDK — Python (inferall-ai 0.1.1 on PyPI) or TypeScript (@inferall/sdk 0.1.1 on npm).

Python SDK — install

pip install inferall-ai

Python SDK — usage

from inferall import Inferall

ai = Inferall()  # reads INFERALL_API_KEY
# The SDK default (Gemini) is paid; name a free model on a trial key.
ai.text("Explain quantum computing in two sentences",
        model="nvidia/nemotron-3-ultra-550b-a55b")

New accounts get 25 free NIM calls before any payment; after those, open models stay free at 25 calls a day (reset 00:00 UTC), and the $5 starter pack raises that to 50 chat calls a day, and the $5 becomes spendable balance on any premium model. See /pricing.

120 models live · 15 free · gateway reachable

Why InferAll

Open models at $0 rate

10+ open-source models hosted on NVIDIA NIM (Nemotron 3 Ultra, Mistral Large 4) bill at our open-model rate ($0 input, $0 output). New accounts get 25 free calls before any payment; after those, open models stay free at 25 calls a day (reset 00:00 UTC), and the $5 starter pack raises that to 50 chat calls a day.

Multi-provider routing

One key fronts OpenAI, Anthropic, Google, NVIDIA NIM, Replicate, and Runway. Switch providers with a parameter, not a rewrite.

Drop-in compatibility

OpenAI-compatible at /v1/chat/completions. Anthropic-compatible at /v1/messages. Existing SDKs, agents, and editors work unchanged.

One bill

Pay-as-you-go on premium providers. Free OSS, premium when you need it, single invoice.

Resilience

Choose fallback or keep your model

With automatic routing, supported chat and text requests may try another eligible model after a recoverable provider error or timeout. A substitute can differ in output, latency and price. Requests for $0 models and trial requests stay on free fallback models.

Several fallback models may share one provider, so a provider-wide failure can affect all of them. Timeouts vary by endpoint and routing mode, and requests can still fail. Once a stream starts delivering output, the gateway does not switch models to continue it. Keep application error handling.

Set X-Inferall-Routing: exact when your task depends on a particular model. It disables alternative-model fallback and parallel backup requests; same-model retries can still occur. Inspect the actual model/provider and fallback response headers using the routing reference.

Routing header reference

# Request: allow eligible alternative models (default)
X-Inferall-Routing: auto

# Or keep your selected model; no alternative-model fallback
X-Inferall-Routing: exact

# Response: inspect the attempted route and outcome
X-Inferall-Actual-Provider: <provider>
X-Inferall-Actual-Model: <model>
X-Inferall-Fallback-Used: <true-or-false>
# Also check the HTTP status and response body.

Providers

OpenAIGPT-4o, GPT-4.1, GPT-5.5, o3
AnthropicClaude Sonnet 4, Opus, Haiku
GoogleGemini 2.5, Gemini 3.1 Flash Image
NVIDIANemotron 3 Ultra, Mistral Large 4, 10+ free models
InferAll UncensoredNo refusal layer, up to 1M context
ReplicateFlux, Stable Diffusion, video
RunwayGen-4.5, video generation

Editor integration

Use with your favorite editor

Anything that speaks the OpenAI or Anthropic wire format works with InferAll. That covers most modern coding agents — including the three below.

Claude Code

Anthropic's terminal-native coding agent. Point ANTHROPIC_BASE_URL at InferAll and route Claude Code through free OSS models for cheap turns, premium models for hard ones.

Setup snippet

export ANTHROPIC_API_KEY=ifu_...
export ANTHROPIC_BASE_URL=https://api.inferall.ai
export ANTHROPIC_MODEL=nvidia/nemotron-3-ultra-550b-a55b
export ANTHROPIC_DEFAULT_HAIKU_MODEL=nvidia/nemotron-3-ultra-550b-a55b
claude

Cline

The autonomous coding agent for VS Code. Cline supports Anthropic-compatible endpoints — set the base URL in settings and your free OSS allowance covers the chatty inner loop.

Setup steps

# In Cline's Anthropic provider settings:
#   API Key:  ifu_...
#   Base URL: https://api.inferall.ai
#   Model ID: nvidia/nemotron-3-ultra-550b-a55b   <- required, and $0

Cursor

Cursor lets you bring your own OpenAI-compatible endpoint. Configure InferAll as a custom provider to use the same key across editors.

Setup steps

# In Cursor → Settings → Models → Custom API:
#   OpenAI API Key:  ifu_...
#   OpenAI Base URL: https://api.inferall.ai/v1
#   Model:           nvidia/nemotron-3-ultra-550b-a55b   <- add as a custom model, $0

Prefer a one-click VS Code install with inference already wired in? Use the dedicated InferAll for VS Code extension — the canonical InferAll-branded experience, with the upstream Cline + base-URL path above still fully supported.

Dedicated Cline and Cursor integration guides are coming to the docs.

How it works

01

Get your API key

Sign up and create an InferAll API key (prefix ifu_). Your first 25 calls on open NIM models are free, no card needed. When you want more, the $5 starter pack at /billing becomes spendable balance for any model (open NIM at $0 input/output, premium providers billed per token).

02

Point your tool at InferAll

Set ANTHROPIC_BASE_URL=https://api.inferall.ai for Claude Code and Cline, or OPENAI_BASE_URL=https://api.inferall.ai/v1 for the OpenAI SDK. No code changes.

03

Let the gateway route

Free OSS models for cheap turns, premium providers when you ask for them, and routing controls for your workload. One bill at the end of the month.

Pricing

Free

$0/month

  • 50 chat / 100 text requests per day on 10+ open NIM models — $0 in/out
  • $5/month of premium-provider usage (OpenAI, Anthropic, Google) after a one-time $5 activation
  • Anthropic + OpenAI compatible
  • Automatic model fallback

Pro

$29/month

  • $20/month of premium-provider usage included
  • Higher daily request limits (5,000 chat / 10,000 text / 500 image-generate)
  • All 100+ models, all providers
  • Image and video generation, streaming, tool use

Team

$99/month

  • $100/month of premium-provider usage included
  • Same high request limits as Pro + 200/day video-generate
  • Multiple API keys
  • Priority routing

Enterprise

Custom

  • Custom included usage and request limits
  • Custom model hosting
  • Priority support
  • Dedicated account team

Questions

What is InferAll?

InferAll is an Anthropic-compatible and OpenAI-compatible AI gateway. Point your existing Claude Code, Cline, Cursor, or SDK code at api.inferall.ai with one environment variable and get access to 100+ models across OpenAI, Anthropic, Google, NVIDIA NIM, Replicate, and Runway — including $0 input/output on 10+ open NVIDIA NIM models within the free-tier daily request limits.

How do I use InferAll with Claude Code?

Set ANTHROPIC_API_KEY to your InferAll key and ANTHROPIC_BASE_URL to https://api.inferall.ai, then run claude as usual. InferAll exposes an Anthropic-compatible /v1/messages endpoint, so Claude Code sends every request through InferAll. Route cheap turns to free NVIDIA-hosted OSS models and let premium Claude or GPT handle hard tasks.

How does automatic failover work?

With X-Inferall-Routing: auto (the default), supported chat and text requests may try another eligible model after a recoverable failure. Alternatives can share the same provider, and every eligible route can still fail. Requests for $0 models and trial requests stay on free fallback models. Set X-Inferall-Routing: exact to disable alternative-model fallback and parallel backup requests; same-model retries can still occur. Check the actual model/provider and fallback headers, and keep application error handling. See /docs#routing.

How many free models does InferAll offer?

10+ open-source models hosted on NVIDIA NIM are billed at $0 input and $0 output, capped only by the free-plan daily request rate (50 chat / 100 text / 20 image-analyze / 10 image-generate / 5 video-generate per day). The roster includes Nemotron 3 Ultra and Mistral Large 4. New accounts get 25 free NIM calls before any payment, so the first call costs nothing. After those, open models stay free at 25 calls a day (reset 00:00 UTC). The $5 starter pack raises that to 50 chat calls a day and becomes spendable balance for premium providers (OpenAI, Anthropic, Google), which are billed per token.

How does InferAll compare to OpenRouter, LiteLLM, Portkey, or Vercel AI Gateway?

InferAll combines OpenAI- and Anthropic-compatible endpoints, a $0 open-model allowance, paid models and per-key spending controls. Compare the models, limits and routing controls your workload needs. InferAll offers automatic fallback or exact routing; automatic substitution can change the model and can stay on the same provider. See /docs#routing and /pricing for the current behavior and limits.

Is there a native InferAll SDK?

Yes — both SDKs are live. Python: pip install inferall-ai (0.1.1 on PyPI), import Inferall from inferall, and call text(), chat(), vision(), or generate(). TypeScript: npm install @inferall/sdk (0.1.1 on npm), import { Inferall } from "@inferall/sdk" with the same surface. Both read INFERALL_API_KEY from the environment (the legacy AI_GATEWAY_KEY is still accepted). Prefer the official OpenAI or Anthropic SDKs? Point them at api.inferall.ai and everything works unchanged.

Is InferAll open source?

The InferAll gateway is built and maintained by Kindly Robotics, Inc. The infrastructure code is available on GitHub at github.com/kindlyrobotics. The gateway runs on Fly.io for low-latency global inference.