Features

One endpoint for every model, with caps, projects, permissions, agents and logs around it.

Model names and fallbacks

Your code calls a name, such as standard. Which model answers is decided in the portal.

  • Switch the model behind a name without changing or redeploying your code.
  • Up to three fallbacks per model name, in order. They take over on errors, overload or when an answer takes too long.
  • A timeout per model name: how long a model may stay silent before the next one is tried.
  • Fallbacks of your own for a single call, with extra_body.
  • The response shows which model answered, in the x-mh-model header.
  • Model names are in every plan. Fallbacks are included on Bas and up.
# Fallbacks of your own for a single call client.chat.completions.create( model="standard", messages=[...], extra_body={"fallback": ["mistral/mistral-small"]}, ) # The response says who answered: # x-mh-model: mistral/mistral-small # x-mh-fallback: openai/gpt-5:503 > mistral/mistral-small:200

Budget caps and alarms

A spending cap per project and month. When the cap is reached, the calls stop — not the invoice.

  • A hard cap: above it the API answers 402 until the cap is raised or the month is over.
  • Calls in progress at the same time are counted, so the cap holds even with many parallel calls.
  • Alarms when a project reaches its alert level and when the cap is reached, by email to up to five addresses.
  • On Bas and up, to Slack or Teams too.

Two caps, not one

The project's cap with us stops calls through ModelHarbour. The spend limit you set with each provider stops everything else. Both are required before a provider can be connected.

Projects and subprojects

Each project has its own cap, its own model names and its own keys. Subprojects split a project up per customer, service or environment.

  • Budget cap, alert level, calls per minute, cache, EU mode and masking are set per project.
  • A call picks its subproject with the x-mh-subproject header. The same key, no new account per customer.
  • The parent sets the frame: how many subprojects, the highest cap, calls per minute and which model names they may use.
  • The parent holds the cap for all its subprojects together. Each subproject also has its own cap and can be paused.
  • Your service creates the subprojects through the agent API, inside the frame, with nobody having to approve each customer.
  • Logs, End customers and the export filter by project, and the subprojects count towards the parent.
# Same key, one subproject per customer client.chat.completions.create( model="standard", messages=[...], extra_headers={"x-mh-subproject": "customer-4711"}, )

Unknown or paused

A subproject that does not exist gets 400, a paused one 403. No call ends up on the wrong customer.

Roles and permissions

Invite colleagues with the right permissions, for the whole account or for chosen projects.

  • Owners control providers, budget caps, masking and users.
  • Developers handle API keys, model names and the cache — never the budget, masking or users.
  • Readers see logs and costs without being able to change anything.
  • Each person reaches the whole account or chosen projects, and then their subprojects too.
  • Extra rights per person: may approve agent proposals and may manage agent keys.
  • An invitation takes effect only once the invitee has accepted. Every change is logged with who and when.

Signing in

Password, passkey or a one-time link by email. Everyone sees their signed-in sessions and can sign out everywhere.

Agent API

Give an AI agent — Claude Code, a service of your own or an automation — a key of its own. It reads the account and makes proposals. A person approves them in the portal.

  • The agent reads projects, model names, the models switched on with their list prices, and its own proposals.
  • It proposes new projects, changed caps and settings, model names and which models to switch on.
  • A proposal is checked against the same rules and the same plan as the portal. If it fails, the agent gets the reasons, line by line.
  • New proposals are sent out by email. Whoever has the right approves, rejects or comments, and the agent reads the outcome.
  • Subprojects the agent may create and change itself, under the project it was given and inside the parent's frame.
  • An agent key can never call models and never approve. It expires after a year at most, and every call is logged.
# The agent proposes, a person approves curl https://app.modelharbour.com/api/agent/v1/proposals \ -H "Authorization: Bearer mh_agent_…" \ -H "x-mh-source: claude-code" \ -d '{"title": "Project for the support bot", "changes": [{ "op": "project.create", "project": {"name": "support", "monthlyCap": 200} }]}'

EU mode

Calls only go to models that run in the EU.

Plus and up

  • Models outside the EU cannot be switched on.
  • A fallback outside the EU is skipped — better an error than a silent detour.
  • Applies to transcription too.

