Skip to content

Providers and keys

nodemode-ai edited this page Nov 29, 2026 · 2 revisions

Providers and keys

formcraft generates through two cloud services, using their official APIs and your own keys. It does not use accounts, shared credits or captured web sessions.

Provider What it makes Where to get a key
fal images, video, music, sound, voice, 3D objects, camera angles, background and region removal, upscaling https://fal.ai/dashboard/keys
World Labs explorable worlds https://platform.worldlabs.ai/api-keys

Add a key

  1. Open Preferences (Mod+Comma), then Connections.
  2. Paste the key for fal, and for World Labs if you want worlds, and save.
  3. Press Test. formcraft asks the provider to confirm the key and says plainly if it was refused. Save becomes Replace once a key is set, and Remove deletes it.

You can also add a key without leaving your work. When you press Generate (the button reads Add key) and the model's provider has no key, a key sheet opens over the prompt box with a link to the provider's key page, a field with Paste, Test, and Save and generate, which saves the key and starts the run. Cancel or Esc closes it and keeps your prompt.

The engine stores the key in the system password store (Keychain, Credential Manager or the Secret Service) under the service name formcraft when there is one. When there is none, it keeps the key in a private file that only your user can read. The window never holds a key after you save it, and a key is never written to a project, a log or an environment variable. Removing a key in Connections deletes it from the store. Under each key, Connections says where that key is kept ("Stored in macOS Keychain", "Stored in Windows Credential Manager", "Stored in your system keyring", "Stored in KWallet" or "Stored in a file only you can read"), and before you save one it says where the key will go. A key that an older version left in the private file moves into the system keyring the first time the engine reads it, with no prompt, and the file entry is cleared only after the keyring gives the same key back. If the keyring will not take it, the key stays in the file and keeps working.

Cost

Every run shows a dollar estimate before it starts, labelled as an estimate. The provider sets the final charge. Preferences, Generation can ask before runs estimated at one dollar or more, and sets what happens when you ask for a size or length the model does not offer (upgrade, downgrade, or stop and tell you). Agents must pass the estimate back before generate runs, and generate asks you unless you set a spending limit for agents, see Agents-and-MCP.

The model catalogue

The 122 models are data in backend/app/catalogue/data (image.json, video.json, audio.json, mesh.json, utility.json, world.json), checked by backend/app/catalogue/validate.py. Each field, limit and price was read from the provider's own schema and price page. Adding a model is a data change only.

Source map

Path What lives there
backend/app/providers/ fal.py, worldlabs.py, shared http.py and base.py
backend/app/services/secrets.py the password store wrapper
backend/app/routers/keys.py key status, save, delete and test routes
backend/app/planner/ request building and price estimates
frontend/src/ui/panels/connections.ts the Connections panel

Contract

  • A provider client reaches only its own documented host, with the official API and the user's key. No impersonated headers, no browser emulation.
  • Key routes are never reachable by agents, and app_status reports only whether a key exists.
  • A new provider needs a catalogue file, a licence check and a row in LICENSES.md and NOTICE if it adds a dependency.

Not yet run: generation has been checked against published schemas and a mock, not against the real services.

Clone this wiki locally