Skip to navigation

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

Get an estimate of the cost for making an inference run on the selected Prompt Version and Project/ProjectSubset

Authentication

AuthorizationToken

The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example:

curl https://label-studio-host/api/projects -H “Authorization: Token [your-token]”

Path parameters

prompt_idintegerRequired
version_idintegerRequired

Response

Cost estimate response
completion_cost_usdstring or nullOptional

Cost of the completion (in USD)

error_messagestring or nullOptional
Error message details
error_typestring or nullOptional

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

is_errorboolean or nullOptional
Whether an error occurred or not
prompt_cost_usdstring or nullOptional

Cost of the prompt (in USD)

total_cost_usdstring or nullOptional

Total cost of the inference (in USD)