Public APIs
RouterBase API favicon

RouterBase API

AI

One OpenAI-compatible API for accessing 200+ AI models from OpenAI, Anthropic, Google, Meta, xAI, DeepSeek, and more.

RouterBase API's website screenshot

About RouterBase API

RouterBase provides a unified, OpenAI-compatible API for accessing over 200 AI models from providers including OpenAI, Anthropic, Google DeepMind, Meta, Mistral, DeepSeek, Qwen, xAI, Cohere, Stability AI, Runway, Suno, ElevenLabs, and Black Forest Labs. Developers integrate by swapping the base URL in an existing OpenAI SDK configuration, with no provider-specific rewrites required. The service covers chat, image, video, and audio models, and supports streaming, tool calling, vision inputs, JSON mode, and prompt caching consistent with each provider's native API behavior.

The platform includes smart routing to select a provider by price, latency, or availability per request, automatic fallback between providers on failure, and unified billing across all connected providers in a single invoice. Usage analytics track spend by model, key, or project, with CSV export and API-based querying. Official SDKs are available for Python, Node.js, Go, and Ruby, and the OpenAI SDK works directly through a base URL change; tools such as LangChain, LlamaIndex, the Vercel AI SDK, Cursor, and Continue can connect through their existing OpenAI provider configuration.

Pricing follows a pass-through token cost model plus a flat platform fee, with no model-specific markups. Users can set per-key monthly spend caps and near-cap rate-limit webhooks. A free tier is available with a default limit of 60 requests per minute, while Pro and Enterprise tiers offer higher configurable limits. BYOK (bring your own key) is supported for OpenAI, Anthropic, and Google, allowing token costs to pass through to the user's own provider account while retaining any committed-spend discounts. Data can be processed in EU, US, or APAC regions, with region pinning and per-key region locks available on Enterprise plans, and prompts are not used for model training, with zero-retention flags applied where supported upstream.

Key features

  • OpenAI-compatible API routing to 200+ models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, xAI and more
  • Smart routing that auto-selects provider by price, latency or availability per request
  • Automatic fallback to another provider within milliseconds if the primary fails
  • Unified billing across all providers with a single invoice
  • Usage analytics with spend tracking by model, key or project, exportable to CSV or API
  • BYOK support for OpenAI, Anthropic and Google with flat platform fee and pass-through token costs

Frequently asked questions

Is there a free tier or does it require a credit card?

RouterBase offers a free tier forever with no credit card required. The free tier includes a rate limit starting at 60 requests per minute.

How does pricing work?

RouterBase charges pass-through token pricing plus a flat platform fee with no model-specific markups or hidden charges. Users top up a balance, watch real-time spend in a dashboard, and can set per-key monthly caps.

What SDKs and integrations are supported?

Official SDKs are available for Python, Node.js, Go and Ruby, and the OpenAI SDK works out of the box with a base URL swap. Tools like LangChain, LlamaIndex, the Vercel AI SDK, Cursor and Continue work through their existing OpenAI provider config.

Will RouterBase use my prompts for training?

No, requests are forwarded to providers with zero-retention flags set wherever supported, and prompts are never used to fine-tune any model on RouterBase's side. Dashboard logging can also be disabled entirely with one toggle.

Can I use my own provider API keys?

Yes, BYOK is supported for OpenAI, Anthropic and Google, with a flat platform fee while token costs pass through to your own provider account. Traffic falls back to the pooled provider when you hit a soft cap.

Ad
SerpApi - Search API favicon

SerpApi - Search API

SerpApi's Search API makes it easy and fast to scrape Google and other search engines.

Learn more

Featured products

  • SerpApi - Search API favicon
  • TranscriptFetch favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product