---
title: "Estimates the cost of running a job definition's latest revision to completion."
method: GET
path: "/job/definition/{definitionId}/cost-estimate"
tags: ["Job"]
---

# Estimates the cost of running a job definition's latest revision to completion.

`GET /job/definition/{definitionId}/cost-estimate`

The estimate multiplies a representative per-response cost sampled from the definition's
 rapids by the total number of responses its referee requires. Returns 409 while the estimate
 is not yet available because no rapids exist, or when the referee is unbounded.

## Path parameters

- `definitionId` string, required

## Response `200`

OK

- GetJobDefinitionCostEstimateEndpointOutput — The estimated cost of a job definition.
  - `estimatedCost` number, double, required — The estimated total cost of running the definition's latest revision to completion.
  - `costPerResponse` number, double, required — The representative per-response cost the estimate is based on.
  - `datapointCount` integer, required — The number of datapoints in the definition's dataset.
  - `requiredResponses` integer, required — The total number of responses the definition's referee requires to complete.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/5f993bd211f5/schema)
