Model router

One Flutch key for OpenAI, Anthropic and Mistral models

Send OpenAI- or Anthropic-format requests to router.flutch.ai with your Flutch API key. The router adds the provider's key, records each call with its tokens and cost, and charges the provider's list price plus 5% to your balance.

OpenAI-compatible request
curl https://router.flutch.ai/v1/chat/completions \
  -H "Authorization: Bearer $FLUTCH_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4.1-mini",
       "messages": [{"role": "user", "content": "Hello"}]}'

From the Flutch SDK

Set FLUTCH_API_TOKEN and the models ModelInitializer builds go through the router with that one key instead of a key per provider. Without it, the SDK calls the providers directly with their own keys.

TypeScript
// FLUTCH_API_TOKEN=flutch_… in the environment
import { ModelInitializer, ModelProvider } from "@flutchai/flutch-sdk";

const models = new ModelInitializer();
const model = await models.initializeChatModel({
  provider: ModelProvider.ANTHROPIC,
  modelName: "claude-haiku-4-5-20251001",
});

Request formats

Call OpenAI models with chat completions, responses or embeddings in OpenAI's format, and Claude models with messages in Anthropic's format. The router picks the provider by the model name.

Every call recorded

Each call is written with its input, output and cached tokens and its cost.

Price

The provider's list price per token plus 5%, and only for the tokens you use.

Your balance

Create the key on the console's API keys page: the same key the Agent API takes in X-API-Key, sent to the router as a Bearer token. Calls are charged to your workspace balance, and the router refuses them when the balance is empty.

Your own provider keys

Add an OpenAI, Anthropic or Mistral key on the console's API keys page. Your agents' calls to that provider then go out on your key: they are recorded, and the model is not charged to your balance.

The catalog

Models from OpenAI, Anthropic and Mistral. The table below is the live catalog with its prices.

Fallback models

Name backup models with a request. If the provider returns an error or times out, the router sends the same request to the next model and records which one answered.

Response cache

Turn the cache on for a key, and an identical repeated request is answered from the cache and recorded as a cache hit.

Budgets per key

Give each API key a monthly budget in dollars. A key that reaches it gets its calls refused, and your other keys keep working.

Model prices

Available LLM models

Current prices for tokens of popular language models

