Resolution Picker

Pick an output size tier as the BFL API takes it, each showing the pixels it comes to at the chosen aspect ratio.

7681024×5761K1360×7681.5K2048×11522K2736×15364K5456×3072

In use

Next to the aspect ratio in settings, with the picked model's tiers. Costs scale with the tier's megapixels.

Lumen
CreateEditVideo
240 credits

Your image will appear here

Your image will appear here

Your image will appear here

Your image will appear here

16 credits

Installation

pnpm dlx shadcn@latest add https://mgp.paukraft.com/r/resolution-picker.json

ResolutionPicker

A radio group, paired with the Aspect Ratio Picker. FLUX 3 Image and Video take the value as resolution. FLUX.2 is sized by pixels: send toDimensions(ratio, { area: megapixels * MEGAPIXEL }) as width and height. Also takes Base UI's RadioGroup props.

PropTypeDefault
value / defaultValuestring

The tier's value, e.g. "2k". Controlled with onValueChange.

—
onValueChange(value: string) => void

Called with the picked tier's value.

—
resolutions{ value, label?, megapixels }[]

Tiers, in order. value is what the API takes, megapixels the output area: it sizes the shown pixels and your pricing.

RESOLUTIONS.flux3Image
aspectRatioAspectRatio

Shows each tier's width × height at this ratio. None for "auto".

—

Helpers

PropTypeDefault
RESOLUTIONSRecord<string, Resolution[]>

Tiers per model. flux3Image: 768sq to 4k, square-equivalent (1k is 1024²). flux3Video: hd to uhd, named by their 16:9 frame (hd is 1280×720). flux2: 0.25 to 4 MP.

—
closestResolution(resolutions, megapixels) => Resolution

The tier nearest an area: keeps the size when the model, and with it the tiers, changes.

—
MEGAPIXELnumber

1024², for toDimensions' area.

—