# Machines and clusters

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

List the GPU machines and clusters you can rent now, at your own price.



## List machines [#list-machines]

<Endpoint method="GET" path="/api/v1/machines" />

Machines free now, cheapest per GPU-hour first. Every filter is optional and goes in the query.

| Parameter    | What it filters                                               | Example                |
| ------------ | ------------------------------------------------------------- | ---------------------- |
| `model`      | GPU model, as listed                                          | `RTX 4090`, `H100 SXM` |
| `gpus`       | GPUs in one rental: 1, 2, 4 or 8                              | `8`                    |
| `kind`       | `on_demand` (the default) or `interruptible`                  | `interruptible`        |
| `min`, `max` | Price per GPU-hour, in US dollars                             | `max=1.5`              |
| `mem`        | At least this much memory per GPU, in GB                      | `80`                   |
| `rel`        | At least this reliability, in percent                         | `95`                   |
| `net`        | At least this network down, in Gbps                           | `1`                    |
| `country`    | Two-letter country code                                       | `DE`                   |
| `q`          | Words in the GPU, city or country                             | `frankfurt`            |
| `sort`       | `price`, `value` (per GB), `vram`, `network` or `reliability` | `vram`                 |
| `limit`      | How many, 1 to 200; 50 by default                             | `10`                   |

A value that does not parse is ignored, never an error.

```bash
curl "https://bflops.com/api/v1/machines?gpus=8&mem=80&limit=2" \
  -H "Authorization: Bearer $BFLOPS_KEY"
```

```json title="200"
{
  "data": [
    {
      "id": "s4821",
      "gpu_model": "H100 SXM",
      "vram_gb": 80,
      "gpus_total": 8,
      "gpus_free": 8,
      "gpu_counts": [8],
      "kind": "on_demand",
      "country": "US",
      "per_gpu_hour_usd": "2.19",
      "specs": {
        "cpu_cores": 104,
        "ram_gb": 1000,
        "disk_gb": 2000,
        "down_mbps": 8000,
        "up_mbps": 8000,
        "reliability": 99.4,
        "cuda": "12.8",
        "nvlink": true,
        "city": "Dallas"
      }
    }
  ],
  "total": 14,
  "models": [
    {
      "gpu_model": "H100 SXM",
      "vram_gb": 80,
      "from_per_gpu_hour_usd": "2.19",
      "gpus_free": 112,
      "machines": 14
    }
  ],
  "countries": ["DE", "US"]
}
```

* `gpu_counts` lists the GPU counts one rental may take. Many machines are rented whole.
* `total` counts every match; `data` holds up to `limit` of them.
* A spec the machine does not report is `null`.

## One machine [#one-machine]

<Endpoint method="GET" path="/api/v1/machines/{id}" />

Answers `{ "machine": { ... } }` in the shape above, or `404` `not_found` once it is rented or gone.

## List clusters [#list-clusters]

<Endpoint method="GET" path="/api/v1/clusters" />

```json title="200"
{
  "data": [
    {
      "id": "c207",
      "gpu_model": "H100 SXM",
      "vram_gb": 80,
      "nodes": 2,
      "gpus_per_node": 8,
      "gpus": 16,
      "interconnect": "infiniband",
      "link_rate": "400 Gb/s",
      "country": "US",
      "per_gpu_hour_usd": "2.39",
      "per_hour_usd": "38.24",
      "specs": {
        "cpu_cores": 104,
        "ram_gb": 1000,
        "disk_gb": 2000,
        "down_mbps": 8000,
        "up_mbps": 8000,
        "reliability": 99.1,
        "cuda": "12.8",
        "nvlink": true,
        "city": "Dallas"
      }
    }
  ]
}
```

`specs` is for each node. Clusters open to accounts 7 days after their first top-up, once they have spent $50. See [Rent a cluster](/docs/clusters).

## One cluster [#one-cluster]

<Endpoint method="GET" path="/api/v1/clusters/{id}" />

Answers `{ "cluster": { ... } }`, or `404` `not_found`.

## Next [#next]

[Get a quote](/docs/api/quotes)
