Models

Create custom model

Changed on

Creates a new custom model for the workspace. Provider credentials in the configuration are encrypted using the workspace encryption key before being persisted.

post/v2/models

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/models
  • Auth
    HTTP bearer

Request body

benchmark_modelstring
configurationobject required
display_namestring required
has_functionsboolean required
idstring required
input_costnumber double required
model_developerstring required
model_familystring required
model_idstring required

Immutable workspace-unique slug when configuration.model_id is supplied.

model_typestring required
output_costnumber double required
providerstring required

Response

Model created successfully

createdstring required
descriptionstring nullable required
display_namestring required
docs_urlstring nullable required
enabledboolean required
enabled_for_endpointsboolean required
enabled_for_playgroundboolean required
has_cpu_pricingboolean required
has_functionsboolean required
idstring required
input_costnumber double nullable required
input_currencystring required
is_activeboolean required
legacy_uuidstring
model_developerstring
model_familystring
model_idstring required
model_typestring required
output_costnumber double nullable required
output_currencystring required
ownerstring required
pricing_urlstring nullable required
providerstring required
refIdstring required
updatedstring required

Changes

    • info

      added the new optional request property /

    • info

      added the optional property / to the response with the status

    • warning

      removed the request property /

    • warning

      removed the optional property / from the response with the status