The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Docs: the price check asking again, kept files and the run after sign-up
Adarsha76089b07498
diff --git a/docs/billing-hook.md b/docs/billing-hook.mdindex af7d0200..e4c688e7 100644--- a/docs/billing-hook.md+++ b/docs/billing-hook.md@@ -100,19 +100,21 @@ to this install's GPUs.| `POST /v1/account-event` | `{ event: "created" \| "verified" \| "signed-in" \| "deleted", account: AccountFacts }` | `{ ok: true }` || `POST /v1/interest` | `{ account, key }` | `{ ok: true, text }` |-The price check before Run shows the quote's `text` (and `sub`) as they are. Next to the price it shows where a new-run would stand in line and the wait, about: the quote's `etaS`, else the line's own estimate. A quote with-`allowed: false` turns Run off and puts its `text` in the price slot, with its `action` link or `offer`. Fuobe also-refuses the check itself, with the words the run would get, for the policy's limits (`code: "limit"`) and for what-this install's GPUs don't take (`code: "not-offered"`: a model, a kind, LoRAs or files), so Run never fails on them-once pressed.+The price check before Run shows the quote's `text` (and `sub`) as they are. Under the toolbar (and in the price's+tooltip) it shows where a new run would stand in line and the wait, about: the quote's `etaS`, else the line's own+estimate. A quote with `allowed: false` turns Run off and puts its `text` in the price slot, with its `action` link or+`offer`. Fuobe also refuses the check itself, with the words the run would get, for the policy's limits+(`code: "limit"`) and for what this install's GPUs don't take (`code: "not-offered"`: a model, a kind, LoRAs, files+or a chain's later step), so Run never fails on them once pressed. The page asks for a quote again by itself: every+15 s while it is refused, every 30 s while it is allowed, and at once when a run starts or ends.`shown` is the price the person saw before pressing Run. A service must never charge more than it: when the price wouldbe higher, it refuses with `price-changed` and the new quote, and the person sees the new price before running again.-A reserve's `text` is shown on the result once it succeeded ("7 units"). `maxWaitMs` is how long the run may wait in-line before a GPU first takes it; past it the row fails and is refunded. Once a GPU has taken it, the limit is over: a-run that goes back in line (a GPU paused or restarted) keeps its place and waits there.+A reserve's `text` is shown on the result once it succeeded ("7 units"). A run that fails or is removed says "Not+charged" only when its reserve answer set an amount aside (`amount` above 0). `maxWaitMs` is how long the run may wait+in line before a GPU first takes it; past it the row fails and is refunded. Once a GPU has taken it, the limit is over:+a run that goes back in line (a GPU paused or restarted) keeps its place and waits there.`class` puts the run in a class of the line: `"paid"` runs go before `"free"` ones (no `class`: `"free"`). Theinstall's own jobs come after both. `boostMs` is a head start inside the class, at most a day: the run stands in line asdiff --git a/docs/public-signup.md b/docs/public-signup.mdindex 40628634..52a72285 100644--- a/docs/public-signup.md+++ b/docs/public-signup.md@@ -376,20 +376,31 @@ With it on:the run would stand in line, with the wait (`line: { place, etaSeconds }` in the `?preview=1` answer). A checkthat refuses the run (busy, a limit, not offered here, closed, paused, a top-up) turns Run off and says why in theprice slot. The run's own limits and what the studio's GPUs don't take are refused there too, never only after Run.+ Both use one check (`poolGate` in `src/server/hosted-run.ts`), and a chain's later steps are checked for a guest+ too. A guest's refusal never sends it to Settings. The check asks again by itself: every 15 s while it refuses the+ run (so Run comes back once a run finishes), every 30 s while it shows a place in line, and at once when a run starts+ or one on the studio's GPUs ends.- For a visitor with no GPU of its own, `GET /api/status` says what the studio's GPUs keep off (`viewer.pool`: the- policy's model and app lists, and its kinds). The model, camera motion and effect pickers and the preset galleries- leave those out. Preset cards that run on the studio's GPUs for the viewer say "Try free".-- A guest can attach pictures in a studio before signing up: they stay in the browser (for a day) and are not- uploaded. The whole draft (words, model, settings, preset and files) is kept for the tab. When a guest presses Run,- the run waits with the price it showed, and the sign-up card opens. Back on the same page as an account, the draft- returns, its files are uploaded as the account's own, and the run starts by itself when the price is unchanged;- otherwise the new price shows and Run waits for a click.+ policy's model and app lists, and its kinds). The app lists also hold every preset whose open model, or the kind it+ makes, is kept off. The model, camera motion and effect pickers and the preset galleries leave those out. Preset cards+ that run on the studio's GPUs for the viewer say "Try free".+- A guest can attach files (pictures, clips and sound) in a studio before signing up: they stay in the browser and+ are not uploaded. A voice recording, and a drawing or painted area on a kept picture, are uploaded as they are made,+ so those ask the guest to sign up first. The whole draft (words, model, settings, preset and files) is kept for the+ tab. When a guest presses Run, the run waits with the price it showed, and the sign-up card opens. Back on the same+ page as an account, the draft returns, its files are uploaded as the account's own, and the run starts by itself+ only when the price is unchanged, the draft is the one Run was pressed on, and every file came back. Otherwise a+ line says why (the new price, the draft changed, or "Add your file again") and Run waits for a click.+- Kept files are cleared when nobody needs them. As a studio page opens, it drops files kept for more than a day, and+ files that no saved draft holds: its own tab's at once, another tab's once that tab has no page open. Each+ studio's draft forgets only the files it held itself.- Results show an "AI-generated" tag.- A run on the studio's GPUs shows only where it is: "In line" with its place ("In line · 3rd · about 40 s"),"Working" with its progress, then its result. The place counts every run ahead of it that the same GPUs servefirst, whatever its model. When a worker pauses, goes quiet or restarts, the run is "In line" again in the sameplace. A run that can't finish shows one plain sentence; the owner reads the technical reason in the accounts' runs- (`detail` in `GET /api/admin/generations`). A failed run on the studio's GPUs never offers "Fix it".+ (`detail` in `GET /api/admin/generations`). A failed run on the studio's GPUs never offers "Fix it". It says "Not+ charged" only when its hold set an amount aside (a reserve answer with `amount` above 0).- A run may wait `FUOBE_POOL_WAIT_MIN` minutes (30 by default, or what the billing service says) before a workerfirst takes it; past that it fails, not charged. Once a worker took it, that limit is over.- People's runs go before the owner's own jobs on the same GPUs, in the order they came (a billing service can put@@ -416,7 +427,7 @@ The code is `src/server/hosted.ts` (the switch, the place, the line), `src/serve`tests/hosted-runs.test.ts`, `tests/pool-account-runs.test.ts` (runs on the workers), `tests/billing-hook.test.ts`,`tests/billing-release.test.ts` and `tests/moderation-hook.test.ts`. The browser's side before and during a run is in`tests/hosted-price-check.test.ts`, `tests/hosted-run-button.test.ts`, `tests/hosted-run-tiles.test.ts`,-`tests/hosted-pickers.test.ts` and `tests/hosted-guest-draft.test.ts`.+`tests/hosted-pickers.test.ts`, `tests/hosted-quote-refresh.test.ts` and `tests/hosted-guest-draft.test.ts`.## Uploads