🚀 Introducing Agent Gateway — governance, observability, and control for your AI agents.  Register for live webinar ↗
curl --request PUT \
--url https://api.portkey.ai/v1/integrations/{slug}/models \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"models": [
{
"slug": "<string>",
"enabled": true,
"is_custom": true,
"is_finetune": true,
"base_model_slug": "<string>",
"configurations": {
"custom_host": "<string>"
},
"pricing_config": {
"type": "static",
"pay_as_you_go": {
"request_token": {
"price": 123
},
"response_token": {
"price": 123
}
}
}
}
],
"allow_all_models": true
}
'{}Updates model access, pricing configuration, and settings for multiple models in an integration. Can enable/disable models and configure custom pricing.
curl --request PUT \
--url https://api.portkey.ai/v1/integrations/{slug}/models \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"models": [
{
"slug": "<string>",
"enabled": true,
"is_custom": true,
"is_finetune": true,
"base_model_slug": "<string>",
"configurations": {
"custom_host": "<string>"
},
"pricing_config": {
"type": "static",
"pay_as_you_go": {
"request_token": {
"price": 123
},
"response_token": {
"price": 123
}
}
}
}
],
"allow_all_models": true
}
'{}Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Models updated successfully
The response is of type object.
Was this page helpful?