Changelog
Customer-visible changes to Legion and its API, newest first.
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 /), andv1/ rentals/ {rental_ id}/ host host_andname host_onscore 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_andmaintenance end_. The Legion skill covers them.maintenance
API
scheduleMaintenance (
POST /, with an optionalv1/ maintenance-windows Idempotency-Key), listMaintenanceWindows, previewMaintenance, rescheduleMaintenance, cancelMaintenance and endMaintenance. A host or window that is not yours makes the whole request404and writes nothing.Rental., the stop reasonmaintenance host_,maintenance resume_on updateRental,after_ maintenance Offer., theavailable_ until available_filter of listOffers,until Host., and the problem codemaintenance host_(409) on renting or starting.maintenance
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
.file. See Logs.log 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_andrental_ logs get_. The Legion skill covers them.service_ logs
API
getRentalLogs (
GET /) and getServiceLogs (v1/ rentals/ {rental_ id}/ logs GET /, withv1/ services/ {service_ id}/ logs replica):start,end,source,level,q,limit,cursorfor older lines andafterfor the live tail. They answer aRentalLogPagewithlines,next_,cursor tail_,cursor availableandretention_.days The permission
logs., which owners and members have, and the problem codesread invalid_,logs_ query logs_andupstream_ error 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 /) reads one invitation addressed to you, in any state:v1/ me/ invitations/ {invitation_ id} statusispending,expired,accepted,declinedorrevoked, andmembersays whether you belong to the organization. Anyone else gets 403invitation_withfor_ another_ account invited_, the invited address masked. It is used by the web app's join page.email Invitation.is now the invitation's join page,invite_ url 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
/, and New service creates one. Old links underrent/ services /redirect. The docs moved torent/ endpoints /, and the old pages redirect too.docs/ renting/ services/ 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 tolegion svc, replaceslegion endpoints,legion epandlegion 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_andservice_ metrics list_.service_ events create_andingress_ rule delete_are removed. See Service tools.ingress_ rule
API
Paths moved from
/tov1/ endpoints /, every sub-route included, under thev1/ services servicestag. The operationIds arelistServices,createService,getServiceDefaults,estimateService,getService,updateService,deleteService,pauseService,resumeService,listServiceKeys,createServiceKey,revokeServiceKey,rotateServiceKey,listServiceReplicas,getServiceUsage,getServiceMetricsandlistServiceEvents, and the schemas areService*.One
mode,rentalorautoscaled, replaces the type and target kind fields.Problem codes
endpoint_are now* service_,* invalid_,endpoint_ name too_andmany_ endpoints rental_aremanaged_ by_ endpoint invalid_,service_ name too_andmany_ services rental_,managed_ by_ service ingress_isunavailable service_andunavailable ingress_islimit service_. Event typeslimit endpoint.are now* service.. The permissions are* services.andread services..manage createIngressRuleanddeleteIngressRuleare removed. A rental's services come fromlistServiceswithrental_, andid getRentalNetworksays 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,--commandand--argonlegion rental create,legion ep createandlegion 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 commandandargson rental and endpoint requests, andenv_,reserved invalid_andmodel_ setting override_errors. Secret values are never returned.not_ allowed
2026-11-18: Endpoints
Added
Endpoints. One resource for anything reached from the internet: a stable address (
https:/, 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/ <name>-<suffix>. ambi. run X-Legion-Waitto 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(alsolegion 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_andendpoint_ key list_. The Legion skill covers them. See Endpoint tools.endpoint_ events
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 ingressstill works and prints thelegion endpointscommand that replaces it. The MCP toolscreate_andingress_ rule delete_stay for one release as aliases of the endpoint tools.ingress_ rule
API
The
endpointstag under/: create, list, get, update, delete, pause, resume, keys (create, list, rotate, revoke), replicas, usage, metrics, events, an estimate and the defaults. The operations underv1/ endpoints /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.v1/ rentals/ {rental_ id}/ ingress-rules
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,replaceandremove, and--registry-credentialonlegion rental create. MCP toolslist_,registry_ credentials add_andregistry_ credential remove_.registry_ credential
Changed
Adding, replacing and removing a credential needs
registry., which owners have. Any member can rent with a saved one. Saving a second credential never replaces the first.manage 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
createRegistryCredential, listRegistryCredentials, getRegistryCredential, updateRegistryCredential, deleteRegistryCredential and detectRegistryCredential. createRental and inspectImage take
registry_, and a rental records the credential it used.credential_ id The
registry-sign-insoperations are deprecated. They still work for a credential that covers a whole host.
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_, and the rental haspublic_ key ssh_. A rental whose host runs an older agent answers 409key_ fingerprint host_: stop it, change the key, then start it again.unsupported
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
getRentalTransfer and getOrgTransfer, and the ledger cause
transferwith alabel.
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_onfee_ bps Offer,OfferDetailandRental(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_, theprice_ per_ gib_ month max_you send and the amounts inprice_ per_ gpu_ hour RentalCharges, which gainsrenter_andfee storage_. Therenter_ fee max_filter and the price sorts ofprice_ per_ gpu_ hour_ cents listOffersare all-in.Host(the provider's view) gainsrenter_,fee_ bps renter_andprice_ per_ gpu_ hour renter_; itsinterruptible_ price_ per_ gpu_ hour provider_is now 9000.share_ bps OfferandHostgainown_.use_ fee_ floor_ per_ gpu_ hour Redeeming a promo code can be refused with
409 promo_when the month's promotion budget is used up.budget_ reached
2026-11-03: Downloads show their charge, and links work once
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_. 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.used 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.
getWorkspaceExportno longer returnsdownload_orurl expires_. Useat createWorkspaceExportDownloadLink.getStoragePolicyreturns the prices and limits, andestimateWorkspaceExportreturns the estimate.createBackupDownloadLinknow returns a Legion address that redirects once, and answers410 link_when its link is used or expired.used
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_orbank_ account 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
legionCLI 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,updateOfferAlertanddeleteOfferAlert, and the MCP server has the toolscreate_,offer_ alert list_andoffer_ alerts 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=interruptiblecounts 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_, the countdown, the email andat /all carry it, andworkspace/ . legion/ preemption. json preemption_on an offer isnotice_ seconds 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
/, 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:workspace estimateRentalBackup,createRentalBackup,listRentalBackups,listBackups,getBackup,cancelBackup,deleteBackup,createBackupDownloadLinkandgetStoragePolicy, andbackup_onretention_ days stopRentalanddeleteRental. 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_), and your organization gets an email. A stopped rental hasdeleted_ reason data_,status data_,protected_ until data_andreclaimable latest_. See Why was my data deleted?.backup
2026-10-23: getMe shows what an API key may call
Added
getMe(the MCP toolget_) now returnsme credentialwhen you call it with an API key: the key'sscope(fulloragent) and whether it hasprovider_.tools permissionsare still your role's, so an Agent key can list permissions it is refused with403 api_; readkey_ scope credentialto see what the key itself may call. A signed-in person has nocredential. 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
These docs, with two quickstarts: rent a GPU and SSH in and add your first host.
API guides on authentication, pagination, idempotency, rate limits and the public market API.
The API reference for every operation you can call with an API key.
The whole API as OpenAPI 3.0, at /docs/openapi.json and /docs/openapi.yaml, ready to import into your tools.
Every page as Markdown: add
.to its address, or use Copy as Markdown at the top of the page.md An errors page with every problem code the API returns.