fal-batch.mjs

Tools · 3D · MIT

What it does

A 172-line Node script with no dependencies that turns pictures into .glb models through fal.ai's queue: check validates a job file offline, submit uploads each ready image, collect polls and downloads finished models. It is careful with money and secrets: it never resubmits a job that was accepted or might have been, talks only to https://queue.fal.run, does not send the key to the download host, strips keys, URLs and payloads from error text, and checks that each download is a complete GLB 2.0 file. Useful by itself to anyone who wants image-to-3D from a shell.

Get it

node scripts/fal-batch.mjs check .dream-loop/fal-jobs.json then submit then collect (jobs file: {"jobs": [{"id": "arch", "endpoint": "tripo3d/h3.1/image-to-3d", "image": "assets/arch.png", "output": "../models/arch.glb", "input": {"texture": true, "pbr": true, "face_limit": 200000}}]})

Source on GitHub
Needs

Node 18 or newer; FAL_KEY or FAL_API_KEY for submit and collect (check needs neither)

License

MIT

License notes are on the pack's page

From

dream-loop

Everything from dream-loop in the gallery

Back to the Asset Library