> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morphllm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Open-weight coding models on an OpenAI-compatible API

Morph serves open-weight models on inference kernels built for coding agents. Same weights, a different engine. [How →](https://morphllm.com/blog/codegen-inference-research)

## Run an open-weight model

Point any OpenAI SDK at `https://api.morphllm.com/v1`. Existing code only needs a new `model` string. The Anthropic SDK works too, at `/v1/messages` (see [Endpoints](https://docs.morphllm.com/endpoints.md)).

```typescript TypeScript theme={null}
import OpenAI from 'openai';

const openai = new OpenAI({
  apiKey: process.env.MORPH_API_KEY,
  baseURL: 'https://api.morphllm.com/v1',
});

const chat = await openai.chat.completions.create({
  model: 'morph-glm53-744b',
  messages: [{ role: 'user', content: 'Write a rate limiter in TypeScript.' }],
});

console.log(chat.choices[0].message.content);
```

```python Python theme={null}
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.morphllm.com/v1",
)

chat = client.chat.completions.create(
    model="morph-glm53-744b",
    messages=[{"role": "user", "content": "Write a rate limiter in Python."}],
)

print(chat.choices[0].message.content)
```

## Models

| Model | Model ID | Context |
| :- | :- | :- |
| **Kimi K3.1 Pro** | `morph-kimik31` | 1M |
| **GLM-5.3 744B** | `morph-glm53-744b` | 1M |
| **GLM-5.3-Flash** <sup>multimodal</sup> | `morph-glm53flash` | 1M |
| **DeepSeek V4.1 Flash** <sup>multimodal</sup> | `morph-dsv41flash` | 1M |
| **DeepSeek V4.1 Flash 1017** <sup>multimodal</sup> | `morph-dsv41flash-1017` | 1M |

Every model supports tool calls, JSON mode and JSON schema, logprobs, and reasoning. Per-token rates are on the [pricing page](https://www.morphllm.com/pricing) and live at [`/api/models/json`](https://www.morphllm.com/api/models/json). DeepSeek V4.1 Flash Abliterated is served behind [approval](https://docs.morphllm.com/sdk/components/fast-models#deepseek-uncensored).

## Built for agent loops

Three things change when the caller is an agent rather than a chat window.

* **[Prefix caching](https://docs.morphllm.com/sdk/components/caching.md)** is on for every model with no configuration. Set an `x-session-id` header and each turn lands on the worker already holding its prefix.
* **[Agent programs](https://docs.morphllm.com/sdk/components/agent-programs.md)**: tag turns with a `run_id` and the scheduler pins the run to its KV cache, resumes it first after a tool call, and admits the whole run under load.
* **[Standby](https://docs.morphllm.com/sdk/components/standby.md)**: `service_tier: "standby"` runs on spare capacity at half price. Sheds a fast 429 when a region is busy. Built for crons, batch jobs, and evals.

Speed comes from a speculator trained on each model's own coding output (3.07x vs. 1.93x for a generic draft) and FP4 kernels tuned per GPU. [How we optimize for codegen →](https://morphllm.com/blog/codegen-inference-research)

## Specialized models

Small models that take one job off the main agent. Same key, same base URL.

| Model | What it does | Speed |
| - | - | - |
| **[Fast Apply](https://docs.morphllm.com/sdk/components/fast-apply.md)** | Merges a lazy edit snippet (`// ... existing code ...`) into the file | 10,500 tok/s, 98% accuracy |
| **[WarpGrep](https://docs.morphllm.com/sdk/components/warp-grep/index)** | Searches a repo in its own context window, returns file/line spans | \~3.8 steps, [#1 SWE-Bench Pro](https://morphllm.com/blog/warpgrep-v2) |
| **[Compact](https://docs.morphllm.com/sdk/components/compact.md)** | Drops irrelevant lines from chat history, survivors verbatim | 33,000 tok/s, 50-70% smaller |
| **[Reflex](https://docs.morphllm.com/models/reflex.md)** | Answers typed questions about text, JSON, and images | Probabilities, zero output tokens |
| **[Router](https://docs.morphllm.com/sdk/components/router.md)** | Returns which model tier a prompt needs | \~180ms, \$0.005/request |

Fast Apply and WarpGrep also ship as the [morph CLI](https://docs.morphllm.com/cli.md) with [skills](https://docs.morphllm.com/skills.md) for Claude Code, Cursor, Codex, and OpenCode (an MCP server remains for hosts without a shell):

```bash Terminal theme={null}
npx -y @morphllm/morph-setup --morph-api-key YOUR_API_KEY
```

## Dedicated endpoints

Reserve capacity for one model on its own pool. Hourly plans, your own endpoint URL, same OpenAI client. [Dedicated endpoints →](https://docs.morphllm.com/dedicated-endpoints.md)

## Next steps

> [card] [Open Source Models](https://docs.morphllm.com/sdk/components/fast-models)
>
> Full model guide: Anthropic SDK, tool calls, structured outputs, approval-gated models

> [card] [Prefix Caching](https://docs.morphllm.com/sdk/components/caching.md)
>
> Session keys, cache-read pricing, hit-rate tips

> [card] [Standby Requests](https://docs.morphllm.com/sdk/components/standby.md)
>
> Half price for latency-tolerant work

> [card] [Claude Code](https://docs.morphllm.com/guides/claude-code.md)
>
> Run Claude Code on Morph models

> [card] [Fast Apply Quickstart](https://docs.morphllm.com/quickstart.md)
>
> Prompt templates, tool definitions, MCP

> [card] [API Playground](https://morphllm.com/dashboard/playground/fast-code)
>
> Try every model with no code

## Enterprise

Dedicated instances, self-hosted deployments, zero data retention. 99.9% uptime SLA, SOC2, SSO.

> [card] [Talk to Sales](mailto:info@morphllm.com)
>
> Custom deployments and volume pricing


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.