For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList available models
      • GETGet grouped models
      • GETList search-capable models
      • GETList configured search providers
      • GETList model configurations
      • POSTCreate model configuration
      • PUTUpdate model configuration
      • DELDelete model configuration
      • PATCHEnable or disable model configuration
      • PATCHSet default model configuration
      • GETGet model configuration usage
      • GETList distinct models in use
Dashboard
LogoLogo
Runtype APIModel Configs

Update model configuration

PUT
/v1/model-configs/:id
PUT
/v1/model-configs/:id
$curl -X PUT https://api.runtype.com/v1/model-configs/id \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
3 "userId": "user_987654321",
4 "organizationId": "org_123456789",
5 "provider": "openai",
6 "modelId": "gpt-4",
7 "providerKeyId": "key_abcdef123456",
8 "isEnabled": true,
9 "isDefault": false,
10 "settings": {},
11 "createdAt": "2024-06-01T12:00:00Z",
12 "updatedAt": "2024-06-15T08:30:00Z",
13 "displayName": "GPT-4 Custom Config",
14 "creator": "admin_user",
15 "creatorDisplayName": "Admin User",
16 "costPer1kTokens": 0.03,
17 "inputCostPer1kTokens": 0.015,
18 "outputCostPer1kTokens": 0.018,
19 "supportsCustomKey": true,
20 "keyStatus": "platform",
21 "maxOutputTokens": 4096,
22 "supportsStreaming": true,
23 "supportedResponseFormats": [
24 "text",
25 "json"
26 ],
27 "supportsSearch": false,
28 "reasoningCapability": {
29 "supported": true,
30 "provider": "openai",
31 "supportsReasoningSummary": true,
32 "googleThinkingMode": "budget"
33 },
34 "configScope": "organization"
35}
Update fields on an existing model configuration.
Was this page helpful?
Previous

Delete model configuration

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Request

This endpoint expects an object.
providerKeyIdstringOptional
settingsobjectOptional
isEnabledbooleanOptional
isDefaultbooleanOptional

Response

Updated model configuration
idstring
userIdstring
organizationIdstring or null
providerstring
modelIdstring
providerKeyIdstring or null
isEnabledboolean
isDefaultboolean
settingsmap from strings to any
createdAtstring
updatedAtstring
displayNamestring
creatorstring
creatorDisplayNamestring or null
costPer1kTokensdouble
inputCostPer1kTokensdouble
outputCostPer1kTokensdouble
supportsCustomKeyboolean
keyStatusenum
Allowed values:
maxOutputTokensdouble
supportsStreamingboolean
supportedResponseFormatslist of strings
supportsSearchboolean
reasoningCapabilityobject
configScopestring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error