---
title: LM Studio API
sidebar_title: Overview
description: LM Studio's REST API for local inference and model management
full: false
index: 1
---
LM Studio offers a powerful REST API with first-class support for local inference and model management. In addition to our native API, we provide OpenAI-compatible endpoints ([learn more](/docs/developer/openai-compat)), Anthropic-compatible endpoints ([learn more](/docs/developer/anthropic-compat)), and Jev (TypeSafe AI)-compatible endpoints ([learn more](/docs/developer/jev-compat)).
## What's new
Previously, there was a [v0 REST API](/docs/developer/rest/endpoints). With LM Studio 0.4.0, we have officially released our native v1 REST API at `/api/v1/*` endpoints and recommend using it.
The v1 REST API includes enhanced features such as:
- [MCP via API](/docs/developer/core/mcp)
- [Stateful chats](/docs/developer/rest/stateful-chats)
- [Authentication](/docs/developer/core/authentication) configuration with API tokens
- Model [download](/docs/developer/rest/download), [load](/docs/developer/rest/load) and [unload](/docs/developer/rest/unload) endpoints
## Supported endpoints
The following endpoints are available in LM Studio's v1 REST API.
## Inference endpoint comparison
The table below compares the features of LM Studio's `/api/v1/chat` endpoint with OpenAI-compatible and Anthropic-compatible inference endpoints.
| Feature |
/api/v1/chat |
/v1/responses |
/v1/chat/completions |
/v1/messages |
| Streaming |
✅ |
✅ |
✅ |
✅ |
| Stateful chat |
✅ |
✅ |
❌ |
❌ |
| Remote MCPs |
✅ |
✅ |
❌ |
❌ |
| MCPs you have in LM Studio |
✅ |
✅ |
❌ |
❌ |
| Custom tools |
❌ |
✅ |
✅ |
✅ |
| Include assistant messages in the request |
❌ |
✅ |
✅ |
✅ |
| Model load streaming events |
✅ |
❌ |
❌ |
❌ |
| Prompt processing streaming events |
✅ |
❌ |
❌ |
❌ |
| Specify context length in the request |
✅ |
❌ |
❌ |
❌ |
---
Please report bugs by opening an issue on [Github](https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues).