Switch from OpenRouter to Morse

Move from OpenRouter to Morse in two lines: change the base URL and key, keep your model ids. 69 of our 87 ids match OpenRouter's.

To switch from OpenRouter to Morse, change the base URL to https://inference.trymorse.ai/v1 and use a Morse API key. 69 of Morse's 87 model ids are the same strings OpenRouter uses, so most code keeps its model names.

Morse keeps no prompt and no response, on any tier and any plan. A provider sees Morse, never your account. See What Morse keeps.

Change two lines

 client = OpenAI(
-    base_url="https://openrouter.ai/api/v1",
-    api_key=os.environ["OPENROUTER_API_KEY"],
+    base_url="https://inference.trymorse.ai/v1",
+    api_key=os.environ["MORSE_API_KEY"],
 )
 
 completion = client.chat.completions.create(
     model="moonshotai/kimi-k3.1-pro",  # the same id on both
     messages=[{"role": "user", "content": "Hello"}],
 )

Make the key under API keys in the console. The OpenAI SDKs and every OpenAI-compatible client take the same two settings.

Your model ids

69 ids work unchanged, and 18 are on Morse only. Prices are in dollars per million tokens, on each model's default endpoint. OpenRouter's list was read on 2026-11-30.

The same on OpenRouter (69)

Model idModelInput / output
deepseek/deepseek-r1-0528DeepSeek R1 0528$0.55 / $2.19
deepseek/deepseek-v3.2DeepSeek V3.2$0.28 / $0.42
deepseek/deepseek-v4-flashDeepSeek V4 Flash 0423$0.14 / $0.28
deepseek/deepseek-v4-flash-0731DeepSeek V4 Flash 0731$0.44 / $1.32
deepseek/deepseek-v4-flash-vision-expDeepSeek V4 Flash Vision Exp$0.55 / $1.65
deepseek/deepseek-v4-proDeepSeek V4 Pro 0423$1.625 / $3.25
deepseek/deepseek-v4-pro-0813DeepSeek V4 Pro$1.32 / $3.96
deepseek/deepseek-v4.1-flashDeepSeek V4.1 Flash$0.30 / $1.20
deepseek/deepseek-v4.1-flash-1017DeepSeek V4.1 Flash 1017$0.30 / $1.20
google/gemma-3-12b-itGemma 3 12B$0.0625 / $0.1875
google/gemma-3-27b-itGemma 3 27B$0.10 / $0.20
google/gemma-3-4b-itGemma 3 4B$0.0625 / $0.125
google/gemma-4-26b-a4b-itGemma 4 26B A4B$0.15 / $0.60
google/gemma-4-31b-itGemma 4 31B$0.25 / $0.50
inclusionai/ling-3.0-flashLing 3.0 Flash$0.075 / $0.225
inclusionai/ling-3.0-flash-vlLing 3.0 Flash VL$0.075 / $0.225
inclusionai/ling-3.1-flashLing 3.1 Flash$0.375 / $1.125
meta-llama/llama-3.1-8b-instructLlama 3.1 8B$0.025 / $0.05
meta-llama/llama-3.3-70b-instructLlama 3.3 70B$0.125 / $0.40
meta-llama/llama-4-scoutLlama 4 Scout$0.125 / $0.375
meta/muse-glimmer-30bMuse Glimmer 30B$0.375 / $1.50
minimax/minimax-m3MiniMax M3$0.30 / $1.20
minimax/minimax-m3.1-flashMiniMax M3.1 Flash$0.15 / $0.60
mistralai/mistral-nemoMistral Nemo$0.0363 / $0.0375
mistralai/mistral-small-24b-instruct-2501Mistral Small 3 2501$0.10 / $0.30
mistralai/mistral-small-3.2-24b-instructMistral Small 3.2$0.10 / $0.30
moonshotai/kimi-k2-0905Kimi K2 0905$0.75 / $3.125
moonshotai/kimi-k2.6Kimi K2.6$0.95 / $4
moonshotai/kimi-k3Kimi K3$3 / $15
moonshotai/kimi-k3.1-proKimi K3.1 Pro$2 / $10
nvidia/nemotron-3-super-120b-a12bNemotron 3 Super$0.0938 / $0.50
nvidia/nemotron-3-ultra-550b-a55bNemotron 3 Ultra$0.625 / $2.75
nvidia/nemotron-3.5-lightningNemotron 3.5 Lightning$0.075 / $0.20
nvidia/nemotron-3.5-super-vlNemotron 3.5 Super VL$0.1875 / $0.625
openai/gpt-oss-120bgpt oss 120b$0.0463 / $0.2125
openai/gpt-oss-20bgpt oss 20b$0.0375 / $0.175
qwen/qwen-2.5-72b-instructQwen2.5 72B Instruct$0.45 / $0.50
qwen/qwen3-14bQwen3 14B$0.35 / $1.40
qwen/qwen3-235b-a22b-2507Qwen3 235B A22B Instruct 2507$0.23 / $0.92
qwen/qwen3-30b-a3bQwen3 30B A3B$0.20 / $0.80
qwen/qwen3-32bQwen3 32B$0.16 / $0.64
qwen/qwen3-coderQwen3 Coder 480B A35B$0.375 / $1.25
qwen/qwen3-next-80b-a3b-instructQwen3 Next 80B A3B Instruct$0.15 / $1.20
qwen/qwen3-vl-235b-a22b-instructQwen3 VL 235B A22B$0.40 / $1.60
qwen/qwen3-vl-30b-a3b-instructQwen3 VL 30B A3B$0.20 / $0.80
qwen/qwen3.5-27bQwen3.5 27B$0.30 / $2.40
qwen/qwen3.5-35b-a3bQwen3.5 35B A3B$0.25 / $2
qwen/qwen3.5-397b-a17bQwen3.5 397B A17B$0.60 / $3.60
qwen/qwen3.5-9bQwen3.5 9B$0.125 / $0.1875
qwen/qwen3.6-27bQwen3.6 27B$0.60 / $3.60
qwen/qwen3.6-35b-a3bQwen3.6 35B A3B$0.375 / $2.25
qwen/qwen3.8-2.4t-a95bQwen3.8 Max$2 / $6
qwen/qwen3.8-27bQwen3.8 27B$0.50 / $3
stepfun/step-3.7-flashStep 3.7 Flash$0.20 / $1.15
stepfun/step-5-previewStep 5 Preview$1 / $2.70
tencent/hy3Hy3$0.175 / $0.725
tencent/hy4Hy4$0.834 / $2.501
tencent/hy4-flashHy4 Flash$0.07 / $0.281
thinkingmachines/inkling-smallInkling Small$0.5625 / $1.50
xiaomi/mimo-v2.6-flashMiMo V2.6 Flash$0.14 / $0.28
xiaomi/mimo-v2.6-proMiMo V2.6 Pro$0.435 / $0.87
z-ai/glm-4.5-airGLM 4.5 Air$0.20 / $1.10
z-ai/glm-4.6GLM 4.6$0.60 / $2.20
z-ai/glm-4.7GLM 4.7$0.60 / $2.20
z-ai/glm-5GLM 5$1 / $3.20
z-ai/glm-5.1GLM 5.1$1.40 / $4.40
z-ai/glm-5.2GLM 5.2$1.40 / $4.40
z-ai/glm-5.3GLM 5.3$1.40 / $4.40
z-ai/glm-5.3-flashGLM 5.3 Flash$0.15 / $0.50

