# Listing and pricing

> Set your price, show or hide a host in the market, set its country and rename it.

Source: https://legion.ambient.xyz/docs/providing/listing-and-pricing

Set these on the host's page, under **Price and listing**. Every change is recorded: see the [price history](https://legion.ambient.xyz/docs/providing/price-recommendation#price-history).

## Prices

A host has two prices per GPU-hour. An on-demand renter pays the first. An interruptible renter pays the auction price, which is never below the second.

- **On-demand** is the price a renter pays to keep the GPUs until they stop. It's required.
- **Interruptible** is optional, and lower. It is the floor of your host's spot auction. A renter who chooses it accepts that the rental can be stopped when an on-demand renter needs the GPUs or a higher bid wins them.

The prices you set are your own, before any fee. The form shows what you receive of each, and the total for all the host's GPUs. Renters pay Legion's platform fee on top of your price: under each price the form says what renters see, for example "Renters see $1.05 per GPU-hour (your price plus Legion's 5% platform fee, paid by the renter)." That fee is all Ambient's and never comes out of your earnings. See [Prices and fees](https://legion.ambient.xyz/docs/renting/pricing).

The rules:

- The interruptible price is at least 1 cent and at most the on-demand price. Otherwise the save is refused with `invalid_interruptible_price`.
- Lowering the on-demand price below the interruptible price needs a lower interruptible price too, or none.
- To stop offering interruptible rentals, clear the interruptible price. In the API, send `interruptible_price_per_gpu_hour: null`. Leave the field out to keep it as it is. Interruptible rentals already running continue.

A change to the on-demand price applies to new rentals; running ones keep the price they started with. A change to the floor applies at the next clearing.

```sh
curl -s -X PUT "https://api.legion.ambient.xyz/v1/hosts/HOST_ID/listing" \
  -H "Authorization: Bearer $LEGION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "listed": true,
    "price_per_gpu_hour": {"amount_minor": 300, "currency": "USD"},
    "interruptible_price_per_gpu_hour": {"amount_minor": 180, "currency": "USD"}
  }'
```

