Skip to main content
Inferoute gives you access to dozens of models across OpenAI, Anthropic, Google, Mistral, and other providers through a single API. You can specify a model by its full provider-prefixed name, use a Inferoute alias that abstracts the provider away, or let Inferoute choose automatically based on your routing strategy.

How model selection works

There are three ways to specify a model in your request:
  1. Provider-prefixed name — explicitly targets a specific model from a specific provider: openai/gpt-4o, anthropic/claude-3-5-sonnet, google/gemini-1.5-pro
  2. Inferoute alias — a stable identifier like premium, balanced, or economy that maps to the best available model in that tier at request time
  3. Auto-routing — omit the model field entirely and set X-Inferoute-Strategy: cost or X-Inferoute-Strategy: latency to let Inferoute decide

Model categories

Premium

Highest quality for complex reasoning, long-form writing, and multi-step tasks. Best when output quality directly affects user experience.
  • openai/gpt-4o
  • anthropic/claude-3-5-sonnet
  • Alias: premium

Balanced

Strong capability at moderate cost. A good default for most production workloads where you want solid quality without paying for top-tier.
  • openai/gpt-4o-mini
  • anthropic/claude-3-haiku
  • Alias: balanced

Economy

Fastest and cheapest. Ideal for classification, extraction, summarization, and any task where throughput matters more than nuance.
  • openai/gpt-4o-mini
  • anthropic/claude-3-haiku
  • google/gemini-flash
  • Alias: economy

Long context

For documents, codebases, and conversation histories that exceed standard context windows.
  • anthropic/claude-3-5-sonnet (200k tokens)
  • google/gemini-1.5-pro (1M tokens)
  • Alias: long-context

Model tier comparison

Premium models deliver the best output quality across reasoning, writing, and instruction-following. Use them when accuracy and response quality are critical.Models: openai/gpt-4o, anthropic/claude-3-5-sonnetAlias: premium
python
node.js
Typical cost: ~55–15 per 1M input tokens

Provider-agnostic code with aliases

When you hardcode a provider-prefixed model name like openai/gpt-4o, swapping providers requires a code change. Inferoute aliases let you decouple your application from any specific provider.
python
You can configure what each alias resolves to in the Model Aliases section of your dashboard. This lets you A/B test new models, react to provider outages, or optimize costs — all without deploying code changes.

Embeddings

For embeddings, specify the model directly. Inferoute passes the request to the provider without modification.
python