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 model configurations
      • POSTCreate model configuration
      • GETList available models
      • GETGet grouped models
      • GETList search-capable models
      • GETList configured search providers
      • GETGet model configuration usage
      • PUTUpdate model configuration
      • DELDelete model configuration
      • PATCHSet default model configuration
      • PATCHEnable or disable model configuration
Dashboard
LogoLogo
Runtype APIModel Configs

Set default model configuration

PATCH
/v1/model-configs/:id/default
PATCH
/v1/model-configs/:id/default
$curl -X PATCH https://api.runtype.com/v1/model-configs/id/default \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "data": {
3 "createdAt": "2024-06-10T09:15:00Z",
4 "id": "cfg_123e4567-e89b-12d3-a456-426614174000",
5 "isDefault": true,
6 "isEnabled": true,
7 "modelId": "gpt-4-turbo",
8 "organizationId": "org_4567abcd-89ef-0123-4567-89abcdef0123",
9 "provider": "OpenAI",
10 "providerKeyId": null,
11 "settings": {
12 "temperature": 0.7,
13 "top_p": 0.9,
14 "frequency_penalty": 0,
15 "presence_penalty": 0
16 },
17 "updatedAt": "2024-06-15T12:00:00Z",
18 "userId": "user_7890",
19 "configScope": "user",
20 "costPer1kTokens": 0.012,
21 "creator": "user_7890",
22 "creatorDisplayName": "Alex Johnson",
23 "displayName": "GPT-4 Turbo Custom Config",
24 "inputCostPer1kTokens": 0.006,
25 "keyStatus": "platform",
26 "maxOutputTokens": 2048,
27 "outputCostPer1kTokens": 0.006,
28 "reasoningCapability": {
29 "supported": true,
30 "googleThinkingMode": "budget",
31 "provider": "OpenAI",
32 "supportsReasoningSummary": true
33 },
34 "supportedResponseFormats": [
35 "json",
36 "text"
37 ],
38 "supportsCustomKey": false,
39 "supportsSearch": true,
40 "supportsStreaming": true
41 },
42 "message": "Model configuration successfully set as default.",
43 "success": true
44}
Mark a model configuration as the default for the authenticated user.
Was this page helpful?
Previous

Enable or disable model configuration

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Response

Default model set
dataobject
messagestring
successboolean

Errors

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