The numbers are the shape of the request, not a price to copy. To see what Legion suggests, read [Price recommendation](https://legion.ambient.xyz/docs/providing/price-recommendation). The form also shows what other hosts with your GPU model charge.

## Let Legion decide

Instead of setting prices yourself, you can let Legion set them. On the host's **Listing** tab, under **How this host is priced**, choose **Let Legion decide**, then **Save**.

- Legion aims at the going rate for comparable GPUs: recent prices on other GPU marketplaces and what renters have paid on Legion. It nudges that toward a healthy utilization, about 70% of the class's GPUs rented (a busy class prices up and an idle one prices down, by up to 15%), and for how your host's score compares with similar hosts (by up to 10%). It does not try to maximize your earnings.
- **Never below** is your floor. Legion never sets the on-demand price below it. Without one, there is no floor. The floor is at least 1 cent. Raising it above the current price raises the price to the floor at once.
- **Also offer interruptible** has Legion offer the interruptible tier too, at its recommended interruptible price (never above the on-demand price). Without it, the host isn't offered as interruptible.

When you turn it on, Legion prices the host at once from the [price recommendation](https://legion.ambient.xyz/docs/providing/price-recommendation). If there is no recommendation for your GPU class, nothing changes: the host stays on manual prices and the API answers `no_recommendation`.

After that, Legion reprices the host about every hour, never more than once in 55 minutes:

- toward the recommendation, never below your floor;
- by at most 10% in one step, and skipping changes under 2%;
- holding the price when the recommendation is missing or its data is out of date.

Running rentals keep the price they started with. Every price Legion sets is in the [price history](https://legion.ambient.xyz/docs/providing/price-recommendation#price-history), with the recommendation it followed.

To set a price yourself again, choose **Set my own prices** and save. Your last prices stay.

Legion can pause auto pricing for all hosts. While it's paused, hosts keep the prices they have, and turning it on (or turning on **Also offer interruptible**) is refused with `auto_pricing_disabled`. Switching to manual still works.

In the API, `updateListing` takes `pricing_mode` (`manual` or `auto`), `min_price_per_gpu_hour` (`null` removes the floor) and `offer_interruptible`. Fields you leave out keep their value. While a host is on auto, a price that differs from the stored one is refused with `auto_pricing_on`: switch to `manual` in the same request to set your own.

```sh
curl -s -X PUT "https://api.legion.ambient.xyz/v1/hosts/HOST_ID/listing" \
  -H "Authorization: Bearer $LEGION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "listed": true,
    "pricing_mode": "auto",
    "min_price_per_gpu_hour": {"amount_minor": 150, "currency": "USD"},
    "offer_interruptible": true
  }'
```

The numbers are the shape of the request. A floor under 1 cent is refused with `invalid_min_price`, and a body that can't be read as a listing with `invalid_listing`.

## How the floor works

- Your interruptible price is the floor: renters never pay less.
- About every 2 minutes Legion clears your host, and renters pay one auction price, never below your floor. You earn your share of that price.
- On-demand rentals always outrank bids and can stop interruptible rentals on your host. A higher bid can too.
- Your own organization can't bid on your host, but it can use it itself, and then pays Ambient a share of your listed price.

See [Interruptible rentals and preemption](https://legion.ambient.xyz/docs/renting/interruptible-rentals) for the renter's side.

## What interruptible means for your renters

Two things stop an interruptible rental on your host. When a renter rents GPUs on-demand and the host doesn't have enough free, Legion stops interruptible rentals to make room: the fewest that cover it, the youngest first. When the auction clears, a higher bid can take the GPUs of a running rental, lowest max first, but never in its first 10 minutes. An on-demand rental is never stopped to make room.

The stopped renter, preempted or outbid, gets a **5-minute notice** before their container stops, then the usual 30 seconds to exit. So the GPUs reach the on-demand renter about 5.5 minutes after the preemption, not at once. Their rental is billed for GPU time until it stops, and the on-demand renter's rental starts once the GPUs are released and is billed only once it runs. (A host on an older agent gives no notice and hands the GPUs over faster.) If the GPUs aren't released within 7 minutes, the on-demand rental fails and the renter isn't charged.

What happens to the stopped renter's data was their choice when they rented:

- **Keep:** the workspace stays on your host and they pay storage for it while it's there, at most 72 hours, as for any [stopped rental](https://legion.ambient.xyz/docs/renting/stopping-and-backups#for-providers). Storage charges from kept rentals are part of what renters are charged. The rental starts again by itself if your GPUs free up within 72 hours of the stop; after that its files are deleted.
- **Delete:** the workspace is deleted as soon as the container stops. They pay no storage, so there's nothing more to earn from it.

They get an email in both cases. See [Interruptible rentals and preemption](https://legion.ambient.xyz/docs/renting/interruptible-rentals).

## What you earn

You earn your share of your price: Legion's fee is 10% of it for rentals started from November 4, 2026, and 5% for earlier ones, so a $1.00 price earns $0.90. For an interruptible rental that is the auction price, never below your floor. The host's page and **Earnings** show the share as a percentage. See [Earnings and payouts](https://legion.ambient.xyz/docs/providing/earnings-and-payouts).

## Using your own host

You can rent a host you provide, for your own work, and pay Ambient only a share of your listed price. See [Using your own host](https://legion.ambient.xyz/docs/providing/use-your-own-host).

## Show in the market

Turn on **Show in the market** and press **Save**. The host appears in the market once it's approved, online and [benchmarked](#first-benchmark). Turn it off, or press **Stop new rentals**, to stop new rentals. Rentals already running continue.

## First benchmark

A new host is benchmarked once before renters can see it. Saving a price and turning on **Show in the market** is not enough on its own: Legion first measures the host's network, disk and response time (and its GPU, when the agent supports it), so renters see real numbers.

Here is what happens, in order:

1. **You save or list the host.** Press **Save** on the **Listing** tab with **Show in the market** on, or finish **Add a host**. Legion queues the first benchmark right then. You don't have to ask for it, and saving again doesn't queue a second one.
2. **It waits for the host to be free.** A benchmark never runs while a renter is using the host. It starts once the host has been idle for a couple of minutes. Until it finishes, your host is saved but hidden from renters, and your host list says **Waiting for first benchmark**.
3. **You can watch it live.** The **First benchmark** panel, on the **Listing** tab and at the end of **Add a host**, shows each step, when the run was requested and when it started. It usually takes a few minutes once it starts. Legion can't give an exact time: the agent only says that a run is going on, not which test it is on, so every step that hasn't finished shows **Running**. The panel stays up to date by itself while the page is open.
4. **It goes live, or goes under review.** When the benchmark finishes and nothing is flagged, the panel says **Benchmark done. Your host is live on the market**, and renters can find it. If the host isn't approved yet, is quarantined, or the benchmark has a flag (for example, a network speed higher than Legion measured), the panel says your host is under review and gives the reason. A person at Legion looks at it: see [Review and approval](https://legion.ambient.xyz/docs/providing/review-and-approval).
5. **If it fails.** If a run measured nothing, the host stays hidden and your host list says **First benchmark failed: re-run**. The panel shows what went wrong and a **Re-run benchmarks** button. You can re-run twice in any 24 hours for each host, and the panel shows how many are left. Check that the agent is running and the machine is online, then re-run.

The first benchmark happens once. After it, the agent benchmarks on its usual schedule, and you can ask for another run on the **Performance** tab: see [Benchmarks and score](https://legion.ambient.xyz/docs/providing/benchmarks-and-score).

In the API, `Host.listing.visibility` is `not_listed`, `awaiting_first_benchmark`, `first_benchmark_failed` or `visible`, and `first_benchmark_at` is set once the first run is kept. `getHostFirstBenchmark` returns the progress: the `state` (`not_started`, `queued`, `running`, `completed` or `failed`), the steps, `host_busy`, and, once it has ended, `review` or `failure`. Ask again after `poll_after_seconds` while it is `queued` or `running`. After a failure, call `requestHostBenchmark` to run it again.

```sh
curl -s "https://api.legion.ambient.xyz/v1/hosts/HOST_ID/first-benchmark" \
  -H "Authorization: Bearer $LEGION_API_KEY"
```

## Maintenance without losing uptime

On the host's **Manage** tab, **Maintenance** tells you whether it is safe right now: red while the host is listed or has active rentals, green when it is neither.

1. Press **Stop new rentals**, or turn off **Show in the market**.
2. Wait until the host has no active rentals.
3. Power it off and do the work.
4. When it's back online, turn **Show in the market** on again.

Time offline while the host is off the market with no active rentals doesn't count against its uptime. Taking it off the market after it has already gone offline doesn't give back the time it was listed. See [What counts as uptime](https://legion.ambient.xyz/docs/providing/benchmarks-and-score#what-counts-as-uptime).

To keep the host listed and tell its renters instead, [schedule a maintenance window](https://legion.ambient.xyz/docs/providing/maintenance): renters are emailed, their rentals stop and start again by themselves, and with enough notice the window never lowers your uptime. While a window is in progress and nothing is left on the host, **Maintenance** says it is safe to power it off.

## Country

Set the country the machine is in. Renters can filter by it, and Legion checks it against the host's network round trips. Renters see whether it's verified.

## Name

Every host has a name renters see in the market. Change it under **Name**. A name is never used again, so an old name can't be taken back.

## Hosts that go quiet

- A host that hasn't reported for 24 hours is marked **Stale**.
- A host that stays offline for 7 days with no rentals is removed.
