# Quotes

Source: https://bflops.com/docs/api/quotes

Get your price for a machine or cluster, held for 60 seconds, before you start it.



<Endpoint method="POST" path="/api/v1/quotes" />

A quote is your price for one machine or cluster. Start it within 60 seconds with [`POST /rentals`](/docs/api/rentals#start-a-rental). Quotes are free and start nothing.

## Body [#body]

| Field         | Type    | Required | What it is                                                                                    |
| ------------- | ------- | -------- | --------------------------------------------------------------------------------------------- |
| `offer_id`    | string  | Yes      | An `id` from `/machines` or `/clusters`                                                       |
| `kind`        | string  | No       | `on_demand` or `interruptible`; the machine's own when left out                               |
| `gpus`        | number  | No       | 1, 2, 4 or 8 GPUs per machine; the machine's own when left out                                |
| `any_country` | boolean | No       | If this exact machine is taken, a like one in another country may stand in. `true` by default |

```bash
curl https://bflops.com/api/v1/quotes \
  -H "Authorization: Bearer $BFLOPS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"offer_id": "s4821", "kind": "on_demand"}'
```

```json title="201"
{
  "quote": {
    "id": "q_9d2c4e1f0a7b4c8e9f1a2b3c4d5e6f70",
    "expires_at": "2026-11-27T09:31:00.000Z",
    "offer_id": "s4821",
    "cluster": false,
    "kind": "on_demand",
    "gpus": 8,
    "nodes": 1,
    "per_gpu_hour_usd": "2.19",
    "per_hour_usd": "17.52",
    "start_needs_usd": "4.38",
    "available_usd": "120.00",
    "enough": true,
    "data_allowed": false
  }
}
```

* `start_needs_usd`: what your balance must have free to start: 15 minutes of this and of everything you run.
* `enough`: whether `available_usd` covers it. If not, [top up](/docs/top-up) before you start.
* `data_allowed`: whether this start may mount [/data](/docs/storage).

## Errors you may get [#errors-you-may-get]

| Code                        | Status | What to do                                                              |
| --------------------------- | ------ | ----------------------------------------------------------------------- |
| `not_found`                 | 404    | The machine is gone. List again and pick another.                       |
| `gpus_unavailable`          | 409    | This machine is rented whole: leave out `gpus`, or ask for all of them. |
| `kind_unavailable`          | 409    | It is not offered that way. Leave out `kind`.                           |
| `cluster_needs_established` | 409    | Your account cannot rent clusters yet.                                  |

All codes: [Errors](/docs/api/errors).
