Documentation
Core
LM Studio REST API
Core
LM Studio REST API
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