Skip to main content
PUT
Update Model

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Project-ID
string | null

Path Parameters

resource_uri
string
required

Model resource URI

Body

application/json

Request body for updating a model configuration.

name
string | null
Required string length: 1 - 255
description
string | null
Maximum string length: 1000
litellm_model
string | null
Required string length: 1 - 500
provider
string | null
Maximum string length: 100
tags
string[] | null
api_base
string | null
Maximum string length: 1000
api_version
string | null
Maximum string length: 50
mode
enum<string> | null

Supported model modes.

Available options:
chat,
completion,
embedding,
image_generation,
audio_transcription
max_input_tokens
integer | null
max_output_tokens
integer | null
rpm
integer | null
tpm
integer | null
default_temperature
number | null
Required range: 0 <= x <= 9.99
default_max_tokens
integer | null
timeout
integer | null
status
enum<string> | null

Status of a model configuration.

Available options:
PENDING,
ACTIVE,
ERROR,
DEPRECATED,
DISABLED
status_message
string | null
Maximum string length: 1000
credentials
Credentials · object | null

Updated credentials. If provided, replaces existing credentials.

Response

Successful Response

Full model representation.

id
string
required
resource_uri
string
required
name
string
required
litellm_model
string
required
status
enum<string>
required

Status of a model configuration.

Available options:
PENDING,
ACTIVE,
ERROR,
DEPRECATED,
DISABLED
organization_id
string
required
project_id
string
required
owner_id
string
required
deprecated

Deprecated: use created_by instead. Will be removed in a future release.

created_at
string<date-time>
required
updated_at
string<date-time>
required
created_by
string
required
updated_by
string
required
description
string | null
tags
string[]
provider
string | null
api_base
string | null
api_version
string | null
mode
enum<string> | null

Supported model modes.

Available options:
chat,
completion,
embedding,
image_generation,
audio_transcription
max_input_tokens
integer | null
max_output_tokens
integer | null
rpm
integer | null
tpm
integer | null
default_temperature
number | null
default_max_tokens
integer | null
timeout
integer | null
status_message
string | null