Documentation
Core
LM Studio REST API
OpenAI Compatible Endpoints
Anthropic Compatible Endpoints
Core
LM Studio REST API
OpenAI Compatible Endpoints
Anthropic Compatible Endpoints
Text completion for base models (legacy OpenAI endpoint).
This endpoint is no longer supported by OpenAI. LM Studio continues to support it.
Using this endpoint with chat‑tuned models may produce unexpected tokens. Prefer base models.
POSTThis page's source is available on GitHub