v2

latestOpenAPI 3.1.02026-07-2670186350.6 KB
models

Update Custom Model

Update a custom language model.

If identifier, api_key, or extra are changed, the model configuration is validated by making a test API call before saving.

patch/models/custom/{model_id}

Path parameters

model_idstring uuid required

The ID of the custom language model to update

The ID of the custom language model to update

Request body

namestring nullable

The name of the custom language model

identifierstring nullable

The identifier of the custom language model

extraobject nullable

Extra metadata about the custom language model

api_keystring nullable

The API key of the custom language model

Response

Successful Response

idstring uuid required

The ID of the custom language model

namestring required

The name of the custom language model

identifierstring required

The identifier of the custom language model

providerstring nullable

Provider name

typestring nullable

Model type: llm, embedding, or image

extraobject

Provider-specific configuration