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

<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Get an estimate of the cost for making an inference run on the selected Prompt Version and Project/ProjectSubset

Authentication

Authorizationstring
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: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>

Path parameters

prompt_idintegerRequired
version_idintegerRequired

Response

Cost estimate response
completion_cost_usdstring or null

Cost of the completion (in USD)

error_messagestring or null
Error message details
error_typestring or null

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

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

Cost of the prompt (in USD)

total_cost_usdstring or null

Total cost of the inference (in USD)