Skip to content

Changelog

Customer-visible changes to Legion and its API, newest first.

On this page

Customer-visible changes to Legion and its API, newest first. The API reference always describes the controller release named at the foot of every docs page.

2026-11-26: Which host a rental runs on

Added

  • Every rental names its host. The Rentals list shows each rental's host and its Legion score under its name, and a rental's Overview says which host it runs on. See The host your rental runs on.

  • A Host tab on every rental. The host's GPUs, country, uptime by day, score breakdown and latest benchmarks, and while the rental runs the live utilization, memory, power and temperature of your own GPUs. Nothing names the provider or anyone else renting the host.

  • Agents. The MCP tool get_rental_host.

API

  • getRentalHost (GET /v1/rentals/{rental_id}/host), and host_name and host_score on Rental.

2026-11-24: Scheduled maintenance

Added

  • Providers can schedule maintenance on a host. On a host's Manage tab, or for several hosts at once from the Hosts page, choose when it starts, how long it lasts (15 minutes to 72 hours) and why. A preview says which rentals the window stops and whether the notice is enough. With at least 1 hour of notice for interruptible rentals, or 72 hours when any rental on the host is on-demand, the window never lowers the host's uptime score. Less notice is allowed and counts as downtime. See Scheduled maintenance.

  • Renters are told, and nothing is lost. Renters are emailed when a window is scheduled, moved or cancelled, 24 hours and 1 hour before it starts, and when it ends, one email for all their rentals. The rental shows a banner and the list a mark. At the start the rental stops with its files kept, whatever it chose for a preemption. There is no GPU or storage charge while the host is in maintenance, the clock that deletes stopped files waits, and the rental starts again by itself, unless the renter turns that off. Rent an equivalent machine elsewhere lists the cheapest machines with the same GPUs. See Planned maintenance.

  • Offers say "Available until" when the host has a window scheduled, and inside the notice the host takes no new rentals of a type whose notice is no longer met: on-demand within 72 hours of the start, interruptible within 1 hour.

  • Every host's windows in one place. Maintenance windows on the Hosts page lists upcoming, active and past windows across your hosts, and cancels or ends several at once. The Market has an Available until requirement, and Back up now is on a stopped rental's maintenance banner.

  • Agents. Six MCP tools for providers: list_maintenance_windows, preview_maintenance, schedule_maintenance, reschedule_maintenance, cancel_maintenance and end_maintenance. The Legion skill covers them.

API

2026-11-19: Logs

Added

  • Logs for rentals and services. A rental's and a service's new Logs tab shows what the container writes (standard output and standard error), a Legion model's server log and its download and start log, and Legion's own events about the rental as the host's agent reports them: image pulled, container started, health check passed, stopped, failed and why. New lines appear live; scroll up to pause, and Jump to latest to carry on. Filter by source, errors only, time range (up to 14 days) and text, and for a service by replica, retired ones included. Copy a line or download what is shown as a .log file. See Logs.

  • Secrets are redacted, within limits. Before a line leaves the host, the exact values of the rental's environment variables of 8 characters or more are replaced by [redacted], also in their JSON- and URL-escaped forms. A value the workload encodes another way or prints in parts is not caught, so do not print secrets.

  • Limits. Lines are kept 14 days. Each rental may send 50 lines and 8 KiB a second; a Legion event says how many lines were left out. Reads are limited to 300 a minute per organization.

  • Agents. Two read-only MCP tools, get_rental_logs and get_service_logs. The Legion skill covers them.

API

  • getRentalLogs (GET /v1/rentals/{rental_id}/logs) and getServiceLogs (GET /v1/services/{service_id}/logs, with replica): start, end, source, level, q, limit, cursor for older lines and after for the live tail. They answer a RentalLogPage with lines, next_cursor, tail_cursor, available and retention_days.

  • The permission logs.read, which owners and members have, and the problem codes invalid_logs_query, logs_upstream_error and logs_unavailable.

2026-11-19: Joining from an invitation

Changed

  • The invitation email opens the invitation. Its button now goes to the invitation itself in Legion, not to the sign-in page. If you aren't signed in, Legion asks you to sign in and brings you back to it. Signed in, you see the organization, your role, who invited you and when the invitation expires, with Join and Decline. Joining switches you to the organization. Older invitation emails still link to the sign-in page.

  • Signed in with another address? The page says which address the invitation is for, partly hidden, and which one you're signed in with.

  • Invitations show on every page. If you belong to an organization and are invited to another, the app says so on every page, and the account menu lists the invitation under Invitations with Join. Settings › Account still lists them too.

