v171

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0726249111.7 MB
Models

Create custom model

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 body

configurationobject required
display_namestring required
has_functionsboolean required
idstring required
input_costnumber double required
model_developerstring required
model_familystring required
model_idstring required
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