curl --request PUT \
--url https://api.getmaxim.ai/v1/models \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"id": "<string>",
"name": "<string>",
"value": "<string>",
"models": [
"<string>"
],
"meta": {
"key2": "<string>",
"secretAccessKey": "<string>",
"sessionToken": "<string>"
},
"enabled": true,
"customPricingStructureId": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"value": "<string>",
"providerId": "<string>",
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"meta": null,
"customPricingStructureId": "<string>",
"models": [
{
"id": "<string>",
"label": "<string>",
"name": "<string>",
"provider": "<string>",
"config": null
}
]
}
}Update an existing model provider key configuration
curl --request PUT \
--url https://api.getmaxim.ai/v1/models \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"id": "<string>",
"name": "<string>",
"value": "<string>",
"models": [
"<string>"
],
"meta": {
"key2": "<string>",
"secretAccessKey": "<string>",
"sessionToken": "<string>"
},
"enabled": true,
"customPricingStructureId": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"value": "<string>",
"providerId": "<string>",
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"meta": null,
"customPricingStructureId": "<string>",
"models": [
{
"id": "<string>",
"label": "<string>",
"name": "<string>",
"provider": "<string>",
"config": null
}
]
}
}API key for authentication
Unique identifier of the model provider key to update
1Name for the API key configuration
1The API key value (omit to keep existing value)
1List of model IDs to associate with this key
Key-related metadata fields. Includes key2 for Azure, secretAccessKey and sessionToken for Bedrock.
Show child attributes
Whether the key is enabled
ID of a custom pricing structure to use for this key
Model provider key updated successfully
Show child attributes
Was this page helpful?