Skip to main content
PATCH
Update a specific custom model. Only the provided fields will be updated - other fields remain unchanged.
Restrictions:
  • Only custom models can be updated (not global models)
  • The model_name field is read-only and cannot be changed
  • Only the owning organization can update their custom models

Path parameters

string
required
The model’s unique name to update.

Request body

All fields are optional. Only provide the fields you want to update.
string
Human-readable display name for the model.
integer | string
ID or provider_id of the custom provider to associate with this model.

Pricing

float
Cost per 1M input tokens in USD.
float
Cost per 1M output tokens in USD.
float
Cost per 1M cached input tokens in USD.
float
Cost per 1M cache creation tokens in USD.

Capabilities

integer
Maximum context window size for the model.
integer
Streaming support. 0 for no, 1 for yes.
integer
Function calling support. 0 for no, 1 for yes.
integer
Image/vision support. 0 for no, 1 for yes.
object
Partial override of UI parameter support. New overrides are merged with existing ones.

Response

Returns the updated model object.