---
title: "Morph"
description: "LiteLLM supports all models on [Morph](https://morphllm.com)"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/morph
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:31:14.251Z
license: CC-BY-4.0
attribution: "Morph — Claudary (https://claudary.paisolsolutions.com/skills/morph)"
---

# Morph
LiteLLM supports all models on [Morph](https://morphllm.com)

## Overview

# Morph

LiteLLM supports all models on [Morph](https://morphllm.com)

## Overview

Morph provides specialized AI models designed for agentic workflows, particularly excelling at precise code editing and manipulation. Their "Apply" models enable targeted code changes without full file rewrites, making them ideal for AI agents that need to make intelligent, context-aware code modifications.

## API Key
```python
import os 
os.environ["MORPH_API_KEY"] = "your-api-key"
```

## Sample Usage

```python
from litellm import completion

# set env variable 
os.environ["MORPH_API_KEY"] = "your-api-key"

messages = [
    {"role": "user", "content": "Write a Python function to calculate factorial"}
]

## Morph v3 Fast - Optimized for speed
response = completion(
    model="morph/morph-v3-fast",
    messages=messages,
)
print(response)

## Morph v3 Large - Most capable model
response = completion(
    model="morph/morph-v3-large", 
    messages=messages,
)
print(response)
```

## Sample Usage - Streaming
```python
from litellm import completion

# set env variable
os.environ["MORPH_API_KEY"] = "your-api-key"

messages = [
    {"role": "user", "content": "Write a Python function to calculate factorial"}
]

## Morph v3 Fast with streaming
response = completion(
    model="morph/morph-v3-fast",
    messages=messages,
    stream=True,
)

for chunk in response:
    print(chunk)
```

## Supported Models

| Model Name               | Function Call                              | Description | Context Window |
|--------------------------|--------------------------------------------|-----------------------|----------------|
| morph-v3-fast            | `completion('morph/morph-v3-fast', messages)` | Fastest model, optimized for quick responses | 16k tokens |
| morph-v3-large           | `completion('morph/morph-v3-large', messages)` | Most capable model for complex tasks | 16k tokens |

## Usage - LiteLLM Proxy Server

Here's how to use Morph with the LiteLLM Proxy Server:

1. Save API key in your environment
```bash
export MORPH_API_KEY="your-api-key"
```

2. Add model to config.yaml
```yaml
model_list:
  - model_name: morph-v3-fast
    litellm_params:
      model: morph/morph-v3-fast
      
  - model_name: morph-v3-large
    litellm_params:
      model: morph/morph-v3-large
```

3. Start the proxy server
```bash
litellm --config config.yaml
```

## Advanced Usage

### Setting API Base
```python
import litellm 

# set custom api base
response = completion(
    model="morph/morph-v3-large",
    messages=[{"role": "user", "content": "Hello, world!"}],
    api_base="https://api.morphllm.com/v1"
)
print(response)
```

### Setting API Key
```python 
import litellm 

# set api key via completion
response = completion(
    model="morph/morph-v3-large",
    messages=[{"role": "user", "content": "Hello, world!"}],
    api_key="your-api-key"
)
print(response)
```

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/morph) · https://claudary.paisolsolutions.com
