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_id
Prompt ID
version_id
Prompt Version ID
Headers
Authorization
Header authentication of the form Token <token>
Query parameters
project_id
ID of the project to get an estimate for running on
project_subset
Subset of the project to get an estimate for running on (e.g. ‘All’, ‘Sample’, or ‘HasGT’)
Response
prompt_cost_usd
Cost of the prompt (in USD)
completion_cost_usd
Cost of the completion (in USD)
total_cost_usd
Total cost of the inference (in USD)
is_error
Whether an error occurred or not
error_type
Type of error (e.g. “Timeout”, “Rate Limit”, etc)
error_message
Error message details