Providers and models

  • Anthropic Claude Fable 5, Claude Fable 5.1, Claude Fable 5.2, Claude Haiku 4.5, Claude Haiku 5.5, Claude Mythos 5, Claude Mythos 5.1, Claude Mythos 5.2, Claude Mythos Preview, Claude Opus 4.5, Claude Opus 4.6, Claude Opus 4.7, Claude Opus 4.8, Claude Opus 5, Claude Opus 5.5, Claude Sonnet 4.5, Claude Sonnet 4.6, Claude Sonnet 5, Claude Sonnet 5.5
  • OpenAI Chat, Daybreak Blue, Daybreak Red, GPT-4.1, GPT-4.1 mini, GPT-4o, GPT-4o mini, GPT-4o mini Realtime Preview, GPT-4o mini Search Preview, GPT-4o mini Transcribe, GPT-4o mini TTS, GPT-4o Search Preview, GPT-4o Transcribe, GPT-4o Transcribe Diarize, GPT-5, GPT-5.1, GPT-5.2, GPT-5.2 Pro, GPT-5.3 Codex, GPT-5.4, GPT-5.4 mini, GPT-5.4 nano, GPT-5.4 Pro, GPT-5.5, GPT-5.5 Cyber, GPT-5.5 Cyber Preview, GPT-5.5 Pro, GPT-5.6, GPT-5.6 Cyber, GPT-5.6 Luna, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5 mini, GPT-5 nano, GPT-5 Pro, GPT-5 Search API, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6.2 Astra, GPT-6.2 Astra Law, GPT-6.2 Sol, GPT-6 Astra, GPT-6 Astra Law, GPT-6 Cyber, GPT-6 Luna, GPT-6 Rosalind, GPT-6 Sol, GPT Daybreak Blue, GPT Daybreak Red, GPT Image 1.5, GPT Image 1 mini, GPT Live Transcribe, GPT Realtime, GPT Realtime 1.5, GPT Realtime 2, GPT Realtime 2.1, GPT Realtime 2.1 mini, GPT Realtime mini, GPT Realtime Whisper, GPT Rosalind Discovery, GPT Rosalind Research, GPT Transcribe, o3, o3 Pro, Text Embedding 3 Large, Text Embedding 3 Small, Text Embedding Ada 002, TTS 1, TTS 1 Hd, Whisper
  • Google Gemini Deep Research Max Preview 04, Deep Research Preview 04, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemini 2.5 Pro, Gemini 2.5 Pro Preview TTS, Gemini 3.1 Flash Image, Gemini 3.1 Flash Lite, Gemini 3.1 Flash Lite Image, Gemini 3.1 Pro Preview, Gemini 3.1 Pro Preview Customtools, Gemini 3.5 Flash, Gemini 3.5 Flash Lite, Gemini 3.6 Flash, Gemini 3.7 Flash, Gemini 3.8 Flash, Gemini 3 Flash Preview, Gemini 3 Pro Image, Gemini 4 Argon, Gemini Embedding 001, Gemini Embedding 2, Gemini Flash, Gemini Flash Lite, Gemini nano Banana 2.1, Gemini Omni 1.1 Flash, Gemini Omni 1.2 Flash, Gemini Pro, Gemini Robotics ER 2 Preview, Gemini Robotics ER 2 Streaming Preview, Gemma 2 27B IT, Gemma 2 9B IT, Genie 4, Imagen 3.0 Fast Generate 001, Imagen 3.0 Generate 001, nano Banana Pro Preview
  • MistralIn the EU Codestral, Codestral Embed, Codestral Mamba, DeepSeek V4.1 Flash, Devstral, Devstral Medium, Devstral Small, GLM 5.2, Magistral Medium, Magistral Small, Ministral 14B, Ministral 3 14B, Ministral 3 3B, Ministral 3 8B, Ministral 3B, Ministral 8B, Mistral Code, Mistral Code Agent, Mistral Code Fim, Mistral Embed, Mistral Large, Mistral Large 3, Mistral Large 4, Mistral Large 4.0, Mistral Medium, Mistral Medium 3, Mistral Medium 3.5, Mistral Medium 3.5, Mistral Small, Mistral Tiny, Mistral Vibe Cli, Mistral Vibe Cli Fast, Mistral Vibe Cli With Tools, Open Mistral Nemo, Pixtral Large, Voxtral mini Realtime, Voxtral mini Transcribe, Voxtral Mini Transcribe, Voxtral mini Transcribe 3, Voxtral mini Transcribe 3.0, Voxtral mini Transcribe Realtime, Voxtral mini Transcribe Realtime 3, Voxtral mini Transcribe Realtime 3.0, Voxtral mini TTS, Voxtral mini TTS 3, Voxtral mini TTS 3.0, Voxtral Small, Voxtral Small Transcribe, Voxtral Small Transcribe 3, Voxtral Small Transcribe 3.0, Zai GLM, Zai GLM 5, Zai GLM 5.3, Zai GLM 5.3 Flash
  • ScalewayIn the EU Bge Multilingual Gemma2, DeepSeek V4 Flash, Gemma 4 26B A4B IT, GLM 5.2, GPT OSS 120B, Llama 3.3 70B Instruct, Mistral Medium 3.5 128B, Mistral Small 3.2 24B Instruct, Qwen3 235B A22B Instruct, Qwen3.5 397B A17B, Qwen3.6 35B A3B, Qwen3 Embedding 8B
  • xAI Grok 4.20, Grok 4.20 0309 Non Reasoning, Grok 4.20 0309 Reasoning, Grok 4.20 Beta, Grok 4.20 Beta 0309 Non Reasoning, Grok 4.20 Beta 0309 Reasoning, Grok 4.20 Beta Latest Non Reasoning, Grok 4.20 Beta Latest Reasoning, Grok 4.20 Beta Non Reasoning, Grok 4.20 Beta Reasoning, Grok 4.20 Experimental Beta, Grok 4.20 Experimental Beta 0304 Non Reasoning, Grok 4.20 Experimental Beta 0304 Reasoning, Grok 4.20 Experimental Beta Non Reasoning, Grok 4.20 Experimental Beta Reasoning, Grok 4.20 Multi Agent, Grok 4.20 Multi Agent Beta, Grok 4.20 Multi Agent Experimental Beta, Grok 4.20 Non Reasoning, Grok 4.20 Non Reasoning Gv2, Grok 4.20 Reasoning, Grok 4.20 Reasoning Gv2, Grok 4.3, Grok 4.5, Grok 4.6, Grok 4.7, Grok Build, Grok Build 0.1, Grok Code Fast, Grok Code Fast 1, Grok Imagine Image, Grok Imagine Image 2.0, Grok Voice Transcribe 2.0
  • Perplexity Sonar, Sonar Medium Chat, Sonar Pro, Sonar Reasoning, Sonar Reasoning Pro, Sonar Small Chat
  • AWS BedrockIn the EU Claude 3.5 Haiku, Stockholm, Claude 3.5 Sonnet, Stockholm, Claude 3.7 Sonnet, Stockholm, Claude 3 Opus, Stockholm, Claude Fable 5.1, Stockholm, Claude Fable 5.2, Stockholm, Claude Fable 5, Stockholm, Claude Haiku 4.5, Stockholm, Claude Haiku 5.5, Stockholm, Claude Mythos 5.2, Stockholm, Claude Opus 4.1, Stockholm, Claude Opus 4.5, Stockholm, Claude Opus 4.6, Stockholm, Claude Opus 4.7, Stockholm, Claude Opus 4.8, Stockholm, Claude Opus 4, Stockholm, Claude Opus 5.5, Stockholm, Claude Opus 5, Stockholm, Claude Sonnet 4.5, Stockholm, Claude Sonnet 4.6, Stockholm, Claude Sonnet 5.5, Stockholm, Claude Sonnet 5, Stockholm, Embed, Stockholm, Nova 2 Lite, Stockholm, Nova 2 Pro Preview, Stockholm, Nova Lite, Stockholm, Nova Micro, Stockholm, Nova Pro, Stockholm, Pixtral Large, Stockholm, V3.2, Stockholm
  • Azure OpenAIIn the EUComing soon GPT-5 mini, EU

