Skip to main content
PUT
Update model provider key

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json
id
string
required

Unique identifier of the model provider key to update

Minimum string length: 1
name
string

Name for the API key configuration

Minimum string length: 1
value
string

The API key value (omit to keep existing value)

Minimum string length: 1
models
string[]

List of model IDs to associate with this key

meta
object

Key-related metadata fields. Includes key2 for Azure, secretAccessKey and sessionToken for Bedrock.

enabled
boolean

Whether the key is enabled

customPricingStructureId
string | null

ID of a custom pricing structure to use for this key

Response

Model provider key updated successfully

data
object
required