API

  • getMyInvitation (GET /v1/me/invitations/{invitation_id}) reads one invitation addressed to you, in any state: status is pending, expired, accepted, declined or revoked, and member says whether you belong to the organization. Anyone else gets 403 invitation_for_another_account with invited_email, the invited address masked. It is used by the web app's join page.

  • Invitation.invite_url is now the invitation's join page, https://legion.ambient.xyz/join/<id>.

2026-11-19: Services

Changed

  • Endpoints are now Services. A service is a public URL for something you run on Legion. Point it at a port on one of your rentals, or let Legion run your model on rented GPUs and scale it with traffic, down to zero when idle. Your services, their Service URLs and their keys are unchanged. See Services.

  • Two modes. On a rental is a port on one of your rentals: one replica, your machine. Autoscaled means Legion rents GPUs and runs 0 to N replicas. There is no Port, Model or Autoscaled model type any more: whether a service serves a model is shown by its model.

  • In the app, services are under Rent, Services, at /rent/services, and New service creates one. Old links under /rent/endpoints redirect. The docs moved to /docs/renting/services/, and the old pages redirect too.

  • A rental's Services tab lists the services on that rental and has Expose a port. The rental's Network tab no longer lists them: it is about reachability only.

  • Command line. legion services, shortened to legion svc, replaces legion endpoints, legion ep and legion rental ingress, with the same subcommands and flags. See Commands.

  • Agents. The MCP tools are list_services, get_service, create_service, update_service, delete_service, create_service_key, rotate_service_key, revoke_service_key, get_service_metrics and list_service_events. create_ingress_rule and delete_ingress_rule are removed. See Service tools.

API

  • Paths moved from /v1/endpoints to /v1/services, every sub-route included, under the services tag. The operationIds are listServices, createService, getServiceDefaults, estimateService, getService, updateService, deleteService, pauseService, resumeService, listServiceKeys, createServiceKey, revokeServiceKey, rotateServiceKey, listServiceReplicas, getServiceUsage, getServiceMetrics and listServiceEvents, and the schemas are Service*.

  • One mode, rental or autoscaled, replaces the type and target kind fields.

  • Problem codes endpoint_* are now service_*, invalid_endpoint_name, too_many_endpoints and rental_managed_by_endpoint are invalid_service_name, too_many_services and rental_managed_by_service, ingress_unavailable is service_unavailable and ingress_limit is service_limit. Event types endpoint.* are now service.*. The permissions are services.read and services.manage.

  • createIngressRule and deleteIngressRule are removed. A rental's services come from listServices with rental_id, and getRentalNetwork says only whether the rental can be reached (inbound).

2026-11-18: Configuration

Added

  • Environment variables and secrets for rentals and endpoints. Add them on the rent form's Software step (under Advanced configuration), on the endpoint form's Model step (under Advanced) and on the Settings tab of a rental or an endpoint. A secret is write only: it shows as Set, hidden after you save. See Configuration.

  • Model settings for premade models: context length, GPU memory share, concurrent requests, prefix caching and the tool call and reasoning parsers, each with its bounds and help. A setting that needs more GPU memory shows its effect on the likely hardware and the price before you pay.

  • Command and arguments for your own image replace its entrypoint and CMD.

  • Command line and agents. --env, --secret-env, --setting, --command and --arg on legion rental create, legion ep create and legion ep update, and the same fields on the rental and endpoint tools. The Legion skill covers them.

Changed

  • Changing variables on a running rental restarts its container, and on an autoscaled endpoint rolls its replicas, one new replica before one old one retires. The app asks you to confirm.

  • The provider's machine can read anything in the container, secrets included. The forms and docs now say so.

API

  • env, model_settings, command and args on rental and endpoint requests, and env_reserved, invalid_model_setting and override_not_allowed errors. Secret values are never returned.

2026-11-18: Endpoints

