v1
protected
model-instances

Validate Model Instance

Test a model instance configuration before creating it.

post/v1/workspaces/{workspace}/model-instances/test

Path parameters

workspacestring required

Slug of the workspace the request acts in

Slug of the workspace the request acts in

Request body

model_spec_idstring uuid required
provider_config_idstring uuid required
test_messagestring nullable

Response

Successful Response

coststring nullable
currency'USD'
error_typestring nullable
messagestring required
model_namestring nullable
provider_typestring nullable
response_contentstring nullable
successboolean required
tokens_usedinteger nullable

Changes

Changed in 2 of the 50 revisions of this API.2