# See what an evaluation costs

Source: https://docs.vlayers.ai/reference/agents/get-evaluation-scoring-quote

`GET /v1/evaluations/{id}/scoring/quote` · scope `workspace:read`

Prices the evaluation as saved: its own judge model, criteria and options. `quote.maxUsd` is the most one judgement can cost (a hard ceiling) and `quote.maxScoresPerConversation` how many judgements one conversation can get, so a conversation costs at most their product. `outcomeIsFree` is true only for an agent's goal that a declared outcome decides. Pass `sampleRate` to price a share before you choose it.

Requires an API key with the `workspace:read` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The evaluation id. Example: `"0192f5f7-b0cf-7a1d-9c6d-7e8f90123456"` |
| `sampleRate` | query | number | no | The share of subjects to judge, above 0 up to 1. Default: the evaluation's own. Example: `0.5` |

## Request

cURL:

```bash
curl "https://api.vlayers.ai/v1/evaluations/$EVALUATION_ID/scoring/quote?sampleRate=0.5" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { quote } = await voicelayer.agents.getEvaluationScoringQuote('<evaluation-id>', {
  sampleRate: 0.5
});
console.log(quote.maxUsd);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.agents.get_evaluation_scoring_quote("<evaluation-id>", sample_rate=0.5)
print(result.quote.max_usd)
```

## Response `200`

```json
{
  "quote": {
    "maxUsd": 0.0123,
    "typicalUsd": 0.0031,
    "maxScoresPerConversation": 3,
    "sampleRate": 1,
    "outcomeIsFree": true
  }
}
```