Added

  • Endpoints. One resource for anything reached from the internet: a stable address (https://<name>-<suffix>.ambi.run, with a short random ending Legion adds), an access setting and a target. The target is one port on one of your rentals, or a model or image that Legion scales on rented GPUs as traffic changes, can scale to zero, and never lets spend pass the monthly cap you set. Access is Public or Keys required, with an optional list of allowed IP addresses, and you can switch it without changing the address. Call an endpoint with curl or the OpenAI SDKs, with streaming, and send X-Legion-Wait to be held through a cold start. See Endpoints, Expose a port, Create an endpoint, Call an endpoint, Scaling and cold starts, Keys and security, Endpoint billing and Limits and status codes.

  • Endpoint metrics. A Metrics tab and getEndpointMetrics: requests, errors, latency (time to first token, end to end, queue wait), tokens and data measured by Legion's router, with what each replica's engine and GPU report shown apart, over 1 hour to 30 days. See Endpoint metrics.

  • Access keys. lek_ keys are shown once, expire (7 days, 30 days, 90 days, 1 year or never), rotate with an overlap and revoke within seconds. One key system serves every endpoint.

  • Turn autoscaling on or off for an endpoint without changing its address or keys.

  • Command line and agents. legion endpoints (also legion ep) creates, changes and deletes endpoints and manages their keys. Agents have nine endpoint tools: list_endpoints, get_endpoint, create_endpoint, update_endpoint, delete_endpoint, create_endpoint_key, rotate_endpoint_key, revoke_endpoint_key and list_endpoint_events. The Legion skill covers them. See Endpoint tools.

Changed

  • Exposing a port is an endpoint now, and it is on by default for every organization. An organization owner can still switch it off, and Legion can pause it. Every port you exposed before keeps its address and is listed as an endpoint of type Port. The page Exposing a service moved to Expose a port, and the old address redirects.

  • Rentals that serve a model get an endpoint, and its address and first key come from the endpoint. A rental that served a model before keeps its direct address and service key until you revoke the Direct key (legacy) on its endpoint's Keys tab.

  • legion rental ingress still works and prints the legion endpoints command that replaces it. The MCP tools create_ingress_rule and delete_ingress_rule stay for one release as aliases of the endpoint tools.

API

  • The endpoints tag under /v1/endpoints: create, list, get, update, delete, pause, resume, keys (create, list, rotate, revoke), replicas, usage, metrics, events, an estimate and the defaults. The operations under /v1/rentals/{rental_id}/ingress-rules are deprecated aliases that read and write endpoints. The API reference lists the new operations once the controller release that has them is the one this site is built against.

2026-11-18: Registry credentials for any registry

Added

  • Private images now work from any registry that hands out pull tokens, not only four. Paste your image in the rent form and Legion reads the registry host and path prefix from it. Save a username and a read-only token, and Legion checks it can read the image first. Settings, Registry credentials lists them.

  • An organization can save several credentials for one registry host, each with a path prefix such as acme. The rent form shows which one it uses (Uses: acme on ghcr.io) and Change picks another for that rental.

  • legion registry add, list, replace and remove, and --registry-credential on legion rental create. MCP tools list_registry_credentials, add_registry_credential and remove_registry_credential.

Changed

  • Adding, replacing and removing a credential needs registry.manage, which owners have. Any member can rent with a saved one. Saving a second credential never replaces the first.

  • The pull token a host receives is now said plainly: short-lived as the registry issues it, for one repository, readable for every tag in it.

  • AWS ECR is not supported yet, because its passwords are 12-hour AWS tokens. The docs say what to do instead.

API

2026-11-10: Change or revoke a rental's SSH key

Added

  • A rental's Connect tab shows the fingerprint of its SSH key and Change SSH key. Choose a saved key or paste a new public key, review, and replace it. The rental keeps running. The gateway accepts only the new key within about 30 seconds, and sessions that used the old key close within about 10 seconds after that. See Change or revoke the key of a rental.

API

  • updateRental takes ssh_public_key, and the rental has ssh_key_fingerprint. A rental whose host runs an older agent answers 409 host_unsupported: stop it, change the key, then start it again.

2026-11-04: See the data you send out

Added

  • A rental's Cost tab has Data sent out: this month's data through SSH, exposed ports and the browser terminal, what the rental was charged, and how much free data your organization has left. Spend, Charges has Data transfer for the whole organization and the rentals that sent the most. Activity shows each charge as Data transfer (relay) or Data transfer (exports). The first 100 GiB a month is free, then $0.12 per GiB. See Data sent out of Legion.

API

2026-11-04: All-in prices and a new fee model

Changed

  • Prices you see as a renter now include a 5% platform fee. The market, offers, the rent screen, your rentals' cost, charges, offer alerts and the API all show the price you pay, so there is nothing to add. The app says "Prices include a 5% platform fee." where prices appear, and the Cost tab of a rental shows how much of a total is the fee. See Prices and fees.

  • Interruptible max prices are all-in too. Type the most you want to pay per GPU-hour, fee included. It can be at most the host's on-demand price, also all-in (max_above_on_demand).

  • Providers keep their price input. The price you set is your own. The listing page shows what renters see for it, and Legion's fee on your price is now 10% for rentals started from November 4, 2026 (5% before). The platform fee renters pay never comes out of your earnings. For a price of $1.00 the renter pays $1.05, you earn $0.90 and Ambient keeps $0.15. See Earnings and payouts.

  • Using your own host costs the greater of 5% of your listed price and $0.07 per GPU-hour. A host that was never priced pays the minimum. See Using your own host.

  • Rentals that already run keep their rates. Rentals created before November 4, 2026 pay no platform fee and keep their prices and their 5% provider fee.

API

  • renter_fee_bps on Offer, OfferDetail and Rental (500 is 5%, 0 on older rentals and own use). Every renter-facing price in the existing fields is all-in: price_per_gpu_hour, interruptible_price_per_gpu_hour, spot_price_per_gpu_hour, storage_price_per_gib_month, the max_price_per_gpu_hour you send and the amounts in RentalCharges, which gains renter_fee and storage_renter_fee. The max_price_per_gpu_hour_cents filter and the price sorts of listOffers are all-in.

  • Host (the provider's view) gains renter_fee_bps, renter_price_per_gpu_hour and renter_interruptible_price_per_gpu_hour; its provider_share_bps is now 9000. Offer and Host gain own_use_fee_floor_per_gpu_hour.

  • Redeeming a promo code can be refused with 409 promo_budget_reached when the month's promotion budget is used up.

Changed

  • A workspace download link is now charged by size, $0.15 per GiB. The page shows an estimate before you start a download and the exact charge before it makes the link. Making the file is still free, and you can start 3 downloads an hour (it was 6).

  • Download links, for workspaces and for backups, work once. Opening one uses it up and sends you to the file; a second try answers 410 link_used. A link expires 60 minutes after it was made. A backup's first link is still included and each further one is charged. See Data sent out of Legion.

  • Traffic through exposed ports, the SSH gateway and the web terminal is metered: the first 100 GiB a month for your organization is free, then $0.12 per GiB.

  • getWorkspaceExport no longer returns download_url or expires_at. Use createWorkspaceExportDownloadLink. getStoragePolicy returns the prices and limits, and estimateWorkspaceExport returns the estimate. createBackupDownloadLink now returns a Legion address that redirects once, and answers 410 link_used when its link is used or expired.

2026-11-03: Pay by bank, refunds of unused credit and a $100 payout minimum

Added

  • You can pay for credit by bank transfer (ACH), which has a lower fee than a card: 0.8%, capped at $5, compared with 2.9% + 30 cents. A bank payment takes 3 to 5 business days to arrive. Add credit offers Pay by bank first and sends payment_method (us_bank_account or card) to createTopUp.

  • Owners can refund unused paid credit in Spend with Refund unused credit, or through getCreditRefundQuote and createCreditRefund. Only the payment processing fee is kept. Promo credit is never refunded. See Credit and billing.

  • A top-up can now be Canceled: your card was not charged, because the check or a reviewer refused it, or the approval ran out of time.

  • A payment that is disputed with the bank is taken back from the balance, and the earnings it paid for are taken back from providers while still unpaid. They show as a Chargeback recovery.

Changed

  • The smallest top-up is $25.00 (it was $10.00). Cards are approved first and charged after a quick check.

  • The smallest payout to providers is $100.00 (it was $50.00). Payouts are standard bank payouts. See Earnings and payouts.

  • An organization more than $50.00 below zero after a dispute is suspended until support restores it.

2026-11-03: Using your own host

Added

  • You can rent a host you provide, for your own work. You pay only Ambient's platform fee, a share of your listed price, and you earn nothing on your own use. A paying renter can take its GPUs at your listed price. The market marks your hosts, the host's page has Use this host yourself, and your own rentals show Your own host. See Using your own host.

2026-10-29: A new market layout

Changed

  • The market groups offers by GPU model: one row per model with its lowest price, free GPUs and best score, opening to its hosts. Each host's key figures line up in their own places, and Details opens every other spec in place. Detailed shows a card per host instead. The sort moved to the Sort menu above the list. See The market.

2026-10-29: Sign in with GitHub

Added

  • You can sign in with GitHub as well as with your existing sign-in. The same verified email reaches the same Legion account, whichever you use.

Changed

  • The Privacy Policy is now version 1.2 and Data Handling 1.3: they say what Legion receives from GitHub when you sign in with it, and list GitHub as a sign-in provider. Nobody is asked to accept anything again.

2026-10-26: The legion command line

Added

  • The legion CLI finds GPUs, rents them, connects over SSH, stops and deletes rentals, and manages SSH keys, API keys and billing from your terminal, with JSON output and exit codes for scripts. It signs in with an API key. See The legion command line.

2026-10-26: Offer alerts

Added

  • When no machine matches your search, the market offers Notify me when one is available: Legion emails you once when a matching machine appears. The new Alerts page lists your alerts with their status, lets you open the search, re-arm a notified or expired alert, and delete it. See Offer alerts.

  • The API has createOfferAlert, listOfferAlerts, getOfferAlert, updateOfferAlert and deleteOfferAlert, and the MCP server has the tools create_offer_alert, list_offer_alerts and delete_offer_alert.

2026-10-26: Outbid other renters from the app

Changed

  • The interruptible market and the rent form now count the GPUs other bids hold, not only free ones, because a higher max can win them after their first 10 minutes. A host whose GPUs are all held by bids stays listed ("4 held by other bids"), and listOffers?tier=interruptible counts them too. See Interruptible rentals.

  • When your max doesn't win, the rent form says the lowest max that would, and when no max can win right now (on-demand rentals, or bids in their first 10 minutes, hold the GPUs) it says that instead.

2026-10-25: A 5-minute notice for interruptible rentals

Changed

  • An interruptible rental that is preempted or outbid now gets a 5-minute notice (it was 2 minutes) before its container is stopped: preempt_at, the countdown, the email and /workspace/.legion/preemption.json all carry it, and preemption_notice_seconds on an offer is 300. A rental already in its notice when this shipped kept its time. See The 5-minute notice.

  • A new on-demand rental that takes GPUs from interruptible rentals now waits up to 7 minutes (it was 5) for them to stop before it fails, uncharged.

  • The Terms of Use are now version 1.3: they promise a notice of at least five minutes. You'll be asked to accept them.

2026-10-25: The spot auction is explained in the app

Changed

  • The rent form, Help and the docs now explain the interruptible spot auction in a few lines: the floor, your max, the one auction price each host clears at about every 2 minutes, what stops a rental (an on-demand rental or a higher bid) and how a stopped rental resumes. See Interruptible rentals.

  • The Listing tab explains the floor to providers: what they earn, that their own organization can't bid on their host, and that on-demand always outranks bids. See Listing and pricing.

  • A countdown on an outbid rental now says a higher bid is taking its GPUs.

2026-10-23: Stopped rentals keep files for 24 to 72 hours, and backups

Changed

  • When a rental stops, its GPUs go back on the market and its files stay on the host for at least 24 hours and at most 72 hours, then are deleted. After 24 hours they can be deleted earlier if another renter needs the disk. Storage is billed only while the files are there. See Stopping, backups and how long your data is kept.

  • When a rental is deleted, its files are deleted at once. The stop and delete dialogs offer Back up and stop and Back up, then delete.

Added

  • Backups: a copy of a stopped or failed rental's /workspace, kept for 7 or 30 days apart from the host, that outlives the rental. Its price, storage for the days you chose plus one download, is shown before you confirm; each further download link is charged again. New operations: estimateRentalBackup, createRentalBackup, listRentalBackups, listBackups, getBackup, cancelBackup, deleteBackup, createBackupDownloadLink and getStoragePolicy, and backup_retention_days on stopRental and deleteRental. Download workspace stays, free, for a copy you take within 24 hours. See Backups.

  • A deleted rental says when and why its files were deleted (data_deleted_at, data_deleted_reason), and your organization gets an email. A stopped rental has data_status, data_protected_until, data_reclaimable and latest_backup. See Why was my data deleted?.

2026-10-23: getMe shows what an API key may call

Added

  • getMe (the MCP tool get_me) now returns credential when you call it with an API key: the key's scope (full or agent) and whether it has provider_tools. permissions are still your role's, so an Agent key can list permissions it is refused with 403 api_key_scope; read credential to see what the key itself may call. A signed-in person has no credential. See Authentication.

2026-10-16: The model endpoint shows each phase

Changed

  • A rental's Model endpoint now shows the real phase of a model's start: pulling the image, starting the container, downloading the model, loading it, ready. The image pull and the weights download show a percent, and the card says how long the current phase has lasted. It needs an up-to-date host agent; with an older one it shows the three steps it showed before. If the model fails to start, the card says so and shows the command for its log.

2026-10-16: The model endpoint waits for the model

Changed

  • A rental's Model endpoint now says "Not ready yet" until the model is loaded: the address can't be copied, the examples and Open ComfyUI appear at Ready, and the API key says it works once the model is loaded.

  • While a model starts, and when it fails, the app shows the command that follows its log over SSH. See Pre-made models.

2026-10-15: Try it in the API reference

Added

  • Try it on every operation that only reads: send a real request with your API key from the operation's page and see the answer. The key stays in the page's memory and is never stored.

  • Each operation lists the error codes it can answer, and the errors page lists the codes any operation can answer.

2026-10-15: Legion docs launched

Added