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
Hosted runs: a run that can't finish says one sentence, and 3D stays on the account's own GPU
Adarsh8a670906e03f
diff --git a/docs/billing-hook.md b/docs/billing-hook.mdindex 4e97b6d3..115e6e3d 100644--- a/docs/billing-hook.md+++ b/docs/billing-hook.md@@ -76,6 +76,9 @@ several shots, a picture and then a step on it) is priced once, with one quote aSteps that need no model (joins, trims) and text steps are left out: they cost nothing. Every step must be one thepolicy allows (`pool`, `kinds`), or the run isn't offered here.+3D runs (Image to 3D and the other 3D tools) aren't offered on this install's GPUs yet, whatever `kinds.model3d` says.+They run on the account's own GPU, as before; an account with no GPU of its own is asked to connect one.+The policy's limits count runs on this install's GPUs only, never runs on the account's own GPU or key (those keep theinstall's own limits). A run is one press of Run: its jobs and chain steps count once. `activeRuns` counts runs goingnow (waiting or running), `waiting` those not started yet, `runsPerHour` those started in the last hour, anddiff --git a/src/lib/relay.ts b/src/lib/relay.tsindex b7130dab..1d324b20 100644--- a/src/lib/relay.ts+++ b/src/lib/relay.ts@@ -354,7 +354,7 @@ export const RELAY_WORDS = {export const POOL_WORDS = {inLine: "In line",working: "Working",- failed: "This one couldn't be made. Press Retry to try again.",+ failed: "This one couldn't be made.",} as const;/** A script's open-source run (an API token) while the owner's ComfyUI is on the owner's computer. */diff --git a/tests/pool-limits.test.ts b/tests/pool-limits.test.tsindex 881f5fdd..d3fceb6b 100644--- a/tests/pool-limits.test.ts+++ b/tests/pool-limits.test.ts@@ -435,6 +435,24 @@ describe("where a run goes", () => {expect(hostedRun.kindAllowed({}, "model3d")).toBe(true);});+ it("3D isn't offered on this install's GPUs yet, even with kinds.model3d on: an account with no GPU of its own is asked to connect one", async () => {+ withBilling({ kinds: { model3d: true }, limits: { activeRuns: 0, waiting: 0, runsPerHour: 0 } });+ const a = account();+ const uploadsRoute = await import("@/app/api/uploads/route");+ const { TINY_PNG } = await import("./helpers/fake-comfy-runner");+ const up = await uploadsRoute.POST(+ new Request(`http://${HOST}/api/uploads`, { method: "POST", headers: { ...SITE_HEADERS, cookie: a.cookie, "content-type": "image/png", "x-file-name": "photo.png", "content-length": String(TINY_PNG.length) }, body: new Uint8Array(TINY_PNG) }),+ );+ expect(up.status).toBe(201);+ const { url } = (await up.json()) as { url: string };+ const holds = fake.holds.size;+ const r = await post({ feature: "image-to-3d", modelId: "oss-pixal3d", op: "image-to-3d", inputs: { images: [url] }, ...SHOWN }, a.cookie);+ expect(r.status, JSON.stringify(r.body)).toBe(403);+ expect(r.body.code).toBe("own-gpu-tool");+ expect(poolRuns(a.id)).toBe(0);+ expect(fake.holds.size).toBe(holds);+ });+it("a guest's policy that gets no answer isn't asked for again on every page for a while", async () => {withBilling();fake.down = "error";