Skip to content

What GPUs can be rented now, and from what price (public)

No key needed

Anonymous and cross-origin: any page may fetch it without credentials (Access-Control-Allow-Origin: *). No key is needed and none is read.

One entry per GPU model a renter could rent now, aggregated over every host: never a host, provider, organization, address or rental. models is empty when nothing can be rented right now.

Each Cloudflare location keeps the summary for 60 seconds (X-Legion-Cache: HIT or MISS), with Cache-Control: public, max-age=30, s-maxage=60, stale-while-revalidate=300. Errors are not cached.

Anonymous: no key is needed or read.

Rate limited: a 429 says when to try again in Retry-After. Rate limits

GETEndpointhttps://legion.ambient.xyz/api/public/market
curl
curl -s "https://legion.ambient.xyz/api/public/market"
Response 200
{
  "generated_at": "2026-10-15T12:00:00Z",
  "currency": "USD",
  "models": [
    {
      "slug": "string",
      "gpu_model": "string",
      "class": "datacenter",
      "memory_gib": 0,
      "from_price_per_gpu_hour": "string",
      "from_interruptible_price_per_gpu_hour": "string",
      "max_gpus_on_one_host": 0,
      "gpus_available": 0,
      "hosts_available": 0,
      "rent_url": "string",
      "median_tflops": 0
    }
  ]
}

Example values.

Responses

  • 200The market summary.

    The market summary.

    Headers: Cache-Control, Access-Control-Allow-Origin, X-Legion-Cache

    • generated_atstring (date-time)Required

      When Legion computed the summary (RFC 3339, UTC).

    • currencystringRequired

      The currency of every price.

      one of: "USD"

    • modelsarray of PublicMarketModelRequired

      One entry per GPU model with capacity now, by slug. Empty when nothing can be rented right now.

      at most 500 items

      Child fields · 11
      • slugstringRequired

        A stable, URL-safe name of the model (rtx-4090).

        at most 200 characters · pattern ^[a-z0-9]+(-[a-z0-9]+)*$

      • gpu_modelstringRequired

        The model's full name as the hosts' NVIDIA driver reports it.

        at most 200 characters

      • classstringRequired

        one of: "datacenter", "workstation"

      • memory_gibintegerRequired

        Memory per GPU in GiB, to the nearest GiB.

      • from_price_per_gpu_hourstringRequired

        The lowest price of one GPU for one hour, a decimal string in currency ("0.45"). Never a float.

        pattern ^[0-9]+\.[0-9]{2}$

      • from_interruptible_price_per_gpu_hourstring

        The lowest interruptible price of one GPU for one hour, a decimal string in currency ("0.30"), over the hosts of this model that offer the interruptible tier and have a GPU free. Absent when there is none. An interruptible rental is stopped when an on-demand rental on the same host needs its GPUs.

        pattern ^[0-9]+\.[0-9]{2}$

      • max_gpus_on_one_hostintegerRequired

        The most GPUs of this model free on one host, the largest single rental possible now.

      • gpus_availableintegerRequired

        GPUs of this model free now, all hosts together.

      • hosts_availableintegerRequired

        Hosts with at least one GPU of this model free now.

      • rent_urlstringRequired

        The Legion market filtered to this model. For n ≥ 2 GPUs, add &min_gpus=<n>.

        at most 2048 characters

      • median_tflopsnumber (double)

        The median dense FP16/BF16 TFLOPS per GPU, as the Legion agent measured it, across the hosts with this model free now whose latest GPU benchmark Legion kept and did not flag, to one decimal. Absent when no such host. An aggregate per model: never a host's own figure.

        at least 0

  • 405Any method but GET and OPTIONS (`method_not_allowed`).

    Any method but GET and OPTIONS (method_not_allowed).

    • typestringRequired

      URI reference identifying the problem type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

  • 429Rate limited (`rate_limited`). Retry after the `Retry-After` seconds.

    Rate limited (rate_limited). Retry after the Retry-After seconds.

    Headers: Retry-After

    • typestringRequired

      URI reference identifying the problem type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

  • 500An unexpected server error. Safe to retry.

    An unexpected server error. Safe to retry.

    • typestringRequired

      URI reference identifying the problem type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

  • 502An upstream could not be used (`upstream_unavailable`): unreachable, or its answer was malformed. Safe to retry.

    An upstream could not be used (upstream_unavailable): unreachable, or its answer was malformed. Safe to retry.

    • typestringRequired

      URI reference identifying the problem type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

  • 504An upstream did not answer within 30 seconds (`upstream_timeout`).

    An upstream did not answer within 30 seconds (upstream_timeout).

    • typestringRequired

      URI reference identifying the problem type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

Errors

Codes from the operation's description. Every operation can also answer the general codes on the errors page.