Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Image Generation

8.6. Image Generation — Creating Images from Text

11 models via FAL.ai

FLUX 2 Klein/Pro, GPT-Image 1.5/2, Nano Banana Pro, Ideogram V3, Recraft V4 Pro, Qwen, Z-Image Turbo, Krea V2 Medium/Large — chosen via hermes tools.

tools:
  image_generation:
    provider: fal
    use_gateway: true   # route through the Nous Portal subscription

Gateway takes priority when both are available

If the Tool Gateway is available and the tool is set to use_gateway: true, Hermes prefers the gateway even if you also have a direct API key — this affects billing: calls through the gateway are deducted from your Portal subscription, not from your separate API key balance. Keep this in mind when tracking costs across the two sources.

Notes

  • You do not need your own FAL account if you already have Nous Portal — enable the gateway and it works immediately, in keeping with the Tool Gateway’s “no extra account” spirit.
  • For consistent style needs (blog illustrations, chapter 16.5), pin a specific model instead of letting the default change — different FAL models produce clearly distinct image styles.
  • Run hermes portal info at any time to confirm whether image generation is routing through the gateway or your own key, to avoid confusion when debugging invoices.