Get cost estimate for running a prompt version on a particular project/subset

POST

Get cost estimate for running a prompt version on a particular project/subset

Path parameters

prompt_idintegerRequired

Prompt ID

version_idintegerRequired

Prompt Version ID

Query parameters

project_idintegerRequired

ID of the project to get an estimate for running on

project_subsetintegerRequired

Subset of the project to get an estimate for running on (e.g. ‘All’, ‘Sample’, or ‘HasGT’)

Response

This endpoint returns an object.
prompt_cost_usdstringOptional

Cost of the prompt (in USD)

completion_cost_usdstringOptional

Cost of the completion (in USD)

total_cost_usdstringOptional

Total cost of the inference (in USD)

is_errorbooleanOptional

Whether an error occurred or not

error_typestringOptional

Type of error (e.g. “Timeout”, “Rate Limit”, etc)

error_messagestringOptional

Error message details