−
ProviderModelRequestResponse
anthropicclaude-haiku-4-5-20251001$1 per 1M tokens$5 per 1M tokens
claude-haiku-5-5$0.105 per 1M tokens$0.525 per 1M tokens
claude-opus-4-5-20251101$5 per 1M tokens$25 per 1M tokens
claude-opus-4-6$5 per 1M tokens$25 per 1M tokens
claude-opus-4-6$5 per 1M tokens$25 per 1M tokens
claude-opus-5$5 per 1M tokens$25 per 1M tokens
claude-opus-5-5$4.2 per 1M tokens$21 per 1M tokens
claude-sonnet-4-6$3 per 1M tokens$15 per 1M tokens
claude-sonnet-4-6$3 per 1M tokens$15 per 1M tokens
claude-sonnet-4-6$3 per 1M tokens$15 per 1M tokens
claude-sonnet-5$3 per 1M tokens$15 per 1M tokens
claude-sonnet-5-5$2.1 per 1M tokens$10.5 per 1M tokens
coherererank-english-v3.0$0 per 1M tokens$0 per 1M tokens
rerank-multilingual-v3.0$0.002 per 1M tokens$0.002 per 1M tokens
mistralcodestral-embed-2505$0.15 per 1M tokens$0 per 1M tokens
codestral-latest$0.3 per 1M tokens$0.9 per 1M tokens
devstral-medium-2507$0.4 per 1M tokens$2 per 1M tokens
devstral-medium-latest$0.4 per 1M tokens$2 per 1M tokens
devstral-small-2505$0.1 per 1M tokens$0.3 per 1M tokens
devstral-small-2507$0.1 per 1M tokens$0.3 per 1M tokens
magistral-medium-latest$2 per 1M tokens$5 per 1M tokens
magistral-small-latest$0.5 per 1M tokens$1.5 per 1M tokens
ministral-3b-latest$0.04 per 1M tokens$0.04 per 1M tokens
ministral-8b-latest$0.1 per 1M tokens$0.1 per 1M tokens
mistral-embed$0.1 per 1M tokens$0 per 1M tokens
mistral-large-latest$2 per 1M tokens$6 per 1M tokens
mistral-medium-latest$0.4 per 1M tokens$2 per 1M tokens
mistral-moderation-latest$0.1 per 1M tokens$0 per 1M tokens
mistral-saba-latest$0.2 per 1M tokens$0.6 per 1M tokens
mistral-small-latest$0.1 per 1M tokens$0.3 per 1M tokens
open-mistral-7b$0.25 per 1M tokens$0.25 per 1M tokens
open-mixtral-8x7b$0.7 per 1M tokens$0.7 per 1M tokens
open-mixtral-8x22b$2 per 1M tokens$6 per 1M tokens
pixtral-12b$0.15 per 1M tokens$0.15 per 1M tokens
pixtral-large-latest$2 per 1M tokens$6 per 1M tokens
voxtral-mini-2507$0.04 per 1M tokens$0.04 per 1M tokens
voxtral-small-2507$0.1 per 1M tokens$0.3 per 1M tokens
openaibabbage-002$0.15 per 1M tokens$0.6 per 1M tokens
chatgpt-4o-latest$5 per 1M tokens$15 per 1M tokens
codex-mini-latest$1.5 per 1M tokens$6 per 1M tokens
computer-use-preview-2025-03-11$3 per 1M tokens$12 per 1M tokens
davinci-002$2 per 1M tokens$2 per 1M tokens
gpt-3.5-turbo-0125$0.5 per 1M tokens$1.5 per 1M tokens
gpt-3.5-turbo-instruct$1.5 per 1M tokens$2 per 1M tokens
gpt-4-turbo-2024-04-09$10 per 1M tokens$30 per 1M tokens
gpt-4.1$2 per 1M tokens$8 per 1M tokens
gpt-4.1-2025-04-14$2 per 1M tokens$8 per 1M tokens
gpt-4.1-mini$0.4 per 1M tokens$1.6 per 1M tokens
gpt-4.1-mini-2025-04-14$0.4 per 1M tokens$1.6 per 1M tokens
gpt-4.1-nano$0.1 per 1M tokens$0.4 per 1M tokens
gpt-4.1-nano-2025-04-14$0.1 per 1M tokens$0.4 per 1M tokens
gpt-4.5-preview-2025-02-27$75 per 1M tokens$150 per 1M tokens
gpt-4o$2.5 per 1M tokens$10 per 1M tokens
gpt-4o-2024-08-06$2.5 per 1M tokens$10 per 1M tokens
gpt-4o-audio-preview-2024-12-17$2.5 per 1M tokens$10 per 1M tokens
gpt-4o-mini-2024-07-18$0.15 per 1M tokens$0.6 per 1M tokens
gpt-4o-mini-audio-preview-2024-12-17$0.15 per 1M tokens$0.6 per 1M tokens
gpt-4o-mini-realtime-preview-2024-12-17$0.6 per 1M tokens$2.4 per 1M tokens
gpt-4o-mini-search-preview-2025-03-11$0.15 per 1M tokens$0.6 per 1M tokens
gpt-4o-mini-transcribe$1.25 per 1M tokens$5 per 1M tokens
gpt-4o-mini-tts$0.6 per 1M tokens$0 per 1M tokens
gpt-4o-realtime-preview-2024-12-17$5 per 1M tokens$20 per 1M tokens
gpt-4o-search-preview-2025-03-11$2.5 per 1M tokens$10 per 1M tokens
gpt-4o-transcribe$2.5 per 1M tokens$10 per 1M tokens
gpt-5$1.25 per 1M tokens$10 per 1M tokens
gpt-5-chat-latest$0 per 1M tokens$0 per 1M tokens
gpt-5-mini$0.25 per 1M tokens$2 per 1M tokens
gpt-5-nano$0.05 per 1M tokens$0.4 per 1M tokens
gpt-5.1$— per 1M tokens$— per 1M tokens
gpt-5.1-chat-latest$— per 1M tokens$— per 1M tokens
gpt-5.1-codex$— per 1M tokens$— per 1M tokens
gpt-5.1-codex-max$— per 1M tokens$— per 1M tokens
gpt-5.1-codex-mini$— per 1M tokens$— per 1M tokens
gpt-5.2$— per 1M tokens$— per 1M tokens
gpt-5.2-chat-latest$— per 1M tokens$— per 1M tokens
gpt-5.2-codex$— per 1M tokens$— per 1M tokens
gpt-5.2-pro$— per 1M tokens$— per 1M tokens
gpt-5.4$2.625 per 1M tokens$15.75 per 1M tokens
gpt-5.4-mini$0.787 per 1M tokens$4.725 per 1M tokens
gpt-5.4-nano$0.21 per 1M tokens$1.313 per 1M tokens
gpt-5.5$5.25 per 1M tokens$31.5 per 1M tokens
gpt-5.6-luna$0.21 per 1M tokens$1.26 per 1M tokens
gpt-5.6-sol$4.2 per 1M tokens$21 per 1M tokens
gpt-5.6-terra$2.1 per 1M tokens$12.6 per 1M tokens
gpt-6-astra$10.5 per 1M tokens$52.5 per 1M tokens
gpt-6-luna$0.105 per 1M tokens$0.525 per 1M tokens
gpt-6-sol$2.1 per 1M tokens$10.5 per 1M tokens
gpt-6.1-sol$2.1 per 1M tokens$10.5 per 1M tokens
gpt-6.1-terra$1.05 per 1M tokens$5.25 per 1M tokens
gpt-image-1$5 per 1M tokens$0 per 1M tokens
o1-2024-12-17$15 per 1M tokens$60 per 1M tokens
o1-mini-2024-09-12$1.1 per 1M tokens$4.4 per 1M tokens
o1-pro-2025-03-19$150 per 1M tokens$600 per 1M tokens
o3-mini-2025-01-31$1.1 per 1M tokens$4.4 per 1M tokens
o4-mini-2025-04-16$1.1 per 1M tokens$4.4 per 1M tokens
o4-mini-deep-research-2025-06-26$2 per 1M tokens$8 per 1M tokens

Create your first agent

Sign up, start from a ready graph and talk to your agent in the playground. New workspaces start with $5 of credit.