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

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: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "success": true,
3 "message": "Model configuration successfully set as default.",
4 "data": {
5 "id": "a3f1c9e2-7b4d-4f8a-9c2e-1d2b3f4a5c6d",
6 "userId": "user_987654321",
7 "organizationId": "org_123456789",
8 "provider": "openai",
9 "modelId": "gpt-4",
10 "providerKeyId": "key_abc123xyz",
11 "isEnabled": true,
12 "isDefault": true,
13 "settings": {
14 "temperature": 0.7,
15 "maxTokens": 2048,
16 "topP": 0.9
17 },
18 "createdAt": "2024-06-01T12:00:00Z",
19 "updatedAt": "2024-06-15T08:30:00Z",
20 "displayName": "GPT-4 Default Config",
21 "creator": "admin_user",
22 "creatorDisplayName": "Admin User",
23 "costPer1kTokens": 0.03,
24 "inputCostPer1kTokens": 0.015,
25 "outputCostPer1kTokens": 0.015,
26 "supportsCustomKey": true,
27 "keyStatus": "platform",
28 "maxOutputTokens": 2048,
29 "supportsStreaming": true,
30 "supportedResponseFormats": [
31 "json",
32 "text"
33 ],
34 "supportsSearch": true,
35 "reasoningCapability": {
36 "supported": true,
37 "provider": "openai",
38 "supportsReasoningSummary": true,
39 "googleThinkingMode": "budget"
40 },
41 "configScope": "user"
42 }
43}
Mark a model configuration as the default for the authenticated user.
Was this page helpful?
Previous

Get model configuration usage

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Response

Default model set
successboolean
messagestring
dataobject

Errors

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