Personal data masking

A safety net in case something slips through. If a comment, a free-text field or an unexpected data source carries a Swedish personal identity number, it is masked before it leaves us — if you have switched the protection on.

Plus and up

  • Swedish personal identity and coordination numbers, company registration numbers, email addresses, phone numbers, IBAN, Bankgiro and Plusgiro.
  • Replaced with placeholders before the call goes to the AI provider, and put back in the answer, streamed answers included.
  • If you store prompts and answers, or use the response cache, it is the masked text that is stored.
  • It does not find everything: not names, addresses, or data in images, files and audio. The audio in a transcription is not masked, only its prompt field.
  • You switch it on yourselves, per project or per API key, and you remain responsible for which personal data is sent.
# What you send "Call 850709-9821 on 070-123 45 67" # What the AI provider gets "Call [PERSON_1] on [PHONE_1]" # The response gets the real values back. # x-mh-pii-masked: 2

Logs and statistics

Every call is visible: model, tokens, latency, status and cost.

  • Prompts and answers are stored only if you switch it on, for 30 days at most.
  • Cost per project, model and day, and a forecast for the month.
  • A statistics page and CSV export on Bas and up.
  • How long logs are kept depends on the plan.

How long logs are kept

  • Start: 7 days
  • Bas: 30 days
  • Plus: 90 days
  • Enterprise: 1 year