On Morse only (18)

Model idModelInput / output
abliteration/abliterated-modelAbliterated Model$1 / $3
abliteration/abliterated-model-large-flashAbliterated Large Flash$1 / $2
abliteration/abliterated-model-large-v2Abliterated Large v2$3 / $5
deepseek-ai/deepseek-v4.1-flash-uncensoredDeepSeek V4.1 Flash Uncensored$0.50 / $1.50
deepseek/deepseek-v3DeepSeek V3$0.32 / $1.10
deepseek/deepseek-v3.1DeepSeek V3.1$0.56 / $1.68
deepseek/deepseek-v4.1-flash-1017-abliteratedDeepSeek V4.1 Flash 1017 Uncensored$0.50 / $1.50
deepseek/deepseek-v4.1-flash-1017-ultrafastDeepSeek V4.1 Flash 1017 Ultrafast$0.30 / $1.20
google/gemma-4-26b-a4b-uncensoredGemma 4 26B A4B Uncensored$0.175 / $0.85
inclusionai/ling-3.0-flash-finLing 3.0 Flash Fin$0.0938 / $0.275
moonshotai/kimi-k2Kimi K2$0.60 / $2.50
moonshotai/kimi-k3.1-pro-uncensoredKimi K3.1 Pro Uncensored$5 / $18.75
qwen/qwen-2.5-7b-instructQwen2.5 7B Instruct$0.125 / $0.25
qwen/qwen3.8-27b-uncensoredQwen3.8 27B Uncensored$0.35 / $1.75
tencent/hy4-uncensoredHy4 Uncensored$1.50 / $4
xiaomi/mimo-v2.6-flash-uncensoredMiMo V2.6 Flash Uncensored$0.50 / $1.75
z-ai/glm-5.3-flash-uncensoredGLM 5.3 Flash Uncensored$0.225 / $1
z-ai/glm-5.3-uncensoredGLM 5.3 Uncensored$1.75 / $5

Every model is on the models page.

Parameters

OpenRouter sendsOn Morse
modelThe same id for the 69 models above. For another, pick a Morse model from the table.
messages, tools, tool_choice, streamThe same. See What works the same.
response_formatReaches only a model that lists it in supported_parameters. See Structured outputs.
reasoningWorks as it does there, and so does reasoning_effort. See Reasoning.
providerMorse reads zdr, data_collection, allow_fallbacks, and max_price, and adds min_privacy. See Provider routing.
modelsA list of more than one model returns 400 unsupported_parameter. Morse fails over between one model's providers.
HTTP-Referer, X-TitleMorse doesn't read these headers, so you can leave them in.
:free, :nitroDrop the suffix. A Morse id has none, and an id with one returns 404 model_not_found.

Every difference is in What's different.

Tools you already use

In a tool set up for OpenRouter, change the same two settings. Each guide names them:

What changes for privacy

OpenRouter's zero data retention covers the providers OpenRouter sends your prompts to, not OpenRouter itself. OpenRouter's servers read every prompt in plain text, and their code is closed. Morse's enclave runs open-source code you can check, and a request your client encrypts for Morse's enclave can be decrypted only inside that enclave. See the privacy page.

Check it works

List the models with your key, then send one chat completion with an id from the table.

cURL
curl https://inference.trymorse.ai/v1/models \
  -H "Authorization: Bearer $MORSE_API_KEY"

curl https://inference.trymorse.ai/v1/chat/completions \
  -H "Authorization: Bearer $MORSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "moonshotai/kimi-k3.1-pro", "messages": [{"role": "user", "content": "Hello"}]}'

Questions

Do my OpenRouter model ids work on Morse?

69 of Morse's 87 model ids are the same strings OpenRouter uses, so a request that names one works unchanged on Morse.

Can I keep using OpenRouter for models Morse doesn't serve?

Yes. Keep both keys, and send each request to the API that serves its model.

How do I pay?

Buy credits by card in the Morse console, $5 to $1,000 at a time. A key pays for each request from your credits.