v1
protected
model-specs

Create Model Spec

Create a new model specification.

post/v1/workspaces/{workspace}/model-specs/

Path parameters

workspacestring required

Slug of the workspace the request acts in

Slug of the workspace the request acts in

Request body

context_windowinteger required
default_context_strategystring nullable
descriptionstring nullable
display_namestring required
is_activeboolean
max_output_tokensinteger nullable
model_namestring required
provider_spec_idstring uuid required

Response

Successful Response

context_windowinteger required
created_atstring required
default_context_strategystring nullable required
descriptionstring nullable required
display_namestring required
idstring required
input_cost_per_tokenstring nullable
is_activeboolean required
max_output_tokensinteger nullable
model_namestring required
output_cost_per_tokenstring nullable
provider_keystring nullable
provider_namestring nullable
provider_spec_idstring required
supports_function_callingboolean nullable
supports_reasoningboolean nullable
supports_visionboolean nullable
updated_atstring required

Changes

Changed in 1 of the 45 revisions of this API.1