Morph
Use Morph through LiteLLM for open-weight chat models and Fast Apply code edits. Set MORPH_API_KEY and prefix the model ID with morph/. LiteLLM uses https://api.morphllm.com/v1 by default.
Quickstart
Create a key in the Morph dashboard, then set it in your environment.
pip install -U 'litellm[proxy]'
export MORPH_API_KEY="<your-morph-api-key>"
from litellm import completion
response = completion(
model="morph/morph-dsv41flash",
messages=[{"role": "user", "content": "Write a Python function that adds two numbers."}],
)
print(response.choices[0].message.content)
Open-weight models
Morph documents a 1M-token context window for these models. Use the exact LiteLLM model string in SDK calls or proxy configuration.
| Model | LiteLLM model string |
|---|---|
| Kimi K3 | morph/morph-kimik3 |
| Kimi K3 Fast | morph/morph-kimik3-fast |
| GLM-5.3 | morph/morph-glm53-744b |
| GLM-5.3-Flash | morph/morph-glm53flash |
| DeepSeek V4.1 Flash | morph/morph-dsv41flash |
| DeepSeek V4.1 Flash 1017 | morph/morph-dsv41flash-1017 |
| DeepSeek V4.1 Flash Abliterated | morph/morph-dsv41flash-abliterated |
| DeepSeek V4 Flash 0731 | morph/morph-dsv4flash |
The abliterated model requires approval from Morph. Model access also depends on your account quota and available provider capacity.
Open-weight models accept tools, response_format, and reasoning_effort. DeepSeek V4.1 Flash enables reasoning by default. Use reasoning_effort="none" to disable it, or omit the parameter to use Morph's default.