v77

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-045764591.5 MB
Prompts

✨ 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
get/api/prompts/{prompt_id}/versions/{version_id}/cost-estimate

Path parameters

prompt_idinteger required
version_idinteger required

Response

Cost estimate response

completion_cost_usdstring nullable

Cost of the completion (in USD)

error_messagestring nullable

Error message details

error_typestring nullable

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

is_errorboolean nullable

Whether an error occurred or not

prompt_cost_usdstring nullable

Cost of the prompt (in USD)

total_cost_usdstring nullable

Total cost of the inference (in USD)