Cost per end customer

Say who a call is for, and you see what each customer costs.

Bas and up

  • Send user in the call or the x-mh-end-user header.
  • The provider gets a pseudonym, never your id.
  • Cost, calls and tokens per end customer under End customers, with CSV export.
  • Export and erasure per end customer, when a person asks under the GDPR.

The cost in the response

Every response without streaming has the x-mh-cost-usd header with the call's cost at list price. /v1/models shows the price per million tokens.

The portal: compare, measure and save

The tools that turn choosing a model into a decision, not a guess.

  • Compare models: the same question to up to three models, with answers, cost and latency side by side.
  • Get started with ready code in curl, Python, Node and PHP, with your address and model names filled in.
  • Statistics with savings suggestions worked out from your own calls, on Bas and up.
  • A monthly report by email on the first of each month for paying accounts: cost, trend and the biggest projects.
  • A warning 30, 7 and 1 day before a model is shut down, and a switch to its successor if you want.
  • See where each key is used: source name, IP address and program.
  • Amounts in your currency — kronor, euros and five more — at the ECB's daily rates.

Service status

A public page shows whether the API, the portal and each provider are answering right now.

Status →

Response cache

A question that has already been asked is answered at once, without a new call.

Bas and up

  • The answer comes from the cache and costs nothing.
  • Applies to calls with temperature 0, no tools and no streaming — only then is the answer the same.
  • How long an answer is kept is set per project, up to a day.
  • Off by default.

When does it pay off?

When the same question is asked over and over: common questions in customer service, summaries of the same document, test runs.

Transcription

Audio to text through the same API and the same key.

  • OpenAI's transcription models, and Mistral Voxtral, which runs in the EU.
  • Files up to 25 MB. Answers as text, JSON or subtitles (SRT, VTT).
  • Priced per minute of audio, paid directly to the provider. The budget cap applies just as for chat.
  • Start includes 30 minutes a month. The other plans are unlimited.
client.audio.transcriptions.create( model="speech", # a model name or a model file=open("meeting.m4a", "rb"), response_format="srt", )

Sandbox

A test key that answers at once, with no provider and no cost.

  • Keys starting with mh_test_ give a clearly marked test answer.
  • Works for chat, streaming and transcription.
  • The calls show up in the log, at no cost.
curl https://api.modelharbour.com/v1/chat/completions \ -H "Authorization: Bearer mh_test_…" \ -H "x-mh-source: webshop-prod" \ -H "Content-Type: application/json" \ -d '{"model": "standard", "messages": [{"role": "user", "content": "Hello"}]}'

OpenAI-compatible API

The same client you use today. Change base_url and the key.

  • /v1/chat/completions with streaming, tools and JSON output.
  • /v1/responses for models that exist only there.
  • /v1/embeddings for vectors.
  • /v1/images/generations for images.
  • /v1/audio/speech for speech from text.
  • /v1/audio/transcriptions for audio to text.
  • /v1/batches for chat jobs that can wait up to a day, at half the list price at OpenAI. The budget cap holds.
  • /v1/realtime for conversations in real time, a beta the account owner switches on.
  • /v1/models lists your model names and the models you have switched on, with prices.
  • Works with OpenAI's SDKs for Python and Node, and with anything else that speaks the same API.
# The same OpenAI client — a new base_url from openai import OpenAI client = OpenAI( base_url="https://api.modelharbour.com/v1", api_key="mh_live_…", ) client.chat.completions.create( model="standard", # a model name, changed in the portal messages=[{"role": "user", "content": "Hello"}], )

Get started for free

A sandbox key right away. Connect a provider when you are ready.

Create a free account