README.md

sonct/openai-compat-endpoint

OpenAI-compatible endpoint plugin for LM Studio.

Updated by Sonct.

Overview

This plugin adds a compact generator for using external chat APIs inside LM Studio.

Supported Models

The Model dropdown includes:

  • claude-sonnet-4-20250514
  • claude-opus-4-20250514
  • gpt-4.1-2025-04-14
  • gpt-4.1-mini-2025-04-14
  • deepseek-v4-flash
  • deepseek-v4-pro
  • glm-4.7-flash
  • glm-5.2
  • Use Custom Model

Settings

Open the plugin settings in LM Studio and fill only the API key you need for the selected model.

Model familyRequired fieldDefault base URL
claude-*Anthropic API Keyhttps://api.anthropic.com/v1
gpt-*OpenAI API Keyhttps://api.openai.com/v1
deepseek-*Deepseek API Keyhttps://api.deepseek.com/v1
glm-*GLM API Keyhttps://api.z.ai/api/paas/v4
Use Custom ModelCustom API KeySet (Optional) Override Base URL

Custom Model

Use Use Custom Model when the model is not in the preset list.

Required fields:

  • Custom Model: exact model id from the provider
  • Custom API Key: API key for that provider
  • (Optional) Override Base URL: required for custom providers

Example:

Model: Use Custom Model
Custom Model: provider-model-id
Custom API Key: sk-...
(Optional) Override Base URL: https://api.example.com/v1

Custom Model is always visible because LM Studio plugin config uses static fields. The plugin only reads it when Model is set to Use Custom Model.