FluxResolutionPresets
The only node in this pack that won't charge you a cent
- INT
- INT
FluxResolutionPresets is a helper, not an API node - the name is a lie in the best way: it doesn't call fal, Replicate, or anything else, and it needs no key. All it does is turn a named aspect-ratio preset into two INT numbers, width and height. You pick 832x1216 (2:3) from a dropdown and it spits out 832 and 1216 on two separate outputs.
Why does this node exist? Because the Flux API nodes in this pack take plain width/height integers, and Flux has a family of resolutions it's actually trained for. Flux's native sweet spot is 1024², with comfortable room up to about 2MP - and generations degrade if you wander into odd sizes. The presets encode the shapes that work, so you pick an aspect ratio instead of typing magic numbers and hoping.
How it works
It's a lookup table. The dropdown offers ten presets:
1024x1024 (1:1), 512x512 (1:1), 832x1216 (2:3), 1216x832 (3:2), 768x1024 (4:3), 1024x720 (3:4), 896x1088 (4:5), 1088x896 (5:4), 576x1024 (9:16), 1024x576 (16:9)
Each maps to a (width, height) pair, and the two INT outputs carry them. Wire the first into a node's width input and the second into height - the natural targets are FalFluxAPI and FalFluxLoraAPI, whose width/height fields accept forced inputs. There's no image, no network, no cost.
One quirk to flag: the presets are labeled with the aspect ratio baked into the name, and some of the pairings are slightly unusual (1024x720 is labeled 3:4, which is actually a 10:7-ish portrait). It's a shortcut helper, not a geometry theorem - treat the numbers as the spec and the label as flavor.
Install
Same pack, same drill:
cd ComfyUI/custom_nodes
git clone https://github.com/BetaDoggo/ComfyUI-Cloud-APIs
or Manager → search "ComfyUI-Cloud-APIs", then restart. That's it - no key, no setup, no dependencies beyond what the pack already installs.
Troubleshooting
Honestly, this node barely has failure modes. The couple of things that trip people up:
- Outputs look backwards - the first
INTis width, the second is height. Wire them in that order. - The node does nothing on its own - right, it's just a number source. If nothing's plugged into its outputs, it's inert. That's expected.
- Preset you want isn't there - you're not stuck; you can type width/height directly into the Flux API node. This is a convenience, not a gate.
Because it's a pure utility with no moving parts, it's also the most "future-proof" node in an otherwise-archived pack. It'll keep working long after the API nodes need a fork.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 10 options: 1024x1024 (1:1), 512x512 (1:1), 832x1216 (2:3), 1216x832 (3:2), 768x1024 (4:3), 1024x720 (3:4), +4 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |
| INT | INT | — |