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

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

Path parameters

prompt_idintegerRequired
Prompt ID
version_idintegerRequired
Prompt Version ID

Headers

AuthorizationstringRequired

Header authentication of the form Token <token>

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

prompt_cost_usdstring or null

Cost of the prompt (in USD)

completion_cost_usdstring or null

Cost of the completion (in USD)

total_cost_usdstring or null

Total cost of the inference (in USD)

is_errorboolean or null
Whether an error occurred or not
error_typestring or null

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

error_messagestring or null
Error message details