Quickstart
- Sign up at the dashboard (Dashboard in the sidebar, or Sign in on the home page); a new email address creates an account. New accounts have $5 of credits.
- Create an API key under API keys, then install the CLI (Python 3.10 or later) with
pip install unitfabricand sign it in with the line the API keys page shows,unitfabric login --url <control url> --key <key>with the control plane’s URL filled in.unitfabric templateslists the templates and their prices. - Write a manifest
prompts.jsonl, one unit per line:{"prompt": "a red bicycle leaning on a brick wall", "seed": 1}{"prompt": "an isometric voxel city at dusk", "seed": 2} - Write a job spec
job.yamlnext to it:name: first imagestemplate: image/sdxl-turbo@1input: prompts.jsonl - Submit:
unitfabric submit job.yamluploads the manifest, then prints the job id, its status, its number of units and the price per unit. - Watch:
unitfabric job <id>or the dashboard. Units move from pending to leased to done. - Download:
unitfabric results <id> --out ./resultswrites one directory per unit with its files: hereimage.png, anddone.jsonwith the unit’s id, files and time. Run it again to fetch units that finished since; files already downloaded are not fetched again. - Top up:
unitfabric topup 25prints a card checkout link for $25 (any amount from $5 to $10,000, cents allowed), or use Billing in the dashboard (whole dollars).unitfabric accountshows the new balance once the payment has gone through.