---
title: "✨ Get cost estimate for running a prompt version on a particular project/subset"
method: GET
path: "/api/prompts/{prompt_id}/versions/{version_id}/cost-estimate"
tags: ["Prompts"]
---

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

`GET /api/prompts/{prompt_id}/versions/{version_id}/cost-estimate`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/prompts/{prompt_id}/versions/{version_id}/cost-estimate`
- Auth: API key in header `Authorization`

<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

## Path parameters

- `prompt_id` integer, required
- `version_id` integer, required

## Response `200`

Cost estimate response

- InferenceRunCostEstimate
  - `completion_cost_usd` string, nullable: Cost of the completion (in USD)
  - `error_message` string, nullable: Error message details
  - `error_type` string, nullable: Type of error (e.g. "Timeout", "Rate Limit", etc)
  - `is_error` boolean, nullable: Whether an error occurred or not
  - `prompt_cost_usd` string, nullable: Cost of the prompt (in USD)
  - `total_cost_usd` string, nullable: Total cost of the inference (in USD)

---

[API](https://skmtc.dev/humansignal/apis/label-studio-api.md) - [All operations](https://skmtc.dev/humansignal/apis/label-studio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/humansignal/apis/label-studio-api/revisions/b3a81da7c74a?raw)
