Pular para o conteúdo principal
G

dsh-fal-image-gen

goodandready/dsh-fal-image-gen

FAL image generation for DeepSeek Harness: a generate_image tool backed by the FAL queue API (default model fal-ai/flux-2/klein/9b). Images render directly in the conversation, are saved to the workspace, and all settings are editable from the Web GUI.

Instalar

dsh plugin --profile web add github:goodandready/dsh-fal-image-gen

README

dsh-fal-image-gen

Image generation for DeepSeek Harness (dsh): a generate_image tool backed by the FAL REST queue API. Default model — fal-ai/flux-2/klein/9b.

A generated image is:

  • saved into the workspace (<workspace>/generated/fal/*.png);
  • rendered directly in the conversation (via the dsh attachments service);
  • its fal.media file URL returned to the model with the path, size and seed.

Install

# From npm after publishing:
dsh plugin --profile web add @goodandready/dsh-fal-image-gen

# From GitHub:
dsh plugin --profile web add github:GooDAnDReaDY/dsh-fal-image-gen

# Locally from a checkout:
dsh plugin --profile web add /path/to/dsh-fal-image-gen

Restart the Web UI afterwards.

Configure (Web GUI)

All settings live in Settings → Plugins → Plugin configuration → FAL Image Generation:

FieldDefaultDescription
modelfal-ai/flux-2/klein/9bFAL model id, called as {baseURL}/{model}.
apiKeyEnvFAL_API_KEYAPI key reference (credentials / env var).
baseURLhttps://queue.fal.runFAL queue base URL.
defaultSizelandscape_4_3Default image size.
defaultFormatpngDefault output format.
pollIntervalMs2000Job status poll interval.
timeoutMs180000Total generation timeout.
outputDirgenerated/falOutput folder (relative to the workspace root).
numImagesMax4Max images per call.

Equivalent values can be set in $DSH_HOME/settings.yaml under dsh-fal-image-gen: — the GUI writes to the same settings document, so both ways are equivalent.

API key

Store your key in Credentials (Web: Settings → Credentials, name FAL_API_KEY) or in $DSH_HOME/.credentials.yaml:

FAL_API_KEY: <your key from https://fal.ai/dashboard/keys>

The plugin prepends the Key auth prefix automatically.

Usage

Just ask the model to draw an image:

Generate an image: neon cyberpunk city at night in the rain, 16:9

Tool parameters (all except prompt are optional):

ParameterDescription
promptrequired, detailed image description
image_sizesquare_hd / square / portrait_4_3 / portrait_16_9 / landscape_4_3 / landscape_16_9
num_images1–4 (default 1; first is displayed)
seedseed for reproducibility
output_formatpng (default) / jpeg / webp
output_namefile name without extension

Structure

dsh-fal-image-gen/
├── package.json            # dsh bundle/plugin metadata + peerDependencies
├── cordis.patch.yml        # bundle layer: inserts the plugin row
├── lib/index.js            # host: generate_image tool + FAL queue client
├── lib/client.js           # browser: settings card in the Web GUI
├── README.md
└── LICENSE                 # MIT

No npm runtime dependencies (the @deepseek-ai/* peer deps resolve from the dsh install), no build step — plain ESM.

License

MIT

Plugins relacionados