Skip to main content
POST
/
api
/
models
/
register
Create Model
curl --request POST \
  --url https://api.example.com/api/models/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model_id": "<string>",
  "model_provider": "<string>",
  "model_name": "<string>",
  "api_key": "<string>",
  "category": "llm",
  "base_url": "<string>",
  "temperature": 123,
  "dimension": 123,
  "abilities": [
    "<string>"
  ],
  "description": "<string>",
  "share_with_users": false
}
'
{
  "id": 123,
  "model_id": "<string>",
  "category": "<string>",
  "model_provider": "<string>",
  "model_name": "<string>",
  "base_url": "<string>",
  "temperature": 123,
  "dimension": 123,
  "abilities": [
    "<string>"
  ],
  "description": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "is_active": true,
  "is_owner": true,
  "can_edit": true,
  "can_delete": true,
  "is_shared": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Model creation request schema

model_id
string
required
model_provider
string
required
model_name
string
required
api_key
string
required
category
string
default:llm
base_url
string | null
temperature
number | null
dimension
integer | null
abilities
string[] | null
description
string | null
share_with_users
boolean
default:false

Response

Successful Response

Model response with user access information

id
integer
required
model_id
string
required
category
string
required
model_provider
string
required
model_name
string
required
base_url
string | null
required
temperature
number | null
required
dimension
integer | null
required
abilities
string[] | null
required
description
string | null
required
created_at
string | null
required
updated_at
string | null
required
is_active
boolean
required
is_owner
boolean
required
can_edit
boolean
required
can_delete
boolean
required
is_shared
boolean
required