Create a custom model
Register a new custom ML model for the authenticated user’s company. The litellm_model field is immutable after creation. For OpenAI-compatible endpoints (LM Studio, Ollama), prefix with ‘openai/’ (e.g. ‘openai/llama3’). An optional temperature is applied to every request sent to this model, in place of whatever the calling feature would otherwise use. Some models accept exactly one temperature and are set to it regardless of what is submitted; the model catalogue reports that value as required_temperature. Requires company admin role.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Display name, unique within the company.
LiteLLM model string, e.g. 'openai/gpt-4-turbo' or 'azure/my-deployment'.
Model type (e.g. 'Large Language Model', 'Embedding Model').
Custom API base URL (api_base in LiteLLM).
API key for the custom model endpoint.
Sampling temperature to use for every request to this model. Omit to let each calling feature use its own value. Models that accept only one temperature are set to it regardless of what is submitted here.
0 <= x <= 2Response
Unique ID for this custom model.
Display name, unique within the company.
LiteLLM identifier (custom-{uuid}).
LiteLLM model string, e.g. 'openai/gpt-4-turbo'.
Model type.
Whether the model is active.
Whether this is the company's default custom model.
Custom API base URL.
Sampling temperature sent for every request to this model. Null means no temperature is configured and the calling feature's own value is used.
The only temperature this model accepts, when it accepts exactly one. Set for models that have removed sampling parameters; null for every other model.
Highest temperature this model's provider accepts. Null for a model served from its own endpoint, where no provider bound applies.